Class ClientRemoveEventAllOfPayload
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.ClientRemoveEventAllOfPayload
-
public class ClientRemoveEventAllOfPayload 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 classClientRemoveEventAllOfPayload.ReasonEnumThe reason for which the client was removed.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CLIENTstatic java.lang.StringJSON_PROPERTY_CONVERSATIONstatic java.lang.StringJSON_PROPERTY_ERRORstatic java.lang.StringJSON_PROPERTY_REASONstatic java.lang.StringJSON_PROPERTY_SOURCEstatic java.lang.StringJSON_PROPERTY_USER
-
Constructor Summary
Constructors Constructor Description ClientRemoveEventAllOfPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientRemoveEventAllOfPayloadclient(Client client)ClientRemoveEventAllOfPayloadconversation(ConversationTruncated conversation)booleanequals(java.lang.Object o)ClientRemoveEventAllOfPayloaderror(java.lang.Object error)ClientgetClient()The removed client.ConversationTruncatedgetConversation()The conversation associated with the removal of the client.org.openapitools.jackson.nullable.JsonNullable<ConversationTruncated>getConversation_JsonNullable()java.lang.ObjectgetError()Object containing details of what went wrong.org.openapitools.jackson.nullable.JsonNullable<java.lang.Object>getError_JsonNullable()ClientRemoveEventAllOfPayload.ReasonEnumgetReason()The reason for which the client was removed.SourceWebhookgetSource()The source where this event originated from.UserTruncatedgetUser()The user associated with the client.inthashCode()ClientRemoveEventAllOfPayloadreason(ClientRemoveEventAllOfPayload.ReasonEnum reason)voidsetClient(Client client)voidsetConversation(ConversationTruncated conversation)voidsetConversation_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<ConversationTruncated> conversation)voidsetError(java.lang.Object error)voidsetError_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> error)voidsetReason(ClientRemoveEventAllOfPayload.ReasonEnum reason)voidsetSource(SourceWebhook source)voidsetUser(UserTruncated user)ClientRemoveEventAllOfPayloadsource(SourceWebhook source)java.lang.StringtoString()ClientRemoveEventAllOfPayloaduser(UserTruncated user)
-
-
-
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_ERROR
public static final java.lang.String JSON_PROPERTY_ERROR
- 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 ClientRemoveEventAllOfPayload conversation(ConversationTruncated conversation)
-
getConversation
@Nullable public ConversationTruncated getConversation()
The conversation associated with the removal of the client. This field is only present when the reason is `theft`, `linkCancelled` or `linkFailed`. Note that for the `theft` reason, the conversation will not be present if it has been deleted.- 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 ClientRemoveEventAllOfPayload user(UserTruncated user)
-
getUser
@Nullable public UserTruncated getUser()
The user associated with the client.- Returns:
- user
-
setUser
public void setUser(UserTruncated user)
-
client
public ClientRemoveEventAllOfPayload client(Client client)
-
getClient
@Nullable public Client getClient()
The removed client.- Returns:
- client
-
setClient
public void setClient(Client client)
-
reason
public ClientRemoveEventAllOfPayload reason(ClientRemoveEventAllOfPayload.ReasonEnum reason)
-
getReason
@Nullable public ClientRemoveEventAllOfPayload.ReasonEnum getReason()
The reason for which the client was removed. * `api` - The client was removed using the API. * `linkCancelled` - The user cancelled a channel link. * `linkFailed` - The client was removed after a channel link attempt failed. * `sdk` - The client was removed using the SDK. * `theft` - The client was transferred to another user due to a channel link.- Returns:
- reason
-
setReason
public void setReason(ClientRemoveEventAllOfPayload.ReasonEnum reason)
-
error
public ClientRemoveEventAllOfPayload error(java.lang.Object error)
-
getError
@Nullable public java.lang.Object getError()
Object containing details of what went wrong. This field will only be present when the reason is `linkCancelled` or `linkFailed`.- Returns:
- error
-
getError_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> getError_JsonNullable()
-
setError_JsonNullable
public void setError_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> error)
-
setError
public void setError(java.lang.Object error)
-
source
public ClientRemoveEventAllOfPayload 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
-
-