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

com.mypurecloud.sdk.model.RoutingData Maven / Gradle / Ivy

The newest version!
package com.mypurecloud.sdk.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

import java.io.Serializable;
/**
 * RoutingData
 */

public class RoutingData  implements Serializable {
  
  private String queueId = null;
  private String languageId = null;
  private Integer priority = null;
  private List skillIds = new ArrayList();
  private List preferredAgentIds = new ArrayList();

  
  /**
   * The identifier of the routing queue
   **/
  public RoutingData queueId(String queueId) {
    this.queueId = queueId;
    return this;
  }
  
  @ApiModelProperty(example = "null", required = true, value = "The identifier of the routing queue")
  @JsonProperty("queueId")
  public String getQueueId() {
    return queueId;
  }
  public void setQueueId(String queueId) {
    this.queueId = queueId;
  }


  /**
   * The identifier of a language to be considered in routing
   **/
  public RoutingData languageId(String languageId) {
    this.languageId = languageId;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "The identifier of a language to be considered in routing")
  @JsonProperty("languageId")
  public String getLanguageId() {
    return languageId;
  }
  public void setLanguageId(String languageId) {
    this.languageId = languageId;
  }


  /**
   * The priority for routing
   **/
  public RoutingData priority(Integer priority) {
    this.priority = priority;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "The priority for routing")
  @JsonProperty("priority")
  public Integer getPriority() {
    return priority;
  }
  public void setPriority(Integer priority) {
    this.priority = priority;
  }


  /**
   * A list of skill identifiers to be considered in routing
   **/
  public RoutingData skillIds(List skillIds) {
    this.skillIds = skillIds;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "A list of skill identifiers to be considered in routing")
  @JsonProperty("skillIds")
  public List getSkillIds() {
    return skillIds;
  }
  public void setSkillIds(List skillIds) {
    this.skillIds = skillIds;
  }


  /**
   * A list of agents to be preferred in routing
   **/
  public RoutingData preferredAgentIds(List preferredAgentIds) {
    this.preferredAgentIds = preferredAgentIds;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "A list of agents to be preferred in routing")
  @JsonProperty("preferredAgentIds")
  public List getPreferredAgentIds() {
    return preferredAgentIds;
  }
  public void setPreferredAgentIds(List preferredAgentIds) {
    this.preferredAgentIds = preferredAgentIds;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RoutingData routingData = (RoutingData) o;
    return Objects.equals(this.queueId, routingData.queueId) &&
        Objects.equals(this.languageId, routingData.languageId) &&
        Objects.equals(this.priority, routingData.priority) &&
        Objects.equals(this.skillIds, routingData.skillIds) &&
        Objects.equals(this.preferredAgentIds, routingData.preferredAgentIds);
  }

  @Override
  public int hashCode() {
    return Objects.hash(queueId, languageId, priority, skillIds, preferredAgentIds);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RoutingData {\n");
    
    sb.append("    queueId: ").append(toIndentedString(queueId)).append("\n");
    sb.append("    languageId: ").append(toIndentedString(languageId)).append("\n");
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
    sb.append("    skillIds: ").append(toIndentedString(skillIds)).append("\n");
    sb.append("    preferredAgentIds: ").append(toIndentedString(preferredAgentIds)).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 - 2024 Weber Informatics LLC | Privacy Policy