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

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

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

  @SerializedName("startIndex")
  private Integer startIndex = null;

  @SerializedName("maxCount")
  private Integer maxCount = null;

  @SerializedName("searchCriteria")
  private Object searchCriteria = null;

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

  public UcsgetcontactsData sortCriteria(List sortCriteria) {
    this.sortCriteria = sortCriteria;
    return this;
  }

  public UcsgetcontactsData addSortCriteriaItem(Object sortCriteriaItem) {
    if (this.sortCriteria == null) {
      this.sortCriteria = new ArrayList();
    }
    this.sortCriteria.add(sortCriteriaItem);
    return this;
  }

   /**
   * The sorting criteria
   * @return sortCriteria
  **/
  @ApiModelProperty(value = "The sorting criteria")
  public List getSortCriteria() {
    return sortCriteria;
  }

  public void setSortCriteria(List sortCriteria) {
    this.sortCriteria = sortCriteria;
  }

  public UcsgetcontactsData startIndex(Integer startIndex) {
    this.startIndex = startIndex;
    return this;
  }

   /**
   * The start index
   * @return startIndex
  **/
  @ApiModelProperty(required = true, value = "The start index")
  public Integer getStartIndex() {
    return startIndex;
  }

  public void setStartIndex(Integer startIndex) {
    this.startIndex = startIndex;
  }

  public UcsgetcontactsData maxCount(Integer maxCount) {
    this.maxCount = maxCount;
    return this;
  }

   /**
   * The maximum number of contacts to be returned
   * @return maxCount
  **/
  @ApiModelProperty(required = true, value = "The maximum number of contacts to be returned")
  public Integer getMaxCount() {
    return maxCount;
  }

  public void setMaxCount(Integer maxCount) {
    this.maxCount = maxCount;
  }

  public UcsgetcontactsData searchCriteria(Object searchCriteria) {
    this.searchCriteria = searchCriteria;
    return this;
  }

   /**
   * The search criteria
   * @return searchCriteria
  **/
  @ApiModelProperty(required = true, value = "The search criteria")
  public Object getSearchCriteria() {
    return searchCriteria;
  }

  public void setSearchCriteria(Object searchCriteria) {
    this.searchCriteria = searchCriteria;
  }

  public UcsgetcontactsData attributeList(List attributeList) {
    this.attributeList = attributeList;
    return this;
  }

  public UcsgetcontactsData addAttributeListItem(String attributeListItem) {
    this.attributeList.add(attributeListItem);
    return this;
  }

   /**
   * The list of contact attributes to be returned for each contact in response
   * @return attributeList
  **/
  @ApiModelProperty(required = true, value = "The list of contact attributes to be returned for each contact in response")
  public List getAttributeList() {
    return attributeList;
  }

  public void setAttributeList(List attributeList) {
    this.attributeList = attributeList;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UcsgetcontactsData ucsgetcontactsData = (UcsgetcontactsData) o;
    return Objects.equals(this.sortCriteria, ucsgetcontactsData.sortCriteria) &&
        Objects.equals(this.startIndex, ucsgetcontactsData.startIndex) &&
        Objects.equals(this.maxCount, ucsgetcontactsData.maxCount) &&
        Objects.equals(this.searchCriteria, ucsgetcontactsData.searchCriteria) &&
        Objects.equals(this.attributeList, ucsgetcontactsData.attributeList);
  }

  @Override
  public int hashCode() {
    return Objects.hash(sortCriteria, startIndex, maxCount, searchCriteria, attributeList);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UcsgetcontactsData {\n");
    
    sb.append("    sortCriteria: ").append(toIndentedString(sortCriteria)).append("\n");
    sb.append("    startIndex: ").append(toIndentedString(startIndex)).append("\n");
    sb.append("    maxCount: ").append(toIndentedString(maxCount)).append("\n");
    sb.append("    searchCriteria: ").append(toIndentedString(searchCriteria)).append("\n");
    sb.append("    attributeList: ").append(toIndentedString(attributeList)).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    ");
  }
  
}