Class Source
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.Source
-
public class Source extends java.lang.ObjectThe source of the message.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CLIENTstatic java.lang.StringJSON_PROPERTY_DEVICEstatic java.lang.StringJSON_PROPERTY_INTEGRATION_IDstatic java.lang.StringJSON_PROPERTY_ORIGINAL_MESSAGE_IDstatic java.lang.StringJSON_PROPERTY_ORIGINAL_MESSAGE_TIMESTAMPstatic java.lang.StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sourceclient(Client client)Sourcedevice(Device device)booleanequals(java.lang.Object o)ClientgetClient()The client from which the user authored the message or activity, if applicable.org.openapitools.jackson.nullable.JsonNullable<Client>getClient_JsonNullable()DevicegetDevice()The device from which the user authored the message or activity, if applicable.org.openapitools.jackson.nullable.JsonNullable<Device>getDevice_JsonNullable()java.lang.StringgetIntegrationId()Identifier indicating which integration the message was sent from.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getIntegrationId_JsonNullable()java.lang.StringgetOriginalMessageId()Message identifier assigned by the originating channel.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getOriginalMessageId_JsonNullable()java.lang.StringgetOriginalMessageTimestamp()A datetime string with the format `YYYY-MM-DDThh:mm:ss.SSSZ` representing when the third party channel received the message.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getOriginalMessageTimestamp_JsonNullable()java.lang.StringgetType()An identifier for the channel from which a message originated.inthashCode()SourceintegrationId(java.lang.String integrationId)SourceoriginalMessageId(java.lang.String originalMessageId)SourceoriginalMessageTimestamp(java.lang.String originalMessageTimestamp)voidsetClient(Client client)voidsetClient_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Client> client)voidsetDevice(Device device)voidsetDevice_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Device> device)voidsetIntegrationId(java.lang.String integrationId)voidsetIntegrationId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> integrationId)voidsetOriginalMessageId(java.lang.String originalMessageId)voidsetOriginalMessageId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> originalMessageId)voidsetOriginalMessageTimestamp(java.lang.String originalMessageTimestamp)voidsetOriginalMessageTimestamp_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> originalMessageTimestamp)voidsetType(java.lang.String type)java.lang.StringtoString()Sourcetype(java.lang.String type)
-
-
-
Field Detail
-
JSON_PROPERTY_TYPE
public static final java.lang.String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTEGRATION_ID
public static final java.lang.String JSON_PROPERTY_INTEGRATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORIGINAL_MESSAGE_ID
public static final java.lang.String JSON_PROPERTY_ORIGINAL_MESSAGE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ORIGINAL_MESSAGE_TIMESTAMP
public static final java.lang.String JSON_PROPERTY_ORIGINAL_MESSAGE_TIMESTAMP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CLIENT
public static final java.lang.String JSON_PROPERTY_CLIENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEVICE
public static final java.lang.String JSON_PROPERTY_DEVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public Source type(java.lang.String type)
-
getType
public java.lang.String getType()
An identifier for the channel from which a message originated. May include one of api, sdk, messenger, or any number of other channels.- Returns:
- type
-
setType
public void setType(java.lang.String type)
-
integrationId
public Source integrationId(java.lang.String integrationId)
-
getIntegrationId
@Nullable public java.lang.String getIntegrationId()
Identifier indicating which integration the message was sent from. For user messages only.- Returns:
- integrationId
-
getIntegrationId_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getIntegrationId_JsonNullable()
-
setIntegrationId_JsonNullable
public void setIntegrationId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> integrationId)
-
setIntegrationId
public void setIntegrationId(java.lang.String integrationId)
-
originalMessageId
public Source originalMessageId(java.lang.String originalMessageId)
-
getOriginalMessageId
@Nullable public java.lang.String getOriginalMessageId()
Message identifier assigned by the originating channel.- Returns:
- originalMessageId
-
getOriginalMessageId_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getOriginalMessageId_JsonNullable()
-
setOriginalMessageId_JsonNullable
public void setOriginalMessageId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> originalMessageId)
-
setOriginalMessageId
public void setOriginalMessageId(java.lang.String originalMessageId)
-
originalMessageTimestamp
public Source originalMessageTimestamp(java.lang.String originalMessageTimestamp)
-
getOriginalMessageTimestamp
@Nullable public java.lang.String getOriginalMessageTimestamp()
A datetime string with the format `YYYY-MM-DDThh:mm:ss.SSSZ` representing when the third party channel received the message.- Returns:
- originalMessageTimestamp
-
getOriginalMessageTimestamp_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getOriginalMessageTimestamp_JsonNullable()
-
setOriginalMessageTimestamp_JsonNullable
public void setOriginalMessageTimestamp_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> originalMessageTimestamp)
-
setOriginalMessageTimestamp
public void setOriginalMessageTimestamp(java.lang.String originalMessageTimestamp)
-
getClient
@Nullable public Client getClient()
The client from which the user authored the message or activity, if applicable. This field is not applicable in API responses, it is used only in webhook payloads if the `includeFullSource` option is enabled.- Returns:
- client
-
getClient_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<Client> getClient_JsonNullable()
-
setClient_JsonNullable
public void setClient_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Client> client)
-
setClient
public void setClient(Client client)
-
getDevice
@Nullable public Device getDevice()
The device from which the user authored the message or activity, if applicable. This field is not applicable in API responses, it is used only in webhook payloads if the `includeFullSource` option is enabled.- Returns:
- device
-
getDevice_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<Device> getDevice_JsonNullable()
-
setDevice_JsonNullable
public void setDevice_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Device> device)
-
setDevice
public void setDevice(Device device)
-
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
-
-