jp.co.yahoo.adssearchapi.v13.model.BiddingStrategyServiceBiddingScheme 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: v13
*
*
* 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.v13.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.v13.model.BiddingStrategyServiceMaximizeClicksBiddingScheme;
import jp.co.yahoo.adssearchapi.v13.model.BiddingStrategyServiceTargetCpaBiddingScheme;
import jp.co.yahoo.adssearchapi.v13.model.BiddingStrategyServiceTargetImpressionShareScheme;
import jp.co.yahoo.adssearchapi.v13.model.BiddingStrategyServiceTargetRoasBiddingScheme;
import jp.co.yahoo.adssearchapi.v13.model.BiddingStrategyServiceType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">BiddingStrategyServiceBiddingSchemeオブジェクトは、自動入札設定の詳細情報を表します。(BiddingStrategyService用のオブジェクトです。)<br> このフィールドは、ADD時は必須となり、SET時は省略可能となります。</div> <div lang=\"en\">BiddingStrategyServiceBiddingScheme object displays the details of auto bidding setting. (This is for BiddingStrategyService)<br> This field is required in ADD operation, and will be optional in SET operation.</div>
*/
@ApiModel(description = "BiddingStrategyServiceBiddingSchemeオブジェクトは、自動入札設定の詳細情報を表します。(BiddingStrategyService用のオブジェクトです。)
このフィールドは、ADD時は必須となり、SET時は省略可能となります。 BiddingStrategyServiceBiddingScheme object displays the details of auto bidding setting. (This is for BiddingStrategyService)
This field is required in ADD operation, and will be optional in SET operation. ")
@JsonPropertyOrder({
BiddingStrategyServiceBiddingScheme.JSON_PROPERTY_TARGET_CPA_BIDDING_SCHEME,
BiddingStrategyServiceBiddingScheme.JSON_PROPERTY_TARGET_ROAS_BIDDING_SCHEME,
BiddingStrategyServiceBiddingScheme.JSON_PROPERTY_MAXIMIZE_CLICKS_BIDDING_SCHEME,
BiddingStrategyServiceBiddingScheme.JSON_PROPERTY_TARGET_IMPRESSION_SHARE_SCHEME,
BiddingStrategyServiceBiddingScheme.JSON_PROPERTY_TYPE
})
@JsonTypeName("BiddingStrategyServiceBiddingScheme")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BiddingStrategyServiceBiddingScheme {
public static final String JSON_PROPERTY_TARGET_CPA_BIDDING_SCHEME = "targetCpaBiddingScheme";
private BiddingStrategyServiceTargetCpaBiddingScheme targetCpaBiddingScheme;
public static final String JSON_PROPERTY_TARGET_ROAS_BIDDING_SCHEME = "targetRoasBiddingScheme";
private BiddingStrategyServiceTargetRoasBiddingScheme targetRoasBiddingScheme;
public static final String JSON_PROPERTY_MAXIMIZE_CLICKS_BIDDING_SCHEME = "maximizeClicksBiddingScheme";
private BiddingStrategyServiceMaximizeClicksBiddingScheme maximizeClicksBiddingScheme;
public static final String JSON_PROPERTY_TARGET_IMPRESSION_SHARE_SCHEME = "targetImpressionShareScheme";
private BiddingStrategyServiceTargetImpressionShareScheme targetImpressionShareScheme;
public static final String JSON_PROPERTY_TYPE = "type";
private BiddingStrategyServiceType type;
public BiddingStrategyServiceBiddingScheme() {
}
public BiddingStrategyServiceBiddingScheme targetCpaBiddingScheme(BiddingStrategyServiceTargetCpaBiddingScheme targetCpaBiddingScheme) {
this.targetCpaBiddingScheme = targetCpaBiddingScheme;
return this;
}
/**
* Get targetCpaBiddingScheme
* @return targetCpaBiddingScheme
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TARGET_CPA_BIDDING_SCHEME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BiddingStrategyServiceTargetCpaBiddingScheme getTargetCpaBiddingScheme() {
return targetCpaBiddingScheme;
}
@JsonProperty(JSON_PROPERTY_TARGET_CPA_BIDDING_SCHEME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetCpaBiddingScheme(BiddingStrategyServiceTargetCpaBiddingScheme targetCpaBiddingScheme) {
this.targetCpaBiddingScheme = targetCpaBiddingScheme;
}
public BiddingStrategyServiceBiddingScheme targetRoasBiddingScheme(BiddingStrategyServiceTargetRoasBiddingScheme targetRoasBiddingScheme) {
this.targetRoasBiddingScheme = targetRoasBiddingScheme;
return this;
}
/**
* Get targetRoasBiddingScheme
* @return targetRoasBiddingScheme
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TARGET_ROAS_BIDDING_SCHEME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BiddingStrategyServiceTargetRoasBiddingScheme getTargetRoasBiddingScheme() {
return targetRoasBiddingScheme;
}
@JsonProperty(JSON_PROPERTY_TARGET_ROAS_BIDDING_SCHEME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetRoasBiddingScheme(BiddingStrategyServiceTargetRoasBiddingScheme targetRoasBiddingScheme) {
this.targetRoasBiddingScheme = targetRoasBiddingScheme;
}
public BiddingStrategyServiceBiddingScheme maximizeClicksBiddingScheme(BiddingStrategyServiceMaximizeClicksBiddingScheme maximizeClicksBiddingScheme) {
this.maximizeClicksBiddingScheme = maximizeClicksBiddingScheme;
return this;
}
/**
* Get maximizeClicksBiddingScheme
* @return maximizeClicksBiddingScheme
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAXIMIZE_CLICKS_BIDDING_SCHEME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BiddingStrategyServiceMaximizeClicksBiddingScheme getMaximizeClicksBiddingScheme() {
return maximizeClicksBiddingScheme;
}
@JsonProperty(JSON_PROPERTY_MAXIMIZE_CLICKS_BIDDING_SCHEME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMaximizeClicksBiddingScheme(BiddingStrategyServiceMaximizeClicksBiddingScheme maximizeClicksBiddingScheme) {
this.maximizeClicksBiddingScheme = maximizeClicksBiddingScheme;
}
public BiddingStrategyServiceBiddingScheme targetImpressionShareScheme(BiddingStrategyServiceTargetImpressionShareScheme targetImpressionShareScheme) {
this.targetImpressionShareScheme = targetImpressionShareScheme;
return this;
}
/**
* Get targetImpressionShareScheme
* @return targetImpressionShareScheme
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TARGET_IMPRESSION_SHARE_SCHEME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BiddingStrategyServiceTargetImpressionShareScheme getTargetImpressionShareScheme() {
return targetImpressionShareScheme;
}
@JsonProperty(JSON_PROPERTY_TARGET_IMPRESSION_SHARE_SCHEME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetImpressionShareScheme(BiddingStrategyServiceTargetImpressionShareScheme targetImpressionShareScheme) {
this.targetImpressionShareScheme = targetImpressionShareScheme;
}
public BiddingStrategyServiceBiddingScheme type(BiddingStrategyServiceType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BiddingStrategyServiceType getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(BiddingStrategyServiceType type) {
this.type = type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BiddingStrategyServiceBiddingScheme biddingStrategyServiceBiddingScheme = (BiddingStrategyServiceBiddingScheme) o;
return Objects.equals(this.targetCpaBiddingScheme, biddingStrategyServiceBiddingScheme.targetCpaBiddingScheme) &&
Objects.equals(this.targetRoasBiddingScheme, biddingStrategyServiceBiddingScheme.targetRoasBiddingScheme) &&
Objects.equals(this.maximizeClicksBiddingScheme, biddingStrategyServiceBiddingScheme.maximizeClicksBiddingScheme) &&
Objects.equals(this.targetImpressionShareScheme, biddingStrategyServiceBiddingScheme.targetImpressionShareScheme) &&
Objects.equals(this.type, biddingStrategyServiceBiddingScheme.type);
}
@Override
public int hashCode() {
return Objects.hash(targetCpaBiddingScheme, targetRoasBiddingScheme, maximizeClicksBiddingScheme, targetImpressionShareScheme, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BiddingStrategyServiceBiddingScheme {\n");
sb.append(" targetCpaBiddingScheme: ").append(toIndentedString(targetCpaBiddingScheme)).append("\n");
sb.append(" targetRoasBiddingScheme: ").append(toIndentedString(targetRoasBiddingScheme)).append("\n");
sb.append(" maximizeClicksBiddingScheme: ").append(toIndentedString(maximizeClicksBiddingScheme)).append("\n");
sb.append(" targetImpressionShareScheme: ").append(toIndentedString(targetImpressionShareScheme)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}