com.tencent.ads.model.ChosenButton 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;
/** 选择按钮 */
@ApiModel(description = "选择按钮")
public class ChosenButton {
@SerializedName("chosen_button_text1")
private String chosenButtonText1 = null;
@SerializedName("chosen_button_landing_page1")
private LandingPageStructure chosenButtonLandingPage1 = null;
@SerializedName("chosen_button_text2")
private String chosenButtonText2 = null;
@SerializedName("chosen_button_landing_page2")
private LandingPageStructure chosenButtonLandingPage2 = null;
public ChosenButton chosenButtonText1(String chosenButtonText1) {
this.chosenButtonText1 = chosenButtonText1;
return this;
}
/**
* Get chosenButtonText1
*
* @return chosenButtonText1
*/
@ApiModelProperty(value = "")
public String getChosenButtonText1() {
return chosenButtonText1;
}
public void setChosenButtonText1(String chosenButtonText1) {
this.chosenButtonText1 = chosenButtonText1;
}
public ChosenButton chosenButtonLandingPage1(LandingPageStructure chosenButtonLandingPage1) {
this.chosenButtonLandingPage1 = chosenButtonLandingPage1;
return this;
}
/**
* Get chosenButtonLandingPage1
*
* @return chosenButtonLandingPage1
*/
@ApiModelProperty(value = "")
public LandingPageStructure getChosenButtonLandingPage1() {
return chosenButtonLandingPage1;
}
public void setChosenButtonLandingPage1(LandingPageStructure chosenButtonLandingPage1) {
this.chosenButtonLandingPage1 = chosenButtonLandingPage1;
}
public ChosenButton chosenButtonText2(String chosenButtonText2) {
this.chosenButtonText2 = chosenButtonText2;
return this;
}
/**
* Get chosenButtonText2
*
* @return chosenButtonText2
*/
@ApiModelProperty(value = "")
public String getChosenButtonText2() {
return chosenButtonText2;
}
public void setChosenButtonText2(String chosenButtonText2) {
this.chosenButtonText2 = chosenButtonText2;
}
public ChosenButton chosenButtonLandingPage2(LandingPageStructure chosenButtonLandingPage2) {
this.chosenButtonLandingPage2 = chosenButtonLandingPage2;
return this;
}
/**
* Get chosenButtonLandingPage2
*
* @return chosenButtonLandingPage2
*/
@ApiModelProperty(value = "")
public LandingPageStructure getChosenButtonLandingPage2() {
return chosenButtonLandingPage2;
}
public void setChosenButtonLandingPage2(LandingPageStructure chosenButtonLandingPage2) {
this.chosenButtonLandingPage2 = chosenButtonLandingPage2;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ChosenButton chosenButton = (ChosenButton) o;
return Objects.equals(this.chosenButtonText1, chosenButton.chosenButtonText1)
&& Objects.equals(this.chosenButtonLandingPage1, chosenButton.chosenButtonLandingPage1)
&& Objects.equals(this.chosenButtonText2, chosenButton.chosenButtonText2)
&& Objects.equals(this.chosenButtonLandingPage2, chosenButton.chosenButtonLandingPage2);
}
@Override
public int hashCode() {
return Objects.hash(
chosenButtonText1, chosenButtonLandingPage1, chosenButtonText2, chosenButtonLandingPage2);
}
@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 ");
}
}