
com.tencent.ads.model.ConversionsAddRequest 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.Objects;
/** ConversionsAddRequest */
public class ConversionsAddRequest {
@SerializedName("account_id")
private Long accountId = null;
@SerializedName("conversion_name")
private String conversionName = null;
@SerializedName("access_type")
private AccessType accessType = null;
@SerializedName("conversion_scene")
private ConversionScene conversionScene = null;
@SerializedName("promoted_object_id")
private String promotedObjectId = null;
@SerializedName("app_android_channel_package_id")
private String appAndroidChannelPackageId = null;
@SerializedName("claim_type")
private ClaimType claimType = null;
@SerializedName("feedback_url")
private String feedbackUrl = null;
@SerializedName("landing_page_url")
private String landingPageUrl = null;
@SerializedName("mini_program_id")
private String miniProgramId = null;
@SerializedName("self_attributed")
private Boolean selfAttributed = null;
@SerializedName("optimization_goal")
private IntOptimizationGoal optimizationGoal = null;
@SerializedName("deep_behavior_optimization_goal")
private IntOptimizationGoal deepBehaviorOptimizationGoal = null;
@SerializedName("deep_worth_optimization_goal")
private ConversionOptimizationGoal deepWorthOptimizationGoal = null;
@SerializedName("user_action_set_id")
private Long userActionSetId = null;
public ConversionsAddRequest 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 ConversionsAddRequest conversionName(String conversionName) {
this.conversionName = conversionName;
return this;
}
/**
* Get conversionName
*
* @return conversionName
*/
@ApiModelProperty(value = "")
public String getConversionName() {
return conversionName;
}
public void setConversionName(String conversionName) {
this.conversionName = conversionName;
}
public ConversionsAddRequest accessType(AccessType accessType) {
this.accessType = accessType;
return this;
}
/**
* Get accessType
*
* @return accessType
*/
@ApiModelProperty(value = "")
public AccessType getAccessType() {
return accessType;
}
public void setAccessType(AccessType accessType) {
this.accessType = accessType;
}
public ConversionsAddRequest conversionScene(ConversionScene conversionScene) {
this.conversionScene = conversionScene;
return this;
}
/**
* Get conversionScene
*
* @return conversionScene
*/
@ApiModelProperty(value = "")
public ConversionScene getConversionScene() {
return conversionScene;
}
public void setConversionScene(ConversionScene conversionScene) {
this.conversionScene = conversionScene;
}
public ConversionsAddRequest 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 ConversionsAddRequest appAndroidChannelPackageId(String appAndroidChannelPackageId) {
this.appAndroidChannelPackageId = appAndroidChannelPackageId;
return this;
}
/**
* Get appAndroidChannelPackageId
*
* @return appAndroidChannelPackageId
*/
@ApiModelProperty(value = "")
public String getAppAndroidChannelPackageId() {
return appAndroidChannelPackageId;
}
public void setAppAndroidChannelPackageId(String appAndroidChannelPackageId) {
this.appAndroidChannelPackageId = appAndroidChannelPackageId;
}
public ConversionsAddRequest claimType(ClaimType claimType) {
this.claimType = claimType;
return this;
}
/**
* Get claimType
*
* @return claimType
*/
@ApiModelProperty(value = "")
public ClaimType getClaimType() {
return claimType;
}
public void setClaimType(ClaimType claimType) {
this.claimType = claimType;
}
public ConversionsAddRequest feedbackUrl(String feedbackUrl) {
this.feedbackUrl = feedbackUrl;
return this;
}
/**
* Get feedbackUrl
*
* @return feedbackUrl
*/
@ApiModelProperty(value = "")
public String getFeedbackUrl() {
return feedbackUrl;
}
public void setFeedbackUrl(String feedbackUrl) {
this.feedbackUrl = feedbackUrl;
}
public ConversionsAddRequest landingPageUrl(String landingPageUrl) {
this.landingPageUrl = landingPageUrl;
return this;
}
/**
* Get landingPageUrl
*
* @return landingPageUrl
*/
@ApiModelProperty(value = "")
public String getLandingPageUrl() {
return landingPageUrl;
}
public void setLandingPageUrl(String landingPageUrl) {
this.landingPageUrl = landingPageUrl;
}
public ConversionsAddRequest miniProgramId(String miniProgramId) {
this.miniProgramId = miniProgramId;
return this;
}
/**
* Get miniProgramId
*
* @return miniProgramId
*/
@ApiModelProperty(value = "")
public String getMiniProgramId() {
return miniProgramId;
}
public void setMiniProgramId(String miniProgramId) {
this.miniProgramId = miniProgramId;
}
public ConversionsAddRequest selfAttributed(Boolean selfAttributed) {
this.selfAttributed = selfAttributed;
return this;
}
/**
* Get selfAttributed
*
* @return selfAttributed
*/
@ApiModelProperty(value = "")
public Boolean isSelfAttributed() {
return selfAttributed;
}
public void setSelfAttributed(Boolean selfAttributed) {
this.selfAttributed = selfAttributed;
}
public ConversionsAddRequest optimizationGoal(IntOptimizationGoal optimizationGoal) {
this.optimizationGoal = optimizationGoal;
return this;
}
/**
* Get optimizationGoal
*
* @return optimizationGoal
*/
@ApiModelProperty(value = "")
public IntOptimizationGoal getOptimizationGoal() {
return optimizationGoal;
}
public void setOptimizationGoal(IntOptimizationGoal optimizationGoal) {
this.optimizationGoal = optimizationGoal;
}
public ConversionsAddRequest deepBehaviorOptimizationGoal(
IntOptimizationGoal deepBehaviorOptimizationGoal) {
this.deepBehaviorOptimizationGoal = deepBehaviorOptimizationGoal;
return this;
}
/**
* Get deepBehaviorOptimizationGoal
*
* @return deepBehaviorOptimizationGoal
*/
@ApiModelProperty(value = "")
public IntOptimizationGoal getDeepBehaviorOptimizationGoal() {
return deepBehaviorOptimizationGoal;
}
public void setDeepBehaviorOptimizationGoal(IntOptimizationGoal deepBehaviorOptimizationGoal) {
this.deepBehaviorOptimizationGoal = deepBehaviorOptimizationGoal;
}
public ConversionsAddRequest deepWorthOptimizationGoal(
ConversionOptimizationGoal deepWorthOptimizationGoal) {
this.deepWorthOptimizationGoal = deepWorthOptimizationGoal;
return this;
}
/**
* Get deepWorthOptimizationGoal
*
* @return deepWorthOptimizationGoal
*/
@ApiModelProperty(value = "")
public ConversionOptimizationGoal getDeepWorthOptimizationGoal() {
return deepWorthOptimizationGoal;
}
public void setDeepWorthOptimizationGoal(ConversionOptimizationGoal deepWorthOptimizationGoal) {
this.deepWorthOptimizationGoal = deepWorthOptimizationGoal;
}
public ConversionsAddRequest userActionSetId(Long userActionSetId) {
this.userActionSetId = userActionSetId;
return this;
}
/**
* Get userActionSetId
*
* @return userActionSetId
*/
@ApiModelProperty(value = "")
public Long getUserActionSetId() {
return userActionSetId;
}
public void setUserActionSetId(Long userActionSetId) {
this.userActionSetId = userActionSetId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConversionsAddRequest conversionsAddRequest = (ConversionsAddRequest) o;
return Objects.equals(this.accountId, conversionsAddRequest.accountId)
&& Objects.equals(this.conversionName, conversionsAddRequest.conversionName)
&& Objects.equals(this.accessType, conversionsAddRequest.accessType)
&& Objects.equals(this.conversionScene, conversionsAddRequest.conversionScene)
&& Objects.equals(this.promotedObjectId, conversionsAddRequest.promotedObjectId)
&& Objects.equals(
this.appAndroidChannelPackageId, conversionsAddRequest.appAndroidChannelPackageId)
&& Objects.equals(this.claimType, conversionsAddRequest.claimType)
&& Objects.equals(this.feedbackUrl, conversionsAddRequest.feedbackUrl)
&& Objects.equals(this.landingPageUrl, conversionsAddRequest.landingPageUrl)
&& Objects.equals(this.miniProgramId, conversionsAddRequest.miniProgramId)
&& Objects.equals(this.selfAttributed, conversionsAddRequest.selfAttributed)
&& Objects.equals(this.optimizationGoal, conversionsAddRequest.optimizationGoal)
&& Objects.equals(
this.deepBehaviorOptimizationGoal, conversionsAddRequest.deepBehaviorOptimizationGoal)
&& Objects.equals(
this.deepWorthOptimizationGoal, conversionsAddRequest.deepWorthOptimizationGoal)
&& Objects.equals(this.userActionSetId, conversionsAddRequest.userActionSetId);
}
@Override
public int hashCode() {
return Objects.hash(
accountId,
conversionName,
accessType,
conversionScene,
promotedObjectId,
appAndroidChannelPackageId,
claimType,
feedbackUrl,
landingPageUrl,
miniProgramId,
selfAttributed,
optimizationGoal,
deepBehaviorOptimizationGoal,
deepWorthOptimizationGoal,
userActionSetId);
}
@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