com.mypurecloud.sdk.model.CallForwarding 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 com.mypurecloud.sdk.model.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.io.Serializable;
/**
* CallForwarding
*/
public class CallForwarding implements Serializable {
private String id = null;
private String name = null;
private User user = null;
private Boolean enabled = null;
private String phoneNumber = null;
private Date modifiedDate = null;
private String selfUri = null;
@ApiModelProperty(example = "null", value = "The globally unique identifier for the object.")
@JsonProperty("id")
public String getId() {
return id;
}
/**
**/
public CallForwarding name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public CallForwarding user(User user) {
this.user = user;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("user")
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
/**
**/
public CallForwarding enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("enabled")
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
/**
**/
public CallForwarding phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("phoneNumber")
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
/**
* Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public CallForwarding modifiedDate(Date modifiedDate) {
this.modifiedDate = modifiedDate;
return this;
}
@ApiModelProperty(example = "null", value = "Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("modifiedDate")
public Date getModifiedDate() {
return modifiedDate;
}
public void setModifiedDate(Date modifiedDate) {
this.modifiedDate = modifiedDate;
}
@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;
}
CallForwarding callForwarding = (CallForwarding) o;
return Objects.equals(this.id, callForwarding.id) &&
Objects.equals(this.name, callForwarding.name) &&
Objects.equals(this.user, callForwarding.user) &&
Objects.equals(this.enabled, callForwarding.enabled) &&
Objects.equals(this.phoneNumber, callForwarding.phoneNumber) &&
Objects.equals(this.modifiedDate, callForwarding.modifiedDate) &&
Objects.equals(this.selfUri, callForwarding.selfUri);
}
@Override
public int hashCode() {
return Objects.hash(id, name, user, enabled, phoneNumber, modifiedDate, selfUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CallForwarding {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" modifiedDate: ").append(toIndentedString(modifiedDate)).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 ");
}
}