Class Conversation
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.Conversation
-
public class Conversation extends java.lang.ObjectConversation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_ACTIVE_SWITCHBOARD_INTEGRATIONstatic java.lang.StringJSON_PROPERTY_BUSINESS_LAST_READstatic java.lang.StringJSON_PROPERTY_DESCRIPTIONstatic java.lang.StringJSON_PROPERTY_DISPLAY_NAMEstatic java.lang.StringJSON_PROPERTY_ICON_URLstatic java.lang.StringJSON_PROPERTY_IDstatic java.lang.StringJSON_PROPERTY_IS_DEFAULTstatic java.lang.StringJSON_PROPERTY_LAST_UPDATED_ATstatic java.lang.StringJSON_PROPERTY_METADATAstatic java.lang.StringJSON_PROPERTY_PENDING_SWITCHBOARD_INTEGRATIONstatic java.lang.StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Conversation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationactiveSwitchboardIntegration(SwitchboardIntegrationWebhook activeSwitchboardIntegration)ConversationbusinessLastRead(java.lang.String businessLastRead)Conversationdescription(java.lang.String description)ConversationdisplayName(java.lang.String displayName)booleanequals(java.lang.Object o)SwitchboardIntegrationWebhookgetActiveSwitchboardIntegration()The current switchboard integration that is in control of the conversation.org.openapitools.jackson.nullable.JsonNullable<SwitchboardIntegrationWebhook>getActiveSwitchboardIntegration_JsonNullable()java.lang.StringgetBusinessLastRead()A datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the moment the conversation was last marked as read with role business.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getBusinessLastRead_JsonNullable()java.lang.StringgetDescription()A short text describing the conversation.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getDescription_JsonNullable()java.lang.StringgetDisplayName()A friendly name for the conversation, may be displayed to the business or the user.java.net.URIgetIconUrl()A custom conversation icon url.org.openapitools.jackson.nullable.JsonNullable<java.net.URI>getIconUrl_JsonNullable()java.lang.StringgetId()The unique ID of the conversation.java.lang.BooleangetIsDefault()Whether the conversation is the default conversation for the user.java.lang.StringgetLastUpdatedAt()A datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the moment the last message was received in the conversation, or the creation time if no messages have been received yet.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getLastUpdatedAt_JsonNullable()java.lang.ObjectgetMetadata()Flat object containing custom properties.org.openapitools.jackson.nullable.JsonNullable<java.lang.Object>getMetadata_JsonNullable()SwitchboardIntegrationWebhookgetPendingSwitchboardIntegration()The switchboard integration that is awaiting control.org.openapitools.jackson.nullable.JsonNullable<SwitchboardIntegrationWebhook>getPendingSwitchboardIntegration_JsonNullable()ConversationTypegetType()Get typeinthashCode()ConversationiconUrl(java.net.URI iconUrl)Conversationid(java.lang.String id)ConversationisDefault(java.lang.Boolean isDefault)ConversationlastUpdatedAt(java.lang.String lastUpdatedAt)Conversationmetadata(java.lang.Object metadata)ConversationpendingSwitchboardIntegration(SwitchboardIntegrationWebhook pendingSwitchboardIntegration)voidsetActiveSwitchboardIntegration(SwitchboardIntegrationWebhook activeSwitchboardIntegration)voidsetActiveSwitchboardIntegration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<SwitchboardIntegrationWebhook> activeSwitchboardIntegration)voidsetBusinessLastRead(java.lang.String businessLastRead)voidsetBusinessLastRead_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> businessLastRead)voidsetDescription(java.lang.String description)voidsetDescription_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)voidsetDisplayName(java.lang.String displayName)voidsetIconUrl(java.net.URI iconUrl)voidsetIconUrl_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.net.URI> iconUrl)voidsetId(java.lang.String id)voidsetIsDefault(java.lang.Boolean isDefault)voidsetLastUpdatedAt(java.lang.String lastUpdatedAt)voidsetLastUpdatedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> lastUpdatedAt)voidsetMetadata(java.lang.Object metadata)voidsetMetadata_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> metadata)voidsetPendingSwitchboardIntegration(SwitchboardIntegrationWebhook pendingSwitchboardIntegration)voidsetPendingSwitchboardIntegration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<SwitchboardIntegrationWebhook> pendingSwitchboardIntegration)voidsetType(ConversationType type)java.lang.StringtoString()Conversationtype(ConversationType type)
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final java.lang.String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final java.lang.String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_METADATA
public static final java.lang.String JSON_PROPERTY_METADATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACTIVE_SWITCHBOARD_INTEGRATION
public static final java.lang.String JSON_PROPERTY_ACTIVE_SWITCHBOARD_INTEGRATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PENDING_SWITCHBOARD_INTEGRATION
public static final java.lang.String JSON_PROPERTY_PENDING_SWITCHBOARD_INTEGRATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IS_DEFAULT
public static final java.lang.String JSON_PROPERTY_IS_DEFAULT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPLAY_NAME
public static final java.lang.String JSON_PROPERTY_DISPLAY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final java.lang.String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ICON_URL
public static final java.lang.String JSON_PROPERTY_ICON_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BUSINESS_LAST_READ
public static final java.lang.String JSON_PROPERTY_BUSINESS_LAST_READ
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_UPDATED_AT
public static final java.lang.String JSON_PROPERTY_LAST_UPDATED_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public Conversation id(java.lang.String id)
-
getId
@Nullable public java.lang.String getId()
The unique ID of the conversation.- Returns:
- id
-
setId
public void setId(java.lang.String id)
-
type
public Conversation type(ConversationType type)
-
getType
@Nullable public ConversationType getType()
Get type- Returns:
- type
-
setType
public void setType(ConversationType type)
-
metadata
public Conversation 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)
-
activeSwitchboardIntegration
public Conversation activeSwitchboardIntegration(SwitchboardIntegrationWebhook activeSwitchboardIntegration)
-
getActiveSwitchboardIntegration
@Nullable public SwitchboardIntegrationWebhook getActiveSwitchboardIntegration()
The current switchboard integration that is in control of the conversation. This field is omitted if no `activeSwitchboardIntegration` exists for the conversation.- Returns:
- activeSwitchboardIntegration
-
getActiveSwitchboardIntegration_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<SwitchboardIntegrationWebhook> getActiveSwitchboardIntegration_JsonNullable()
-
setActiveSwitchboardIntegration_JsonNullable
public void setActiveSwitchboardIntegration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<SwitchboardIntegrationWebhook> activeSwitchboardIntegration)
-
setActiveSwitchboardIntegration
public void setActiveSwitchboardIntegration(SwitchboardIntegrationWebhook activeSwitchboardIntegration)
-
pendingSwitchboardIntegration
public Conversation pendingSwitchboardIntegration(SwitchboardIntegrationWebhook pendingSwitchboardIntegration)
-
getPendingSwitchboardIntegration
@Nullable public SwitchboardIntegrationWebhook getPendingSwitchboardIntegration()
The switchboard integration that is awaiting control. This field is omitted if no switchboard integration has been previously offered control.- Returns:
- pendingSwitchboardIntegration
-
getPendingSwitchboardIntegration_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<SwitchboardIntegrationWebhook> getPendingSwitchboardIntegration_JsonNullable()
-
setPendingSwitchboardIntegration_JsonNullable
public void setPendingSwitchboardIntegration_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<SwitchboardIntegrationWebhook> pendingSwitchboardIntegration)
-
setPendingSwitchboardIntegration
public void setPendingSwitchboardIntegration(SwitchboardIntegrationWebhook pendingSwitchboardIntegration)
-
isDefault
public Conversation isDefault(java.lang.Boolean isDefault)
-
getIsDefault
@Nullable public java.lang.Boolean getIsDefault()
Whether the conversation is the default conversation for the user. Will be true for the first personal conversation created for the user, and false in all other cases.- Returns:
- isDefault
-
setIsDefault
public void setIsDefault(java.lang.Boolean isDefault)
-
displayName
public Conversation displayName(java.lang.String displayName)
-
getDisplayName
@Nullable public java.lang.String getDisplayName()
A friendly name for the conversation, may be displayed to the business or the user.- Returns:
- displayName
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
-
description
public Conversation description(java.lang.String description)
-
getDescription
@Nullable public java.lang.String getDescription()
A short text describing the conversation.- Returns:
- description
-
getDescription_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getDescription_JsonNullable()
-
setDescription_JsonNullable
public void setDescription_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)
-
setDescription
public void setDescription(java.lang.String description)
-
iconUrl
public Conversation iconUrl(java.net.URI iconUrl)
-
getIconUrl
@Nullable public java.net.URI getIconUrl()
A custom conversation icon url. The image must be in either JPG, PNG, or GIF format- Returns:
- iconUrl
-
getIconUrl_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.net.URI> getIconUrl_JsonNullable()
-
setIconUrl_JsonNullable
public void setIconUrl_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.net.URI> iconUrl)
-
setIconUrl
public void setIconUrl(java.net.URI iconUrl)
-
businessLastRead
public Conversation businessLastRead(java.lang.String businessLastRead)
-
getBusinessLastRead
@Nullable public java.lang.String getBusinessLastRead()
A datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the moment the conversation was last marked as read with role business.- Returns:
- businessLastRead
-
getBusinessLastRead_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getBusinessLastRead_JsonNullable()
-
setBusinessLastRead_JsonNullable
public void setBusinessLastRead_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> businessLastRead)
-
setBusinessLastRead
public void setBusinessLastRead(java.lang.String businessLastRead)
-
lastUpdatedAt
public Conversation lastUpdatedAt(java.lang.String lastUpdatedAt)
-
getLastUpdatedAt
@Nullable public java.lang.String getLastUpdatedAt()
A datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the moment the last message was received in the conversation, or the creation time if no messages have been received yet.- Returns:
- lastUpdatedAt
-
getLastUpdatedAt_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getLastUpdatedAt_JsonNullable()
-
setLastUpdatedAt_JsonNullable
public void setLastUpdatedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> lastUpdatedAt)
-
setLastUpdatedAt
public void setLastUpdatedAt(java.lang.String lastUpdatedAt)
-
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
-
-