All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.unblu.webapi.model.v4.ExternalMessengerContact Maven / Gradle / Ivy


package com.unblu.webapi.model.v4;

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;

/**
 * Contact belonging to an external messenger.<br> The entity acts as a storage for external channels to create a link between Collaboration Server
 * persons and the users of an external messenger.
 */
@ApiModel(description = "Contact belonging to an external messenger.
The entity acts as a storage for external channels to create a link between Collaboration Server persons and the users of an external messenger.") @JsonPropertyOrder({ ExternalMessengerContact.JSON_PROPERTY_$_TYPE, ExternalMessengerContact.JSON_PROPERTY_ID, ExternalMessengerContact.JSON_PROPERTY_CREATION_TIMESTAMP, ExternalMessengerContact.JSON_PROPERTY_MODIFICATION_TIMESTAMP, ExternalMessengerContact.JSON_PROPERTY_ACCOUNT_ID, ExternalMessengerContact.JSON_PROPERTY_NAME, ExternalMessengerContact.JSON_PROPERTY_DESCRIPTION, ExternalMessengerContact.JSON_PROPERTY_EXTERNAL_MESSENGER_CHANNEL_ID, ExternalMessengerContact.JSON_PROPERTY_SOURCE_ID, ExternalMessengerContact.JSON_PROPERTY_PERSON_ID, }) @JsonAutoDetect(creatorVisibility = Visibility.NONE, fieldVisibility = Visibility.NONE, getterVisibility = Visibility.NONE, isGetterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE) public class ExternalMessengerContact { /** * Gets or Sets $type */ public enum TypeEnum { EXTERNALMESSENGERCONTACT("ExternalMessengerContact"); 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.EXTERNALMESSENGERCONTACT; } } public static final String JSON_PROPERTY_$_TYPE = "$_type"; @JsonProperty(JSON_PROPERTY_$_TYPE) private TypeEnum $type = TypeEnum.EXTERNALMESSENGERCONTACT; 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_NAME = "name"; @JsonProperty(JSON_PROPERTY_NAME) private String name; public static final String JSON_PROPERTY_DESCRIPTION = "description"; @JsonProperty(JSON_PROPERTY_DESCRIPTION) private String description; public static final String JSON_PROPERTY_EXTERNAL_MESSENGER_CHANNEL_ID = "externalMessengerChannelId"; @JsonProperty(JSON_PROPERTY_EXTERNAL_MESSENGER_CHANNEL_ID) private String externalMessengerChannelId; public static final String JSON_PROPERTY_SOURCE_ID = "sourceId"; @JsonProperty(JSON_PROPERTY_SOURCE_ID) private String sourceId; public static final String JSON_PROPERTY_PERSON_ID = "personId"; @JsonProperty(JSON_PROPERTY_PERSON_ID) private String personId; public ExternalMessengerContact $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 ExternalMessengerContact id(String id) { this.id = id; return this; } /** * Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server. * * @return id **/ @ApiModelProperty(value = "Unique ID of the entity. When creating an entity, this property can be omitted; it's generated by the server.") public String getId() { return id; } public void setId(String id) { this.id = id; } public ExternalMessengerContact creationTimestamp(Long creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } /** * Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be * omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency.. * * @return creationTimestamp **/ @ApiModelProperty(value = "Creation timestamp of the entity. It is defined when the entity is first stored in Unblu. Any value sent to the Unblu server is ignored, so it can be omitted. Note: If you set this property, Unblu returns the same value, but it isn't written to storage and doesn't affect data consistency..") public Long getCreationTimestamp() { return creationTimestamp; } public void setCreationTimestamp(Long creationTimestamp) { this.creationTimestamp = creationTimestamp; } public ExternalMessengerContact 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 ExternalMessengerContact 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 is filled by the Unblu 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 is filled by the Unblu 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 ExternalMessengerContact name(String name) { this.name = name; return this; } /** * The name of the contact * * @return name **/ @ApiModelProperty(value = "The name of the contact") public String getName() { return name; } public void setName(String name) { this.name = name; } public ExternalMessengerContact description(String description) { this.description = description; return this; } /** * The description for the contact to give more information what the source ID is about. E.g. private or company phone number. * * @return description **/ @ApiModelProperty(value = "The description for the contact to give more information what the source ID is about. E.g. private or company phone number.") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public ExternalMessengerContact externalMessengerChannelId(String externalMessengerChannelId) { this.externalMessengerChannelId = externalMessengerChannelId; return this; } /** * The external messenger channel ID through which the contact is communicating * * @return externalMessengerChannelId **/ @ApiModelProperty(value = "The external messenger channel ID through which the contact is communicating") public String getExternalMessengerChannelId() { return externalMessengerChannelId; } public void setExternalMessengerChannelId(String externalMessengerChannelId) { this.externalMessengerChannelId = externalMessengerChannelId; } public ExternalMessengerContact sourceId(String sourceId) { this.sourceId = sourceId; return this; } /** * An ID to identify the contact inside the external messenger system * * @return sourceId **/ @ApiModelProperty(value = "An ID to identify the contact inside the external messenger system") public String getSourceId() { return sourceId; } public void setSourceId(String sourceId) { this.sourceId = sourceId; } public ExternalMessengerContact personId(String personId) { this.personId = personId; return this; } /** * The person ID in Unblu that the contact is linked with * * @return personId **/ @ApiModelProperty(value = "The person ID in Unblu that the contact is linked with") public String getPersonId() { return personId; } public void setPersonId(String personId) { this.personId = personId; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ExternalMessengerContact externalMessengerContact = (ExternalMessengerContact) o; return Objects.equals(this.$type, externalMessengerContact.$type) && Objects.equals(this.id, externalMessengerContact.id) && Objects.equals(this.creationTimestamp, externalMessengerContact.creationTimestamp) && Objects.equals(this.modificationTimestamp, externalMessengerContact.modificationTimestamp) && Objects.equals(this.accountId, externalMessengerContact.accountId) && Objects.equals(this.name, externalMessengerContact.name) && Objects.equals(this.description, externalMessengerContact.description) && Objects.equals(this.externalMessengerChannelId, externalMessengerContact.externalMessengerChannelId) && Objects.equals(this.sourceId, externalMessengerContact.sourceId) && Objects.equals(this.personId, externalMessengerContact.personId); } @Override public int hashCode() { return Objects.hash($type, id, creationTimestamp, modificationTimestamp, accountId, name, description, externalMessengerChannelId, sourceId, personId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExternalMessengerContact {\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(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" externalMessengerChannelId: ").append(toIndentedString(externalMessengerChannelId)).append("\n"); sb.append(" sourceId: ").append(toIndentedString(sourceId)).append("\n"); sb.append(" personId: ").append(toIndentedString(personId)).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 "); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy