
com.tencent.ads.model.SplitTestsAddRequest 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.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** SplitTestsAddRequest */
public class SplitTestsAddRequest {
@SerializedName("account_id")
private Long accountId = null;
@SerializedName("split_test_name")
private String splitTestName = null;
@SerializedName("begin_time")
private Long beginTime = null;
@SerializedName("end_time")
private Long endTime = null;
@SerializedName("adgroup_id_list")
private List adgroupIdList = null;
@SerializedName("smart_expand_enabled")
private Boolean smartExpandEnabled = null;
public SplitTestsAddRequest accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
*
* @return accountId
*/
@ApiModelProperty(value = "")
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
public SplitTestsAddRequest splitTestName(String splitTestName) {
this.splitTestName = splitTestName;
return this;
}
/**
* Get splitTestName
*
* @return splitTestName
*/
@ApiModelProperty(value = "")
public String getSplitTestName() {
return splitTestName;
}
public void setSplitTestName(String splitTestName) {
this.splitTestName = splitTestName;
}
public SplitTestsAddRequest beginTime(Long beginTime) {
this.beginTime = beginTime;
return this;
}
/**
* Get beginTime
*
* @return beginTime
*/
@ApiModelProperty(value = "")
public Long getBeginTime() {
return beginTime;
}
public void setBeginTime(Long beginTime) {
this.beginTime = beginTime;
}
public SplitTestsAddRequest endTime(Long endTime) {
this.endTime = endTime;
return this;
}
/**
* Get endTime
*
* @return endTime
*/
@ApiModelProperty(value = "")
public Long getEndTime() {
return endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public SplitTestsAddRequest adgroupIdList(List adgroupIdList) {
this.adgroupIdList = adgroupIdList;
return this;
}
public SplitTestsAddRequest addAdgroupIdListItem(Long adgroupIdListItem) {
if (this.adgroupIdList == null) {
this.adgroupIdList = new ArrayList();
}
this.adgroupIdList.add(adgroupIdListItem);
return this;
}
/**
* Get adgroupIdList
*
* @return adgroupIdList
*/
@ApiModelProperty(value = "")
public List getAdgroupIdList() {
return adgroupIdList;
}
public void setAdgroupIdList(List adgroupIdList) {
this.adgroupIdList = adgroupIdList;
}
public SplitTestsAddRequest smartExpandEnabled(Boolean smartExpandEnabled) {
this.smartExpandEnabled = smartExpandEnabled;
return this;
}
/**
* Get smartExpandEnabled
*
* @return smartExpandEnabled
*/
@ApiModelProperty(value = "")
public Boolean isSmartExpandEnabled() {
return smartExpandEnabled;
}
public void setSmartExpandEnabled(Boolean smartExpandEnabled) {
this.smartExpandEnabled = smartExpandEnabled;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SplitTestsAddRequest splitTestsAddRequest = (SplitTestsAddRequest) o;
return Objects.equals(this.accountId, splitTestsAddRequest.accountId)
&& Objects.equals(this.splitTestName, splitTestsAddRequest.splitTestName)
&& Objects.equals(this.beginTime, splitTestsAddRequest.beginTime)
&& Objects.equals(this.endTime, splitTestsAddRequest.endTime)
&& Objects.equals(this.adgroupIdList, splitTestsAddRequest.adgroupIdList)
&& Objects.equals(this.smartExpandEnabled, splitTestsAddRequest.smartExpandEnabled);
}
@Override
public int hashCode() {
return Objects.hash(
accountId, splitTestName, beginTime, endTime, adgroupIdList, smartExpandEnabled);
}
@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