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

com.genesys._internal.workspace.model.UcsupdatecontactData Maven / Gradle / Ivy

There is a newer version: 9.0.73
Show newest version
/*
 * Workspace API
 * Application API used by Workspace Web Edition
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.genesys._internal.workspace.model;

import java.util.Objects;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * UcsupdatecontactData
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-08-22T16:18:36.606Z")
public class UcsupdatecontactData {
  @SerializedName("changedProperties")
  private List changedProperties = new ArrayList();

  @SerializedName("contactId")
  private String contactId = null;

  @SerializedName("addedProperties")
  private List addedProperties = new ArrayList();

  @SerializedName("deletedProperties")
  private List deletedProperties = new ArrayList();

  public UcsupdatecontactData changedProperties(List changedProperties) {
    this.changedProperties = changedProperties;
    return this;
  }

  public UcsupdatecontactData addChangedPropertiesItem(Object changedPropertiesItem) {
    this.changedProperties.add(changedPropertiesItem);
    return this;
  }

   /**
   * The list of contact attributes to be updated for the contact
   * @return changedProperties
  **/
  @ApiModelProperty(required = true, value = "The list of contact attributes to be updated for the contact")
  public List getChangedProperties() {
    return changedProperties;
  }

  public void setChangedProperties(List changedProperties) {
    this.changedProperties = changedProperties;
  }

  public UcsupdatecontactData contactId(String contactId) {
    this.contactId = contactId;
    return this;
  }

   /**
   * The id of the contact
   * @return contactId
  **/
  @ApiModelProperty(required = true, value = "The id of the contact")
  public String getContactId() {
    return contactId;
  }

  public void setContactId(String contactId) {
    this.contactId = contactId;
  }

  public UcsupdatecontactData addedProperties(List addedProperties) {
    this.addedProperties = addedProperties;
    return this;
  }

  public UcsupdatecontactData addAddedPropertiesItem(Object addedPropertiesItem) {
    this.addedProperties.add(addedPropertiesItem);
    return this;
  }

   /**
   * The list of contact attributes to be added to the contact
   * @return addedProperties
  **/
  @ApiModelProperty(required = true, value = "The list of contact attributes to be added to the contact")
  public List getAddedProperties() {
    return addedProperties;
  }

  public void setAddedProperties(List addedProperties) {
    this.addedProperties = addedProperties;
  }

  public UcsupdatecontactData deletedProperties(List deletedProperties) {
    this.deletedProperties = deletedProperties;
    return this;
  }

  public UcsupdatecontactData addDeletedPropertiesItem(Object deletedPropertiesItem) {
    this.deletedProperties.add(deletedPropertiesItem);
    return this;
  }

   /**
   * The list of contact attributes to be deleted for the contact
   * @return deletedProperties
  **/
  @ApiModelProperty(required = true, value = "The list of contact attributes to be deleted for the contact")
  public List getDeletedProperties() {
    return deletedProperties;
  }

  public void setDeletedProperties(List deletedProperties) {
    this.deletedProperties = deletedProperties;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UcsupdatecontactData ucsupdatecontactData = (UcsupdatecontactData) o;
    return Objects.equals(this.changedProperties, ucsupdatecontactData.changedProperties) &&
        Objects.equals(this.contactId, ucsupdatecontactData.contactId) &&
        Objects.equals(this.addedProperties, ucsupdatecontactData.addedProperties) &&
        Objects.equals(this.deletedProperties, ucsupdatecontactData.deletedProperties);
  }

  @Override
  public int hashCode() {
    return Objects.hash(changedProperties, contactId, addedProperties, deletedProperties);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UcsupdatecontactData {\n");
    
    sb.append("    changedProperties: ").append(toIndentedString(changedProperties)).append("\n");
    sb.append("    contactId: ").append(toIndentedString(contactId)).append("\n");
    sb.append("    addedProperties: ").append(toIndentedString(addedProperties)).append("\n");
    sb.append("    deletedProperties: ").append(toIndentedString(deletedProperties)).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    ");
  }
  
}