com.unblu.webapi.model.v3.CannedResponseUsage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of models-v3 Show documentation
Show all versions of models-v3 Show documentation
Java classes corresponding to the JSON bodies
The newest version!
package com.unblu.webapi.model.v3;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Model of usage of a canned response by a person within a conversation message.
*/
@ApiModel(description = "Model of usage of a canned response by a person within a conversation message.")
@JsonPropertyOrder({
CannedResponseUsage.JSON_PROPERTY_$_TYPE,
CannedResponseUsage.JSON_PROPERTY_ID,
CannedResponseUsage.JSON_PROPERTY_CREATION_TIMESTAMP,
CannedResponseUsage.JSON_PROPERTY_MODIFICATION_TIMESTAMP,
CannedResponseUsage.JSON_PROPERTY_ACCOUNT_ID,
CannedResponseUsage.JSON_PROPERTY_CANNED_RESPONSE_ID,
CannedResponseUsage.JSON_PROPERTY_PERSON_ID,
CannedResponseUsage.JSON_PROPERTY_MESSAGE_ID,
CannedResponseUsage.JSON_PROPERTY_CONVERSATION_ID,
})
@JsonAutoDetect(creatorVisibility = Visibility.NONE, fieldVisibility = Visibility.NONE, getterVisibility = Visibility.NONE, isGetterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
public class CannedResponseUsage {
/**
* Gets or Sets $type
*/
public enum TypeEnum {
CANNEDRESPONSEUSAGE("CannedResponseUsage");
private String value;
TypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String value) {
for (TypeEnum b : TypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return TypeEnum.CANNEDRESPONSEUSAGE;
}
}
public static final String JSON_PROPERTY_$_TYPE = "$_type";
@JsonProperty(JSON_PROPERTY_$_TYPE)
private TypeEnum $type = TypeEnum.CANNEDRESPONSEUSAGE;
public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
private String id;
public static final String JSON_PROPERTY_CREATION_TIMESTAMP = "creationTimestamp";
@JsonProperty(JSON_PROPERTY_CREATION_TIMESTAMP)
private Long creationTimestamp;
public static final String JSON_PROPERTY_MODIFICATION_TIMESTAMP = "modificationTimestamp";
@JsonProperty(JSON_PROPERTY_MODIFICATION_TIMESTAMP)
private Long modificationTimestamp;
public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
private String accountId;
public static final String JSON_PROPERTY_CANNED_RESPONSE_ID = "cannedResponseId";
@JsonProperty(JSON_PROPERTY_CANNED_RESPONSE_ID)
private String cannedResponseId;
public static final String JSON_PROPERTY_PERSON_ID = "personId";
@JsonProperty(JSON_PROPERTY_PERSON_ID)
private String personId;
public static final String JSON_PROPERTY_MESSAGE_ID = "messageId";
@JsonProperty(JSON_PROPERTY_MESSAGE_ID)
private String messageId;
public static final String JSON_PROPERTY_CONVERSATION_ID = "conversationId";
@JsonProperty(JSON_PROPERTY_CONVERSATION_ID)
private String conversationId;
public CannedResponseUsage $type(TypeEnum $type) {
this.$type = $type;
return this;
}
/**
* Get $type
*
* @return $type
**/
@ApiModelProperty(value = "")
public TypeEnum get$Type() {
return $type;
}
public void set$Type(TypeEnum $type) {
this.$type = $type;
}
public CannedResponseUsage id(String id) {
this.id = id;
return this;
}
/**
* Unique id of the entity. When creating an entity this property can be omitted as it will be generated by the server anyway.
*
* @return id
**/
@ApiModelProperty(value = "Unique id of the entity. When creating an entity this property can be omitted as it will be generated by the server anyway.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public CannedResponseUsage creationTimestamp(Long creationTimestamp) {
this.creationTimestamp = creationTimestamp;
return this;
}
/**
* Creation timestamp of the entity. It is defined when the entity is stored the first time in the system. It is ignored, when sending it to the server and
* therefore can be omitted. Note: If you set this property it will return the same value but it will not be written to the storage and will not effect the data
* consistency.
*
* @return creationTimestamp
**/
@ApiModelProperty(value = "Creation timestamp of the entity. It is defined when the entity is stored the first time in the system. It is ignored, when sending it to the server and therefore can be omitted. Note: If you set this property it will return the same value but it will not be written to the storage and will not effect the data consistency.")
public Long getCreationTimestamp() {
return creationTimestamp;
}
public void setCreationTimestamp(Long creationTimestamp) {
this.creationTimestamp = creationTimestamp;
}
public CannedResponseUsage modificationTimestamp(Long modificationTimestamp) {
this.modificationTimestamp = modificationTimestamp;
return this;
}
/**
* Timestamp of the last modification. This property is always optional and can be omitted, when sending data to the server. It is only of informational
* character. It is ignored, when sending it to the server and therefore can be omitted. Note: If you set this property it will return the same value but it
* will not be written to the storage and will not effect the data consistency.
*
* @return modificationTimestamp
**/
@ApiModelProperty(value = "Timestamp of the last modification. This property is always optional and can be omitted, when sending data to the server. It is only of informational character. It is ignored, when sending it to the server and therefore can be omitted. Note: If you set this property it will return the same value but it will not be written to the storage and will not effect the data consistency.")
public Long getModificationTimestamp() {
return modificationTimestamp;
}
public void setModificationTimestamp(Long modificationTimestamp) {
this.modificationTimestamp = modificationTimestamp;
}
public CannedResponseUsage accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the
* user currently logged in. When editing an entity, you must include the account ID.
*
* @return accountId
**/
@ApiModelProperty(value = "ID of the account the entity belongs to. When creating an entity, the account ID can be omitted. It will be filled by the server with the account ID of the user currently logged in. When editing an entity, you must include the account ID.")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public CannedResponseUsage cannedResponseId(String cannedResponseId) {
this.cannedResponseId = cannedResponseId;
return this;
}
/**
* The ID of the canned response used by a person within a message
*
* @return cannedResponseId
**/
@ApiModelProperty(value = "The ID of the canned response used by a person within a message")
public String getCannedResponseId() {
return cannedResponseId;
}
public void setCannedResponseId(String cannedResponseId) {
this.cannedResponseId = cannedResponseId;
}
public CannedResponseUsage personId(String personId) {
this.personId = personId;
return this;
}
/**
* The ID of the person who used the canned response within a message
*
* @return personId
**/
@ApiModelProperty(value = "The ID of the person who used the canned response within a message")
public String getPersonId() {
return personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public CannedResponseUsage messageId(String messageId) {
this.messageId = messageId;
return this;
}
/**
* The ID of the message where a canned response was used
*
* @return messageId
**/
@ApiModelProperty(value = "The ID of the message where a canned response was used")
public String getMessageId() {
return messageId;
}
public void setMessageId(String messageId) {
this.messageId = messageId;
}
public CannedResponseUsage conversationId(String conversationId) {
this.conversationId = conversationId;
return this;
}
/**
* The ID of the conversation where a canned response was used
*
* @return conversationId
**/
@ApiModelProperty(value = "The ID of the conversation where a canned response was used")
public String getConversationId() {
return conversationId;
}
public void setConversationId(String conversationId) {
this.conversationId = conversationId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CannedResponseUsage cannedResponseUsage = (CannedResponseUsage) o;
return Objects.equals(this.$type, cannedResponseUsage.$type) &&
Objects.equals(this.id, cannedResponseUsage.id) &&
Objects.equals(this.creationTimestamp, cannedResponseUsage.creationTimestamp) &&
Objects.equals(this.modificationTimestamp, cannedResponseUsage.modificationTimestamp) &&
Objects.equals(this.accountId, cannedResponseUsage.accountId) &&
Objects.equals(this.cannedResponseId, cannedResponseUsage.cannedResponseId) &&
Objects.equals(this.personId, cannedResponseUsage.personId) &&
Objects.equals(this.messageId, cannedResponseUsage.messageId) &&
Objects.equals(this.conversationId, cannedResponseUsage.conversationId);
}
@Override
public int hashCode() {
return Objects.hash($type, id, creationTimestamp, modificationTimestamp, accountId, cannedResponseId, personId, messageId, conversationId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CannedResponseUsage {\n");
sb.append(" $type: ").append(toIndentedString($type)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" creationTimestamp: ").append(toIndentedString(creationTimestamp)).append("\n");
sb.append(" modificationTimestamp: ").append(toIndentedString(modificationTimestamp)).append("\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" cannedResponseId: ").append(toIndentedString(cannedResponseId)).append("\n");
sb.append(" personId: ").append(toIndentedString(personId)).append("\n");
sb.append(" messageId: ").append(toIndentedString(messageId)).append("\n");
sb.append(" conversationId: ").append(toIndentedString(conversationId)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}