in client/src/main/scala/com.gu.contentapi.client/model/Queries.scala [79:91]
def withParameters(parameterMap: Map[String, Parameter]) = copy(id, parameterMap, channelId)
def withChannelId(newChannel:String) = copy(id, parameterHolder, Some(newChannel))
def withoutChannelId() = copy(id, parameterHolder, None)
def itemId(contentId: String): ItemQuery =
copy(id = contentId)
override def pathSegment: String = channelId match {
case None => id
case Some(chl) => s"channel/$chl/item/$id"
}