
com.tencent.ads.model.ImageSpec Maven / Gradle / Ivy
/*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 1.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.tencent.ads.model;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** 基础图片组件元素<br> 图片大小: 不超过300KB<br> 图片尺寸: 宽度750, 高度不超过1536 */
@ApiModel(description = "基础图片组件元素
图片大小: 不超过300KB
图片尺寸: 宽度750, 高度不超过1536")
public class ImageSpec {
@SerializedName("image_id")
private String imageId = null;
@SerializedName("width")
private Long width = null;
@SerializedName("height")
private Long height = null;
@SerializedName("padding_top")
private Long paddingTop = null;
@SerializedName("padding_bottom")
private Long paddingBottom = null;
public ImageSpec imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* Get imageId
*
* @return imageId
*/
@ApiModelProperty(value = "")
public String getImageId() {
return imageId;
}
public void setImageId(String imageId) {
this.imageId = imageId;
}
public ImageSpec width(Long width) {
this.width = width;
return this;
}
/**
* Get width
*
* @return width
*/
@ApiModelProperty(value = "")
public Long getWidth() {
return width;
}
public void setWidth(Long width) {
this.width = width;
}
public ImageSpec height(Long height) {
this.height = height;
return this;
}
/**
* Get height
*
* @return height
*/
@ApiModelProperty(value = "")
public Long getHeight() {
return height;
}
public void setHeight(Long height) {
this.height = height;
}
public ImageSpec paddingTop(Long paddingTop) {
this.paddingTop = paddingTop;
return this;
}
/**
* Get paddingTop
*
* @return paddingTop
*/
@ApiModelProperty(value = "")
public Long getPaddingTop() {
return paddingTop;
}
public void setPaddingTop(Long paddingTop) {
this.paddingTop = paddingTop;
}
public ImageSpec paddingBottom(Long paddingBottom) {
this.paddingBottom = paddingBottom;
return this;
}
/**
* Get paddingBottom
*
* @return paddingBottom
*/
@ApiModelProperty(value = "")
public Long getPaddingBottom() {
return paddingBottom;
}
public void setPaddingBottom(Long paddingBottom) {
this.paddingBottom = paddingBottom;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ImageSpec imageSpec = (ImageSpec) o;
return Objects.equals(this.imageId, imageSpec.imageId)
&& Objects.equals(this.width, imageSpec.width)
&& Objects.equals(this.height, imageSpec.height)
&& Objects.equals(this.paddingTop, imageSpec.paddingTop)
&& Objects.equals(this.paddingBottom, imageSpec.paddingBottom);
}
@Override
public int hashCode() {
return Objects.hash(imageId, width, height, paddingTop, paddingBottom);
}
@Override
public String toString() {
Gson gson = new Gson();
return gson.toJson(this);
}
/**
* 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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy