com.mypurecloud.sdk.model.PhoneColumn 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;
/**
* PhoneColumn
*/
public class PhoneColumn implements Serializable {
private String columnName = null;
private String type = null;
/**
* name of the phone column
**/
public PhoneColumn columnName(String columnName) {
this.columnName = columnName;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "name of the phone column")
@JsonProperty("columnName")
public String getColumnName() {
return columnName;
}
public void setColumnName(String columnName) {
this.columnName = columnName;
}
/**
* type of the phone column, for example, 'cell' or 'home'
**/
public PhoneColumn type(String type) {
this.type = type;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "type of the phone column, for example, 'cell' or 'home'")
@JsonProperty("type")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PhoneColumn phoneColumn = (PhoneColumn) o;
return Objects.equals(this.columnName, phoneColumn.columnName) &&
Objects.equals(this.type, phoneColumn.type);
}
@Override
public int hashCode() {
return Objects.hash(columnName, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PhoneColumn {\n");
sb.append(" columnName: ").append(toIndentedString(columnName)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}