com.mypurecloud.sdk.model.UserImage 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;
/**
* UserImage
*/
public class UserImage implements Serializable {
private String resolution = null;
private String imageUri = null;
/**
* Height and/or width of image. ex: 640x480 or x128
**/
public UserImage resolution(String resolution) {
this.resolution = resolution;
return this;
}
@ApiModelProperty(example = "null", value = "Height and/or width of image. ex: 640x480 or x128")
@JsonProperty("resolution")
public String getResolution() {
return resolution;
}
public void setResolution(String resolution) {
this.resolution = resolution;
}
/**
**/
public UserImage imageUri(String imageUri) {
this.imageUri = imageUri;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("imageUri")
public String getImageUri() {
return imageUri;
}
public void setImageUri(String imageUri) {
this.imageUri = imageUri;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserImage userImage = (UserImage) o;
return Objects.equals(this.resolution, userImage.resolution) &&
Objects.equals(this.imageUri, userImage.imageUri);
}
@Override
public int hashCode() {
return Objects.hash(resolution, imageUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserImage {\n");
sb.append(" resolution: ").append(toIndentedString(resolution)).append("\n");
sb.append(" imageUri: ").append(toIndentedString(imageUri)).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 ");
}
}