com.mypurecloud.sdk.model.UserRoutingSkillPost Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
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.io.Serializable;
/**
* Represents an organization skill assigned to a user. When assigning to a user specify the organization skill id as the id.
*/
@ApiModel(description = "Represents an organization skill assigned to a user. When assigning to a user specify the organization skill id as the id.")
public class UserRoutingSkillPost implements Serializable {
private String id = null;
private Double proficiency = null;
private String skillUri = null;
private String selfUri = null;
/**
* The id of the existing routing skill to add to the user
**/
public UserRoutingSkillPost id(String id) {
this.id = id;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The id of the existing routing skill to add to the user")
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
* Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular skill. It is used when a queue is set to \"Best available skills\" mode to allow acd interactions to target agents with higher proficiency ratings.
**/
public UserRoutingSkillPost proficiency(Double proficiency) {
this.proficiency = proficiency;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular skill. It is used when a queue is set to \"Best available skills\" mode to allow acd interactions to target agents with higher proficiency ratings.")
@JsonProperty("proficiency")
public Double getProficiency() {
return proficiency;
}
public void setProficiency(Double proficiency) {
this.proficiency = proficiency;
}
@ApiModelProperty(example = "null", value = "URI to the organization skill used by this user skill.")
@JsonProperty("skillUri")
public String getSkillUri() {
return skillUri;
}
@ApiModelProperty(example = "null", value = "The URI for this object")
@JsonProperty("selfUri")
public String getSelfUri() {
return selfUri;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserRoutingSkillPost userRoutingSkillPost = (UserRoutingSkillPost) o;
return Objects.equals(this.id, userRoutingSkillPost.id) &&
Objects.equals(this.proficiency, userRoutingSkillPost.proficiency) &&
Objects.equals(this.skillUri, userRoutingSkillPost.skillUri) &&
Objects.equals(this.selfUri, userRoutingSkillPost.selfUri);
}
@Override
public int hashCode() {
return Objects.hash(id, proficiency, skillUri, selfUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserRoutingSkillPost {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" proficiency: ").append(toIndentedString(proficiency)).append("\n");
sb.append(" skillUri: ").append(toIndentedString(skillUri)).append("\n");
sb.append(" selfUri: ").append(toIndentedString(selfUri)).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 ");
}
}