com.mypurecloud.sdk.model.ProvisionInfo 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.util.Date;
import java.io.Serializable;
/**
* ProvisionInfo
*/
public class ProvisionInfo implements Serializable {
private Date time = null;
private String source = null;
private String errorInfo = null;
/**
* The time at which this phone was provisioned. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public ProvisionInfo time(Date time) {
this.time = time;
return this;
}
@ApiModelProperty(example = "null", value = "The time at which this phone was provisioned. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("time")
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
/**
* The source of the provisioning
**/
public ProvisionInfo source(String source) {
this.source = source;
return this;
}
@ApiModelProperty(example = "null", value = "The source of the provisioning")
@JsonProperty("source")
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
/**
* The error information from the provision process, if any
**/
public ProvisionInfo errorInfo(String errorInfo) {
this.errorInfo = errorInfo;
return this;
}
@ApiModelProperty(example = "null", value = "The error information from the provision process, if any")
@JsonProperty("errorInfo")
public String getErrorInfo() {
return errorInfo;
}
public void setErrorInfo(String errorInfo) {
this.errorInfo = errorInfo;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProvisionInfo provisionInfo = (ProvisionInfo) o;
return Objects.equals(this.time, provisionInfo.time) &&
Objects.equals(this.source, provisionInfo.source) &&
Objects.equals(this.errorInfo, provisionInfo.errorInfo);
}
@Override
public int hashCode() {
return Objects.hash(time, source, errorInfo);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProvisionInfo {\n");
sb.append(" time: ").append(toIndentedString(time)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" errorInfo: ").append(toIndentedString(errorInfo)).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 ");
}
}