cloud.genesys.webmessaging.sdk.model.UploadSuccessEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web-messaging-sdk Show documentation
Show all versions of web-messaging-sdk Show documentation
A customer-side development kit for creating custom Genesys Cloud Web Messaging experiences
The newest version!
package cloud.genesys.webmessaging.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import java.util.Objects;
import java.io.IOException;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* UploadSuccessEvent
*/
public class UploadSuccessEvent implements Serializable {
private String attachmentId = null;
private String downloadUrl = null;
private String timestamp = null;
/**
**/
public UploadSuccessEvent attachmentId(String attachmentId) {
this.attachmentId = attachmentId;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("attachmentId")
public String getAttachmentId() {
return attachmentId;
}
public void setAttachmentId(String attachmentId) {
this.attachmentId = attachmentId;
}
/**
**/
public UploadSuccessEvent downloadUrl(String downloadUrl) {
this.downloadUrl = downloadUrl;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("downloadUrl")
public String getDownloadUrl() {
return downloadUrl;
}
public void setDownloadUrl(String downloadUrl) {
this.downloadUrl = downloadUrl;
}
/**
**/
public UploadSuccessEvent timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("timestamp")
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UploadSuccessEvent uploadSuccessEvent = (UploadSuccessEvent) o;
return Objects.equals(this.attachmentId, uploadSuccessEvent.attachmentId) &&
Objects.equals(this.downloadUrl, uploadSuccessEvent.downloadUrl) &&
Objects.equals(this.timestamp, uploadSuccessEvent.timestamp);
}
@Override
public int hashCode() {
return Objects.hash(attachmentId, downloadUrl, timestamp);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UploadSuccessEvent {\n");
sb.append(" attachmentId: ").append(toIndentedString(attachmentId)).append("\n");
sb.append(" downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).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 ");
}
}