Class ClientAddEventAllOfPayload
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.ClientAddEventAllOfPayload
-
public class ClientAddEventAllOfPayload extends java.lang.ObjectThe payload of the event. The contents of this object depend on the type of event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientAddEventAllOfPayload.ReasonEnumThe reason for which the client was added.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CLIENTstatic java.lang.StringJSON_PROPERTY_CONVERSATIONstatic java.lang.StringJSON_PROPERTY_REASONstatic java.lang.StringJSON_PROPERTY_SOURCEstatic java.lang.StringJSON_PROPERTY_USER
-
Constructor Summary
Constructors Constructor Description ClientAddEventAllOfPayload()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_CONVERSATION
public static final java.lang.String JSON_PROPERTY_CONVERSATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER
public static final java.lang.String JSON_PROPERTY_USER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CLIENT
public static final java.lang.String JSON_PROPERTY_CLIENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON
public static final java.lang.String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE
public static final java.lang.String JSON_PROPERTY_SOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
conversation
public ClientAddEventAllOfPayload conversation(ConversationTruncated conversation)
-
getConversation
@Nullable public ConversationTruncated getConversation()
The conversation associated with the creation of the client. This field is only present when the reason is `channelLinking` and when attaching the client to a specific conversation.- Returns:
- conversation
-
getConversation_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<ConversationTruncated> getConversation_JsonNullable()
-
setConversation_JsonNullable
public void setConversation_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<ConversationTruncated> conversation)
-
setConversation
public void setConversation(ConversationTruncated conversation)
-
user
public ClientAddEventAllOfPayload user(UserTruncated user)
-
getUser
@Nullable public UserTruncated getUser()
The user associated with the client.- Returns:
- user
-
setUser
public void setUser(UserTruncated user)
-
client
public ClientAddEventAllOfPayload client(Client client)
-
getClient
@Nullable public Client getClient()
The client that was just created.- Returns:
- client
-
setClient
public void setClient(Client client)
-
reason
public ClientAddEventAllOfPayload reason(ClientAddEventAllOfPayload.ReasonEnum reason)
-
getReason
@Nullable public ClientAddEventAllOfPayload.ReasonEnum getReason()
The reason for which the client was added. * `channelLinking` - The client was created as a result of initiating a channel link. * `sdkLogin` - The client was created as a result of logging into an SDK device. * `authCode` - The client was created as a result of initializing an SDK client with an `authCode`.- Returns:
- reason
-
setReason
public void setReason(ClientAddEventAllOfPayload.ReasonEnum reason)
-
source
public ClientAddEventAllOfPayload source(SourceWebhook source)
-
getSource
@Nullable public SourceWebhook getSource()
The source where this event originated from. This could be the API or an SDK device.- Returns:
- source
-
setSource
public void setSource(SourceWebhook source)
-
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
-
-