com.mypurecloud.sdk.model.ImportStatusNotification 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.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* ImportStatusNotification
*/
public class ImportStatusNotification implements Serializable {
/**
* Gets or Sets importState
*/
public enum ImportStateEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
IN_PROGRESS("IN_PROGRESS"),
FAILED("FAILED");
private String value;
ImportStateEnum(String value) {
this.value = value;
}
@JsonCreator
public static ImportStateEnum fromString(String key) {
if (key == null) return null;
for (ImportStateEnum value : ImportStateEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return ImportStateEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private ImportStateEnum importState = null;
private Integer totalRecords = null;
private Integer completedRecords = null;
private Integer percentageComplete = null;
private String failureReason = null;
private Object additionalProperties = null;
/**
**/
public ImportStatusNotification importState(ImportStateEnum importState) {
this.importState = importState;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("importState")
public ImportStateEnum getImportState() {
return importState;
}
public void setImportState(ImportStateEnum importState) {
this.importState = importState;
}
/**
**/
public ImportStatusNotification totalRecords(Integer totalRecords) {
this.totalRecords = totalRecords;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("totalRecords")
public Integer getTotalRecords() {
return totalRecords;
}
public void setTotalRecords(Integer totalRecords) {
this.totalRecords = totalRecords;
}
/**
**/
public ImportStatusNotification completedRecords(Integer completedRecords) {
this.completedRecords = completedRecords;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("completedRecords")
public Integer getCompletedRecords() {
return completedRecords;
}
public void setCompletedRecords(Integer completedRecords) {
this.completedRecords = completedRecords;
}
/**
**/
public ImportStatusNotification percentageComplete(Integer percentageComplete) {
this.percentageComplete = percentageComplete;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("percentageComplete")
public Integer getPercentageComplete() {
return percentageComplete;
}
public void setPercentageComplete(Integer percentageComplete) {
this.percentageComplete = percentageComplete;
}
/**
**/
public ImportStatusNotification failureReason(String failureReason) {
this.failureReason = failureReason;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("failureReason")
public String getFailureReason() {
return failureReason;
}
public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
/**
**/
public ImportStatusNotification additionalProperties(Object additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("additionalProperties")
public Object getAdditionalProperties() {
return additionalProperties;
}
public void setAdditionalProperties(Object additionalProperties) {
this.additionalProperties = additionalProperties;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ImportStatusNotification importStatusNotification = (ImportStatusNotification) o;
return Objects.equals(this.importState, importStatusNotification.importState) &&
Objects.equals(this.totalRecords, importStatusNotification.totalRecords) &&
Objects.equals(this.completedRecords, importStatusNotification.completedRecords) &&
Objects.equals(this.percentageComplete, importStatusNotification.percentageComplete) &&
Objects.equals(this.failureReason, importStatusNotification.failureReason) &&
Objects.equals(this.additionalProperties, importStatusNotification.additionalProperties);
}
@Override
public int hashCode() {
return Objects.hash(importState, totalRecords, completedRecords, percentageComplete, failureReason, additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ImportStatusNotification {\n");
sb.append(" importState: ").append(toIndentedString(importState)).append("\n");
sb.append(" totalRecords: ").append(toIndentedString(totalRecords)).append("\n");
sb.append(" completedRecords: ").append(toIndentedString(completedRecords)).append("\n");
sb.append(" percentageComplete: ").append(toIndentedString(percentageComplete)).append("\n");
sb.append(" failureReason: ").append(toIndentedString(failureReason)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).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 ");
}
}