com.tencent.ads.model.TopImageSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marketing-api-java-sdk Show documentation
Show all versions of marketing-api-java-sdk Show documentation
Tencent Ads Mareting-Api Java Sdk
/*
* 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> 图片尺寸: 朋友圈常规广告 800*800, 朋友圈卡片广告800*450. <br>
* 公众号及其他广告位 800*800/640*800/800*640/800*450
*/
@ApiModel(
description =
"顶部图片组件元素
图片大小: 不超过300KB
图片尺寸: 朋友圈常规广告 800*800, 朋友圈卡片广告800*450.
公众号及其他广告位 800*800/640*800/800*640/800*450")
public class TopImageSpec {
@SerializedName("image_id")
private String imageId = null;
@SerializedName("width")
private Long width = null;
@SerializedName("height")
private Long height = null;
@SerializedName("ad_location")
private String adLocation = null;
@SerializedName("outer_style")
private Long outerStyle = null;
public TopImageSpec 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 TopImageSpec 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 TopImageSpec 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 TopImageSpec adLocation(String adLocation) {
this.adLocation = adLocation;
return this;
}
/**
* Get adLocation
*
* @return adLocation
*/
@ApiModelProperty(value = "")
public String getAdLocation() {
return adLocation;
}
public void setAdLocation(String adLocation) {
this.adLocation = adLocation;
}
public TopImageSpec outerStyle(Long outerStyle) {
this.outerStyle = outerStyle;
return this;
}
/**
* Get outerStyle
*
* @return outerStyle
*/
@ApiModelProperty(value = "")
public Long getOuterStyle() {
return outerStyle;
}
public void setOuterStyle(Long outerStyle) {
this.outerStyle = outerStyle;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TopImageSpec topImageSpec = (TopImageSpec) o;
return Objects.equals(this.imageId, topImageSpec.imageId)
&& Objects.equals(this.width, topImageSpec.width)
&& Objects.equals(this.height, topImageSpec.height)
&& Objects.equals(this.adLocation, topImageSpec.adLocation)
&& Objects.equals(this.outerStyle, topImageSpec.outerStyle);
}
@Override
public int hashCode() {
return Objects.hash(imageId, width, height, adLocation, outerStyle);
}
@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 ");
}
}