
com.tencent.ads.model.AdgroupSetting 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.ArrayList;
import java.util.List;
import java.util.Objects;
/** 广告组信息所组成的对象 */
@ApiModel(description = "广告组信息所组成的对象")
public class AdgroupSetting {
@SerializedName("adgroup_id")
private Long adgroupId = null;
@SerializedName("adgroup_name")
private String adgroupName = null;
@SerializedName("automatic_site_enabled")
private Boolean automaticSiteEnabled = null;
@SerializedName("site_set")
private List siteSet = null;
@SerializedName("bid_type")
private CostType bidType = null;
@SerializedName("bid_amount")
private Long bidAmount = null;
@SerializedName("promoted_object_type")
private PromotedObjectType promotedObjectType = null;
@SerializedName("billing_event")
private BillingEvent billingEvent = null;
@SerializedName("optimization_goal")
private OptimizationGoal optimizationGoal = null;
@SerializedName("promoted_object_id")
private String promotedObjectId = null;
@SerializedName("time_series")
private String timeSeries = null;
public AdgroupSetting adgroupId(Long adgroupId) {
this.adgroupId = adgroupId;
return this;
}
/**
* Get adgroupId
*
* @return adgroupId
*/
@ApiModelProperty(value = "")
public Long getAdgroupId() {
return adgroupId;
}
public void setAdgroupId(Long adgroupId) {
this.adgroupId = adgroupId;
}
public AdgroupSetting adgroupName(String adgroupName) {
this.adgroupName = adgroupName;
return this;
}
/**
* Get adgroupName
*
* @return adgroupName
*/
@ApiModelProperty(value = "")
public String getAdgroupName() {
return adgroupName;
}
public void setAdgroupName(String adgroupName) {
this.adgroupName = adgroupName;
}
public AdgroupSetting automaticSiteEnabled(Boolean automaticSiteEnabled) {
this.automaticSiteEnabled = automaticSiteEnabled;
return this;
}
/**
* Get automaticSiteEnabled
*
* @return automaticSiteEnabled
*/
@ApiModelProperty(value = "")
public Boolean isAutomaticSiteEnabled() {
return automaticSiteEnabled;
}
public void setAutomaticSiteEnabled(Boolean automaticSiteEnabled) {
this.automaticSiteEnabled = automaticSiteEnabled;
}
public AdgroupSetting siteSet(List siteSet) {
this.siteSet = siteSet;
return this;
}
public AdgroupSetting addSiteSetItem(String siteSetItem) {
if (this.siteSet == null) {
this.siteSet = new ArrayList();
}
this.siteSet.add(siteSetItem);
return this;
}
/**
* Get siteSet
*
* @return siteSet
*/
@ApiModelProperty(value = "")
public List getSiteSet() {
return siteSet;
}
public void setSiteSet(List siteSet) {
this.siteSet = siteSet;
}
public AdgroupSetting bidType(CostType bidType) {
this.bidType = bidType;
return this;
}
/**
* Get bidType
*
* @return bidType
*/
@ApiModelProperty(value = "")
public CostType getBidType() {
return bidType;
}
public void setBidType(CostType bidType) {
this.bidType = bidType;
}
public AdgroupSetting bidAmount(Long bidAmount) {
this.bidAmount = bidAmount;
return this;
}
/**
* Get bidAmount
*
* @return bidAmount
*/
@ApiModelProperty(value = "")
public Long getBidAmount() {
return bidAmount;
}
public void setBidAmount(Long bidAmount) {
this.bidAmount = bidAmount;
}
public AdgroupSetting promotedObjectType(PromotedObjectType promotedObjectType) {
this.promotedObjectType = promotedObjectType;
return this;
}
/**
* Get promotedObjectType
*
* @return promotedObjectType
*/
@ApiModelProperty(value = "")
public PromotedObjectType getPromotedObjectType() {
return promotedObjectType;
}
public void setPromotedObjectType(PromotedObjectType promotedObjectType) {
this.promotedObjectType = promotedObjectType;
}
public AdgroupSetting billingEvent(BillingEvent billingEvent) {
this.billingEvent = billingEvent;
return this;
}
/**
* Get billingEvent
*
* @return billingEvent
*/
@ApiModelProperty(value = "")
public BillingEvent getBillingEvent() {
return billingEvent;
}
public void setBillingEvent(BillingEvent billingEvent) {
this.billingEvent = billingEvent;
}
public AdgroupSetting optimizationGoal(OptimizationGoal optimizationGoal) {
this.optimizationGoal = optimizationGoal;
return this;
}
/**
* Get optimizationGoal
*
* @return optimizationGoal
*/
@ApiModelProperty(value = "")
public OptimizationGoal getOptimizationGoal() {
return optimizationGoal;
}
public void setOptimizationGoal(OptimizationGoal optimizationGoal) {
this.optimizationGoal = optimizationGoal;
}
public AdgroupSetting promotedObjectId(String promotedObjectId) {
this.promotedObjectId = promotedObjectId;
return this;
}
/**
* Get promotedObjectId
*
* @return promotedObjectId
*/
@ApiModelProperty(value = "")
public String getPromotedObjectId() {
return promotedObjectId;
}
public void setPromotedObjectId(String promotedObjectId) {
this.promotedObjectId = promotedObjectId;
}
public AdgroupSetting timeSeries(String timeSeries) {
this.timeSeries = timeSeries;
return this;
}
/**
* Get timeSeries
*
* @return timeSeries
*/
@ApiModelProperty(value = "")
public String getTimeSeries() {
return timeSeries;
}
public void setTimeSeries(String timeSeries) {
this.timeSeries = timeSeries;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdgroupSetting adgroupSetting = (AdgroupSetting) o;
return Objects.equals(this.adgroupId, adgroupSetting.adgroupId)
&& Objects.equals(this.adgroupName, adgroupSetting.adgroupName)
&& Objects.equals(this.automaticSiteEnabled, adgroupSetting.automaticSiteEnabled)
&& Objects.equals(this.siteSet, adgroupSetting.siteSet)
&& Objects.equals(this.bidType, adgroupSetting.bidType)
&& Objects.equals(this.bidAmount, adgroupSetting.bidAmount)
&& Objects.equals(this.promotedObjectType, adgroupSetting.promotedObjectType)
&& Objects.equals(this.billingEvent, adgroupSetting.billingEvent)
&& Objects.equals(this.optimizationGoal, adgroupSetting.optimizationGoal)
&& Objects.equals(this.promotedObjectId, adgroupSetting.promotedObjectId)
&& Objects.equals(this.timeSeries, adgroupSetting.timeSeries);
}
@Override
public int hashCode() {
return Objects.hash(
adgroupId,
adgroupName,
automaticSiteEnabled,
siteSet,
bidType,
bidAmount,
promotedObjectType,
billingEvent,
optimizationGoal,
promotedObjectId,
timeSeries);
}
@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