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

com.genesys.internal.provisioning.model.GetObjectsSuccessResponseData Maven / Gradle / Ivy

There is a newer version: 9.0.75
Show newest version
/*
 * Provisioning API
 * The provisioning service will be used to create objects in configuration server in a way that is consistent with the BEC model. The \"users\" resource will be used to perform CRUD operations on config server person objects. Note that this API will extend the low level configuration server API to add additional functionality that will allow persons to be created in a way that makes them immediately useable in BEC. Operations on this resource may result in other configuration objects being modified as well. 
 *
 * OpenAPI spec version: 9.0.000.57.3612
 * 
 *
 * 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.provisioning.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * GetObjectsSuccessResponseData
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-08-27T12:30:27.286Z")
public class GetObjectsSuccessResponseData {
  @SerializedName("skills")
  private List skills = null;

  @SerializedName("dns")
  private List dns = null;

  @SerializedName("agent-groups")
  private List agentGroups = null;

  @SerializedName("dn-groups")
  private List dnGroups = null;

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

  public GetObjectsSuccessResponseData skills(List skills) {
    this.skills = skills;
    return this;
  }

  public GetObjectsSuccessResponseData addSkillsItem(Object skillsItem) {
    if (this.skills == null) {
      this.skills = new ArrayList();
    }
    this.skills.add(skillsItem);
    return this;
  }

   /**
   * A list of skill objects.
   * @return skills
  **/
  @ApiModelProperty(value = "A list of skill objects.")
  public List getSkills() {
    return skills;
  }

  public void setSkills(List skills) {
    this.skills = skills;
  }

  public GetObjectsSuccessResponseData dns(List dns) {
    this.dns = dns;
    return this;
  }

  public GetObjectsSuccessResponseData addDnsItem(Object dnsItem) {
    if (this.dns == null) {
      this.dns = new ArrayList();
    }
    this.dns.add(dnsItem);
    return this;
  }

   /**
   * A list of DN objects.
   * @return dns
  **/
  @ApiModelProperty(value = "A list of DN objects.")
  public List getDns() {
    return dns;
  }

  public void setDns(List dns) {
    this.dns = dns;
  }

  public GetObjectsSuccessResponseData agentGroups(List agentGroups) {
    this.agentGroups = agentGroups;
    return this;
  }

  public GetObjectsSuccessResponseData addAgentGroupsItem(Object agentGroupsItem) {
    if (this.agentGroups == null) {
      this.agentGroups = new ArrayList();
    }
    this.agentGroups.add(agentGroupsItem);
    return this;
  }

   /**
   * A list of agent group objects.
   * @return agentGroups
  **/
  @ApiModelProperty(value = "A list of agent group objects.")
  public List getAgentGroups() {
    return agentGroups;
  }

  public void setAgentGroups(List agentGroups) {
    this.agentGroups = agentGroups;
  }

  public GetObjectsSuccessResponseData dnGroups(List dnGroups) {
    this.dnGroups = dnGroups;
    return this;
  }

  public GetObjectsSuccessResponseData addDnGroupsItem(Object dnGroupsItem) {
    if (this.dnGroups == null) {
      this.dnGroups = new ArrayList();
    }
    this.dnGroups.add(dnGroupsItem);
    return this;
  }

   /**
   * A list of DN group objects.
   * @return dnGroups
  **/
  @ApiModelProperty(value = "A list of DN group objects.")
  public List getDnGroups() {
    return dnGroups;
  }

  public void setDnGroups(List dnGroups) {
    this.dnGroups = dnGroups;
  }

  public GetObjectsSuccessResponseData totalCount(Integer totalCount) {
    this.totalCount = totalCount;
    return this;
  }

   /**
   * The total number of objects (DNs and agent groups) included in the result.
   * @return totalCount
  **/
  @ApiModelProperty(value = "The total number of objects (DNs and agent groups) included in the result.")
  public Integer getTotalCount() {
    return totalCount;
  }

  public void setTotalCount(Integer totalCount) {
    this.totalCount = totalCount;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetObjectsSuccessResponseData getObjectsSuccessResponseData = (GetObjectsSuccessResponseData) o;
    return Objects.equals(this.skills, getObjectsSuccessResponseData.skills) &&
        Objects.equals(this.dns, getObjectsSuccessResponseData.dns) &&
        Objects.equals(this.agentGroups, getObjectsSuccessResponseData.agentGroups) &&
        Objects.equals(this.dnGroups, getObjectsSuccessResponseData.dnGroups) &&
        Objects.equals(this.totalCount, getObjectsSuccessResponseData.totalCount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(skills, dns, agentGroups, dnGroups, totalCount);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetObjectsSuccessResponseData {\n");
    
    sb.append("    skills: ").append(toIndentedString(skills)).append("\n");
    sb.append("    dns: ").append(toIndentedString(dns)).append("\n");
    sb.append("    agentGroups: ").append(toIndentedString(agentGroups)).append("\n");
    sb.append("    dnGroups: ").append(toIndentedString(dnGroups)).append("\n");
    sb.append("    totalCount: ").append(toIndentedString(totalCount)).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    ");
  }

}