Class CarouselCard
- 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.CarouselCard
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class CarouselCard extends com.google.api.client.json.GenericJsonCarousel of cards.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 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 CarouselCard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CarouselCardclone()java.util.List<CardContent>getCardContents()The list of contents for each card in the carousel.java.lang.StringgetCardWidth()The width of the cards in the carousel.CarouselCardset(java.lang.String fieldName, java.lang.Object value)CarouselCardsetCardContents(java.util.List<CardContent> cardContents)The list of contents for each card in the carousel.CarouselCardsetCardWidth(java.lang.String cardWidth)The width of the cards in the carousel.-
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
-
getCardContents
public java.util.List<CardContent> getCardContents()
The list of contents for each card in the carousel. A carousel can have a minimum of 2 cards and a maximum 10 cards.- Returns:
- value or
nullfor none
-
setCardContents
public CarouselCard setCardContents(java.util.List<CardContent> cardContents)
The list of contents for each card in the carousel. A carousel can have a minimum of 2 cards and a maximum 10 cards.- Parameters:
cardContents- cardContents ornullfor none
-
getCardWidth
public java.lang.String getCardWidth()
The width of the cards in the carousel.- Returns:
- value or
nullfor none
-
setCardWidth
public CarouselCard setCardWidth(java.lang.String cardWidth)
The width of the cards in the carousel.- Parameters:
cardWidth- cardWidth ornullfor none
-
set
public CarouselCard set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public CarouselCard clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-