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

com.genesys._internal.workspace.model.UcsidentifycontactData 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;

/**
 * UcsidentifycontactData
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-08-22T16:18:36.606Z")
public class UcsidentifycontactData {
  @SerializedName("emailAddress")
  private String emailAddress = null;

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

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

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

  @SerializedName("createContactEnabled")
  private Boolean createContactEnabled = null;

  public UcsidentifycontactData emailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
    return this;
  }

   /**
   * The email address of the interaction, if interaction is an email
   * @return emailAddress
  **/
  @ApiModelProperty(value = "The email address of the interaction, if interaction is an email")
  public String getEmailAddress() {
    return emailAddress;
  }

  public void setEmailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
  }

  public UcsidentifycontactData userData(List userData) {
    this.userData = userData;
    return this;
  }

  public UcsidentifycontactData addUserDataItem(Kvpair userDataItem) {
    this.userData.add(userDataItem);
    return this;
  }

   /**
   * A key/value pairs list of the user data of the call.
   * @return userData
  **/
  @ApiModelProperty(required = true, value = "A key/value pairs list of the user data of the call.")
  public List getUserData() {
    return userData;
  }

  public void setUserData(List userData) {
    this.userData = userData;
  }

  public UcsidentifycontactData phoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
    return this;
  }

   /**
   * The phone number of the interaction, if interaction is a voice call
   * @return phoneNumber
  **/
  @ApiModelProperty(value = "The phone number of the interaction, if interaction is a voice call")
  public String getPhoneNumber() {
    return phoneNumber;
  }

  public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
  }

  public UcsidentifycontactData mediaType(String mediaType) {
    this.mediaType = mediaType;
    return this;
  }

   /**
   * The media type of the interaction
   * @return mediaType
  **/
  @ApiModelProperty(required = true, value = "The media type of the interaction")
  public String getMediaType() {
    return mediaType;
  }

  public void setMediaType(String mediaType) {
    this.mediaType = mediaType;
  }

  public UcsidentifycontactData createContactEnabled(Boolean createContactEnabled) {
    this.createContactEnabled = createContactEnabled;
    return this;
  }

   /**
   * Indicates if a contact should be created if no matching contact found
   * @return createContactEnabled
  **/
  @ApiModelProperty(value = "Indicates if a contact should be created if no matching contact found")
  public Boolean getCreateContactEnabled() {
    return createContactEnabled;
  }

  public void setCreateContactEnabled(Boolean createContactEnabled) {
    this.createContactEnabled = createContactEnabled;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UcsidentifycontactData ucsidentifycontactData = (UcsidentifycontactData) o;
    return Objects.equals(this.emailAddress, ucsidentifycontactData.emailAddress) &&
        Objects.equals(this.userData, ucsidentifycontactData.userData) &&
        Objects.equals(this.phoneNumber, ucsidentifycontactData.phoneNumber) &&
        Objects.equals(this.mediaType, ucsidentifycontactData.mediaType) &&
        Objects.equals(this.createContactEnabled, ucsidentifycontactData.createContactEnabled);
  }

  @Override
  public int hashCode() {
    return Objects.hash(emailAddress, userData, phoneNumber, mediaType, createContactEnabled);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UcsidentifycontactData {\n");
    
    sb.append("    emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
    sb.append("    userData: ").append(toIndentedString(userData)).append("\n");
    sb.append("    phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
    sb.append("    mediaType: ").append(toIndentedString(mediaType)).append("\n");
    sb.append("    createContactEnabled: ").append(toIndentedString(createContactEnabled)).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