Class MessagePost
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.MessagePost
-
public class MessagePost extends java.lang.ObjectMessagePost
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_AUTHORstatic java.lang.StringJSON_PROPERTY_CONTENTstatic java.lang.StringJSON_PROPERTY_DESTINATIONstatic java.lang.StringJSON_PROPERTY_METADATAstatic java.lang.StringJSON_PROPERTY_OVERRIDEstatic java.lang.StringJSON_PROPERTY_SCHEMA
-
Constructor Summary
Constructors Constructor Description MessagePost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagePostauthor(Author author)MessagePostcontent(Content content)MessagePostdestination(Destination destination)booleanequals(java.lang.Object o)AuthorgetAuthor()The author of the message.ContentgetContent()The content of the message.DestinationgetDestination()Get destinationjava.lang.ObjectgetMetadata()Flat object containing custom properties.org.openapitools.jackson.nullable.JsonNullable<java.lang.Object>getMetadata_JsonNullable()MessageOverridegetOverride()Get overridejava.lang.StringgetSchema()When `schema` is set to `\"whatsapp\"`, the `content` key is expected to conform to the [native WhatsApp schema](https://developers.facebook.com/docs/whatsapp/api/messages/message-templates) for sending message templates.inthashCode()MessagePostmetadata(java.lang.Object metadata)MessagePostoverride(MessageOverride override)MessagePostschema(java.lang.String schema)voidsetAuthor(Author author)voidsetContent(Content content)voidsetDestination(Destination destination)voidsetMetadata(java.lang.Object metadata)voidsetMetadata_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> metadata)voidsetOverride(MessageOverride override)voidsetSchema(java.lang.String schema)java.lang.StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHOR
public static final java.lang.String JSON_PROPERTY_AUTHOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTENT
public static final java.lang.String JSON_PROPERTY_CONTENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESTINATION
public static final java.lang.String JSON_PROPERTY_DESTINATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_METADATA
public static final java.lang.String JSON_PROPERTY_METADATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OVERRIDE
public static final java.lang.String JSON_PROPERTY_OVERRIDE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCHEMA
public static final java.lang.String JSON_PROPERTY_SCHEMA
- See Also:
- Constant Field Values
-
-
Method Detail
-
author
public MessagePost author(Author author)
-
getAuthor
public Author getAuthor()
The author of the message.- Returns:
- author
-
setAuthor
public void setAuthor(Author author)
-
content
public MessagePost content(Content content)
-
getContent
public Content getContent()
The content of the message.- Returns:
- content
-
setContent
public void setContent(Content content)
-
destination
public MessagePost destination(Destination destination)
-
getDestination
@Nullable public Destination getDestination()
Get destination- Returns:
- destination
-
setDestination
public void setDestination(Destination destination)
-
metadata
public MessagePost metadata(java.lang.Object metadata)
-
getMetadata
@Nullable public java.lang.Object getMetadata()
Flat object containing custom properties. Strings, numbers and booleans are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size.- Returns:
- metadata
-
getMetadata_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> getMetadata_JsonNullable()
-
setMetadata_JsonNullable
public void setMetadata_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> metadata)
-
setMetadata
public void setMetadata(java.lang.Object metadata)
-
override
public MessagePost override(MessageOverride override)
-
getOverride
@Nullable public MessageOverride getOverride()
Get override- Returns:
- override
-
setOverride
public void setOverride(MessageOverride override)
-
schema
public MessagePost schema(java.lang.String schema)
-
getSchema
@Nullable public java.lang.String getSchema()
When `schema` is set to `\"whatsapp\"`, the `content` key is expected to conform to the [native WhatsApp schema](https://developers.facebook.com/docs/whatsapp/api/messages/message-templates) for sending message templates. For more details, consult the documentation for [sending message templates on WhatsApp](https://docs.smooch.io/guide/whatsapp/#sending-message-templates).- Returns:
- schema
-
setSchema
public void setSchema(java.lang.String schema)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-