jp.co.yahoo.adssearchapi.v14.model.AdGroupServiceTargetCpaBiddingScheme Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ads-search-api-lib Show documentation
Show all versions of ads-search-api-lib Show documentation
Yahoo! JAPAN Ads Search Ads API library for Java
/*
* Yahoo!広告 検索広告 API リファレンス / Yahoo! JAPAN Ads Search Ads API Reference
* Yahoo!広告 検索広告 APIのWebサービスについて説明します。 Search Ads API Web Services supported in Yahoo! JAPAN Ads API.
*
* The version of the OpenAPI document: v14
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package jp.co.yahoo.adssearchapi.v14.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jp.co.yahoo.adssearchapi.v14.model.AdGroupServiceIsRemoveFlg;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\"> AdGroupServiceTargetCpaBiddingSchemeオブジェクトは、広告グループ目標単価(tCPA)の設定情報を表します。 </div> <div lang=\"en\"> AdGroupServiceTargetCpaBiddingScheme object holds configuration information of target CPA (tCPA) of ad group. </div>
*/
@ApiModel(description = " AdGroupServiceTargetCpaBiddingSchemeオブジェクトは、広告グループ目標単価(tCPA)の設定情報を表します。 AdGroupServiceTargetCpaBiddingScheme object holds configuration information of target CPA (tCPA) of ad group. ")
@JsonPropertyOrder({
AdGroupServiceTargetCpaBiddingScheme.JSON_PROPERTY_TARGET_CPA,
AdGroupServiceTargetCpaBiddingScheme.JSON_PROPERTY_IS_REMOVE_TARGET_CPA
})
@JsonTypeName("AdGroupServiceTargetCpaBiddingScheme")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdGroupServiceTargetCpaBiddingScheme {
public static final String JSON_PROPERTY_TARGET_CPA = "targetCpa";
private Long targetCpa;
public static final String JSON_PROPERTY_IS_REMOVE_TARGET_CPA = "isRemoveTargetCpa";
private AdGroupServiceIsRemoveFlg isRemoveTargetCpa;
public AdGroupServiceTargetCpaBiddingScheme() {
}
public AdGroupServiceTargetCpaBiddingScheme targetCpa(Long targetCpa) {
this.targetCpa = targetCpa;
return this;
}
/**
* <div lang=\"ja\"> 広告グループ目標単価(tCPA)です。<br> ADDおよびSET時、このフィールドは省略可能となります。<br> ※制限値:1 ~ 800000<br> ※日本円のみの設定です。<br> ※campaignBiddingStrategyTypeがTARGET_CPAの場合のみ指定可能です。 </div> <div lang=\"en\"> Target CPA (tCPA) of ad group.<br> This field is optional in ADD and SET operation.<br> *Range limit: 1 - 800000<br> *JPY only.<br> *This can only be specified when campaignBiddingStrategyType is TARGET_CPA. </div>
* @return targetCpa
**/
@javax.annotation.Nullable
@ApiModelProperty(value = " 広告グループ目標単価(tCPA)です。
ADDおよびSET時、このフィールドは省略可能となります。
※制限値:1 ~ 800000
※日本円のみの設定です。
※campaignBiddingStrategyTypeがTARGET_CPAの場合のみ指定可能です。 Target CPA (tCPA) of ad group.
This field is optional in ADD and SET operation.
*Range limit: 1 - 800000
*JPY only.
*This can only be specified when campaignBiddingStrategyType is TARGET_CPA. ")
@JsonProperty(JSON_PROPERTY_TARGET_CPA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTargetCpa() {
return targetCpa;
}
@JsonProperty(JSON_PROPERTY_TARGET_CPA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetCpa(Long targetCpa) {
this.targetCpa = targetCpa;
}
public AdGroupServiceTargetCpaBiddingScheme isRemoveTargetCpa(AdGroupServiceIsRemoveFlg isRemoveTargetCpa) {
this.isRemoveTargetCpa = isRemoveTargetCpa;
return this;
}
/**
* Get isRemoveTargetCpa
* @return isRemoveTargetCpa
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_IS_REMOVE_TARGET_CPA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AdGroupServiceIsRemoveFlg getIsRemoveTargetCpa() {
return isRemoveTargetCpa;
}
@JsonProperty(JSON_PROPERTY_IS_REMOVE_TARGET_CPA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsRemoveTargetCpa(AdGroupServiceIsRemoveFlg isRemoveTargetCpa) {
this.isRemoveTargetCpa = isRemoveTargetCpa;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdGroupServiceTargetCpaBiddingScheme adGroupServiceTargetCpaBiddingScheme = (AdGroupServiceTargetCpaBiddingScheme) o;
return Objects.equals(this.targetCpa, adGroupServiceTargetCpaBiddingScheme.targetCpa) &&
Objects.equals(this.isRemoveTargetCpa, adGroupServiceTargetCpaBiddingScheme.isRemoveTargetCpa);
}
@Override
public int hashCode() {
return Objects.hash(targetCpa, isRemoveTargetCpa);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdGroupServiceTargetCpaBiddingScheme {\n");
sb.append(" targetCpa: ").append(toIndentedString(targetCpa)).append("\n");
sb.append(" isRemoveTargetCpa: ").append(toIndentedString(isRemoveTargetCpa)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}