Class CardContent
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.rcsbusinessmessaging.v1.model.CardContent
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class CardContent extends com.google.api.client.json.GenericJsonCard contentThis is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the RCS Business Messaging API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
-
Constructor Summary
Constructors Constructor Description CardContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CardContentclone()java.lang.StringgetDescription()(Optional) Description of the card.MediagetMedia()(Optional) Media (image, GIF, video) to include in the card.java.util.List<Suggestion>getSuggestions()(Optional) List of suggestions to include in the card.java.lang.StringgetTitle()(Optional) Title of the card.CardContentset(java.lang.String fieldName, java.lang.Object value)CardContentsetDescription(java.lang.String description)(Optional) Description of the card.CardContentsetMedia(Media media)(Optional) Media (image, GIF, video) to include in the card.CardContentsetSuggestions(java.util.List<Suggestion> suggestions)(Optional) List of suggestions to include in the card.CardContentsetTitle(java.lang.String title)(Optional) Title of the card.-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
(Optional) Description of the card. Maximum 2000 characters.- Returns:
- value or
nullfor none
-
setDescription
public CardContent setDescription(java.lang.String description)
(Optional) Description of the card. Maximum 2000 characters.- Parameters:
description- description ornullfor none
-
getMedia
public Media getMedia()
(Optional) Media (image, GIF, video) to include in the card.- Returns:
- value or
nullfor none
-
setMedia
public CardContent setMedia(Media media)
(Optional) Media (image, GIF, video) to include in the card.- Parameters:
media- media ornullfor none
-
getSuggestions
public java.util.List<Suggestion> getSuggestions()
(Optional) List of suggestions to include in the card. Maximum 4 suggestions.- Returns:
- value or
nullfor none
-
setSuggestions
public CardContent setSuggestions(java.util.List<Suggestion> suggestions)
(Optional) List of suggestions to include in the card. Maximum 4 suggestions.- Parameters:
suggestions- suggestions ornullfor none
-
getTitle
public java.lang.String getTitle()
(Optional) Title of the card. Maximum 200 characters.- Returns:
- value or
nullfor none
-
setTitle
public CardContent setTitle(java.lang.String title)
(Optional) Title of the card. Maximum 200 characters.- Parameters:
title- title ornullfor none
-
set
public CardContent set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public CardContent clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-