Enum ContentType
- java.lang.Object
-
- java.lang.Enum<ContentType>
-
- cloud.genesys.webmessaging.sdk.model.ContentType
-
- All Implemented Interfaces:
Serializable,Comparable<ContentType>
public enum ContentType extends Enum<ContentType>
Type of this content element.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTACHMENTBUTTONRESPONSECARDCAROUSELGENERICTEMPLATELISTTEMPLATELOCATIONMENTIONNOTIFICATIONPOSTBACKQUICKREPLYQUICKREPLYV2REACTIONSSTORYTEXT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentTypefromString(String key)StringtoString()static ContentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTACHMENT
public static final ContentType ATTACHMENT
-
BUTTONRESPONSE
public static final ContentType BUTTONRESPONSE
-
CARD
public static final ContentType CARD
-
CAROUSEL
public static final ContentType CAROUSEL
-
GENERICTEMPLATE
public static final ContentType GENERICTEMPLATE
-
LISTTEMPLATE
public static final ContentType LISTTEMPLATE
-
LOCATION
public static final ContentType LOCATION
-
MENTION
public static final ContentType MENTION
-
NOTIFICATION
public static final ContentType NOTIFICATION
-
POSTBACK
public static final ContentType POSTBACK
-
QUICKREPLY
public static final ContentType QUICKREPLY
-
QUICKREPLYV2
public static final ContentType QUICKREPLYV2
-
REACTIONS
public static final ContentType REACTIONS
-
STORY
public static final ContentType STORY
-
TEXT
public static final ContentType TEXT
-
-
Method Detail
-
values
public static ContentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContentType c : ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
public static ContentType fromString(String key)
-
toString
public String toString()
- Overrides:
toStringin classEnum<ContentType>
-
-