public final class Promotion extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the CustomSearch API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Promotion.BodyLines
Model definition for PromotionBodyLines.
|
static class |
Promotion.Image
Model definition for PromotionImage.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Promotion() |
| Modifier and Type | Method and Description |
|---|---|
Promotion |
clone() |
List<Promotion.BodyLines> |
getBodyLines() |
String |
getDisplayLink() |
String |
getHtmlTitle() |
Promotion.Image |
getImage() |
String |
getLink() |
String |
getTitle() |
Promotion |
set(String fieldName,
Object value) |
Promotion |
setBodyLines(List<Promotion.BodyLines> bodyLines) |
Promotion |
setDisplayLink(String displayLink) |
Promotion |
setHtmlTitle(String htmlTitle) |
Promotion |
setImage(Promotion.Image image) |
Promotion |
setLink(String link) |
Promotion |
setTitle(String title) |
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<Promotion.BodyLines> getBodyLines()
null for nonepublic Promotion setBodyLines(List<Promotion.BodyLines> bodyLines)
bodyLines - bodyLines or null for nonepublic String getDisplayLink()
null for nonepublic Promotion setDisplayLink(String displayLink)
displayLink - displayLink or null for nonepublic String getHtmlTitle()
null for nonepublic Promotion setHtmlTitle(String htmlTitle)
htmlTitle - htmlTitle or null for nonepublic Promotion.Image getImage()
null for nonepublic Promotion setImage(Promotion.Image image)
image - image or null for nonepublic String getLink()
null for nonepublic String getTitle()
null for nonepublic Promotion set(String fieldName, Object value)
set in class GenericJsonpublic Promotion clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.