com.volcengine.model.maas.api.v2.ImagesResponse Maven / Gradle / Ivy
Show all versions of volc-sdk-java Show documentation
package com.volcengine.model.maas.api.v2;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* MaasImagesResponse
*
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"data",
"error"
})
@Generated("jsonschema2pojo")
public class ImagesResponse extends BaseResponse {
/**
* Data
*
*
*
*/
@JsonProperty("data")
private List data = new ArrayList();
/**
* Error
*
*
*
*/
@JsonProperty("error")
private Error error;
/**
* Data
*
*
*
*/
@JsonProperty("data")
public List getData() {
return data;
}
/**
* Data
*
*
*
*/
@JsonProperty("data")
public void setData(List data) {
this.data = data;
}
public ImagesResponse withData(List data) {
this.data = data;
return this;
}
/**
* Error
*
*
*
*/
@JsonProperty("error")
public Error getError() {
return error;
}
/**
* Error
*
*
*
*/
@JsonProperty("error")
public void setError(Error error) {
this.error = error;
}
public ImagesResponse withError(Error error) {
this.error = error;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(ImagesResponse.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("data");
sb.append('=');
sb.append(((this.data == null)?"":this.data));
sb.append(',');
sb.append("error");
sb.append('=');
sb.append(((this.error == null)?"":this.error));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.data == null)? 0 :this.data.hashCode()));
result = ((result* 31)+((this.error == null)? 0 :this.error.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ImagesResponse) == false) {
return false;
}
ImagesResponse rhs = ((ImagesResponse) other);
return (((this.data == rhs.data)||((this.data!= null)&&this.data.equals(rhs.data)))&&((this.error == rhs.error)||((this.error!= null)&&this.error.equals(rhs.error))));
}
}