
com.tencent.ads.model.PageElementsStruct 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;
/** 组件素材内容,组件的同步顺序与原生页的展示顺序一致,即第一个同步组件为顶部展示元素 */
@ApiModel(description = "组件素材内容,组件的同步顺序与原生页的展示顺序一致,即第一个同步组件为顶部展示元素")
public class PageElementsStruct {
@SerializedName("element_shelf")
private ElementShelf elementShelf = null;
@SerializedName("element_float")
private ElementFloat elementFloat = null;
@SerializedName("element_goods")
private ElementGoods elementGoods = null;
@SerializedName("element_swipe")
private ElementSwipe elementSwipe = null;
@SerializedName("element_webview")
private ElementWebview elementWebview = null;
@SerializedName("element_animate_float")
private ElementAnimateFloat elementAnimateFloat = null;
@SerializedName("image_spec")
private ElementImage imageSpec = null;
@SerializedName("video_spec")
private ElementVideo videoSpec = null;
@SerializedName("text_spec")
private ElementText textSpec = null;
@SerializedName("button_spec")
private ElementButtonRead buttonSpec = null;
@SerializedName("form_spec")
private ElementForm formSpec = null;
@SerializedName("element_type")
private PageElementsType elementType = null;
public PageElementsStruct elementShelf(ElementShelf elementShelf) {
this.elementShelf = elementShelf;
return this;
}
/**
* Get elementShelf
*
* @return elementShelf
*/
@ApiModelProperty(value = "")
public ElementShelf getElementShelf() {
return elementShelf;
}
public void setElementShelf(ElementShelf elementShelf) {
this.elementShelf = elementShelf;
}
public PageElementsStruct elementFloat(ElementFloat elementFloat) {
this.elementFloat = elementFloat;
return this;
}
/**
* Get elementFloat
*
* @return elementFloat
*/
@ApiModelProperty(value = "")
public ElementFloat getElementFloat() {
return elementFloat;
}
public void setElementFloat(ElementFloat elementFloat) {
this.elementFloat = elementFloat;
}
public PageElementsStruct elementGoods(ElementGoods elementGoods) {
this.elementGoods = elementGoods;
return this;
}
/**
* Get elementGoods
*
* @return elementGoods
*/
@ApiModelProperty(value = "")
public ElementGoods getElementGoods() {
return elementGoods;
}
public void setElementGoods(ElementGoods elementGoods) {
this.elementGoods = elementGoods;
}
public PageElementsStruct elementSwipe(ElementSwipe elementSwipe) {
this.elementSwipe = elementSwipe;
return this;
}
/**
* Get elementSwipe
*
* @return elementSwipe
*/
@ApiModelProperty(value = "")
public ElementSwipe getElementSwipe() {
return elementSwipe;
}
public void setElementSwipe(ElementSwipe elementSwipe) {
this.elementSwipe = elementSwipe;
}
public PageElementsStruct elementWebview(ElementWebview elementWebview) {
this.elementWebview = elementWebview;
return this;
}
/**
* Get elementWebview
*
* @return elementWebview
*/
@ApiModelProperty(value = "")
public ElementWebview getElementWebview() {
return elementWebview;
}
public void setElementWebview(ElementWebview elementWebview) {
this.elementWebview = elementWebview;
}
public PageElementsStruct elementAnimateFloat(ElementAnimateFloat elementAnimateFloat) {
this.elementAnimateFloat = elementAnimateFloat;
return this;
}
/**
* Get elementAnimateFloat
*
* @return elementAnimateFloat
*/
@ApiModelProperty(value = "")
public ElementAnimateFloat getElementAnimateFloat() {
return elementAnimateFloat;
}
public void setElementAnimateFloat(ElementAnimateFloat elementAnimateFloat) {
this.elementAnimateFloat = elementAnimateFloat;
}
public PageElementsStruct imageSpec(ElementImage imageSpec) {
this.imageSpec = imageSpec;
return this;
}
/**
* Get imageSpec
*
* @return imageSpec
*/
@ApiModelProperty(value = "")
public ElementImage getImageSpec() {
return imageSpec;
}
public void setImageSpec(ElementImage imageSpec) {
this.imageSpec = imageSpec;
}
public PageElementsStruct videoSpec(ElementVideo videoSpec) {
this.videoSpec = videoSpec;
return this;
}
/**
* Get videoSpec
*
* @return videoSpec
*/
@ApiModelProperty(value = "")
public ElementVideo getVideoSpec() {
return videoSpec;
}
public void setVideoSpec(ElementVideo videoSpec) {
this.videoSpec = videoSpec;
}
public PageElementsStruct textSpec(ElementText textSpec) {
this.textSpec = textSpec;
return this;
}
/**
* Get textSpec
*
* @return textSpec
*/
@ApiModelProperty(value = "")
public ElementText getTextSpec() {
return textSpec;
}
public void setTextSpec(ElementText textSpec) {
this.textSpec = textSpec;
}
public PageElementsStruct buttonSpec(ElementButtonRead buttonSpec) {
this.buttonSpec = buttonSpec;
return this;
}
/**
* Get buttonSpec
*
* @return buttonSpec
*/
@ApiModelProperty(value = "")
public ElementButtonRead getButtonSpec() {
return buttonSpec;
}
public void setButtonSpec(ElementButtonRead buttonSpec) {
this.buttonSpec = buttonSpec;
}
public PageElementsStruct formSpec(ElementForm formSpec) {
this.formSpec = formSpec;
return this;
}
/**
* Get formSpec
*
* @return formSpec
*/
@ApiModelProperty(value = "")
public ElementForm getFormSpec() {
return formSpec;
}
public void setFormSpec(ElementForm formSpec) {
this.formSpec = formSpec;
}
public PageElementsStruct elementType(PageElementsType elementType) {
this.elementType = elementType;
return this;
}
/**
* Get elementType
*
* @return elementType
*/
@ApiModelProperty(value = "")
public PageElementsType getElementType() {
return elementType;
}
public void setElementType(PageElementsType elementType) {
this.elementType = elementType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PageElementsStruct pageElementsStruct = (PageElementsStruct) o;
return Objects.equals(this.elementShelf, pageElementsStruct.elementShelf)
&& Objects.equals(this.elementFloat, pageElementsStruct.elementFloat)
&& Objects.equals(this.elementGoods, pageElementsStruct.elementGoods)
&& Objects.equals(this.elementSwipe, pageElementsStruct.elementSwipe)
&& Objects.equals(this.elementWebview, pageElementsStruct.elementWebview)
&& Objects.equals(this.elementAnimateFloat, pageElementsStruct.elementAnimateFloat)
&& Objects.equals(this.imageSpec, pageElementsStruct.imageSpec)
&& Objects.equals(this.videoSpec, pageElementsStruct.videoSpec)
&& Objects.equals(this.textSpec, pageElementsStruct.textSpec)
&& Objects.equals(this.buttonSpec, pageElementsStruct.buttonSpec)
&& Objects.equals(this.formSpec, pageElementsStruct.formSpec)
&& Objects.equals(this.elementType, pageElementsStruct.elementType);
}
@Override
public int hashCode() {
return Objects.hash(
elementShelf,
elementFloat,
elementGoods,
elementSwipe,
elementWebview,
elementAnimateFloat,
imageSpec,
videoSpec,
textSpec,
buttonSpec,
formSpec,
elementType);
}
@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