jp.co.yahoo.adssearchapi.v12.model.AdGroupCriterionServiceBid 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: v12
*
*
* 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.v12.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.v12.model.AdGroupCriterionServiceBidSource;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AdGroupCriterionServiceBidオブジェクトは、入札価格を表示します。 (AdGroupCriterionService用のオブジェクトです。)<br> ADDおよびSET時、このフィールドは省略可能となります。</div> <div lang=\"en\">AdGroupCriterionServiceBid object displays the bid values. *Object for AdGroupCriterionService.<br> This field is optional in ADD and SET operation.</div>
*/
@ApiModel(description = "AdGroupCriterionServiceBidオブジェクトは、入札価格を表示します。 (AdGroupCriterionService用のオブジェクトです。)
ADDおよびSET時、このフィールドは省略可能となります。 AdGroupCriterionServiceBid object displays the bid values. *Object for AdGroupCriterionService.
This field is optional in ADD and SET operation. ")
@JsonPropertyOrder({
AdGroupCriterionServiceBid.JSON_PROPERTY_AD_GROUP_CPC,
AdGroupCriterionServiceBid.JSON_PROPERTY_BID_SOURCE,
AdGroupCriterionServiceBid.JSON_PROPERTY_KEYWORD_CPC,
AdGroupCriterionServiceBid.JSON_PROPERTY_CPC
})
@JsonTypeName("AdGroupCriterionServiceBid")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdGroupCriterionServiceBid {
public static final String JSON_PROPERTY_AD_GROUP_CPC = "adGroupCpc";
private Long adGroupCpc;
public static final String JSON_PROPERTY_BID_SOURCE = "bidSource";
private AdGroupCriterionServiceBidSource bidSource;
public static final String JSON_PROPERTY_KEYWORD_CPC = "keywordCpc";
private Long keywordCpc;
public static final String JSON_PROPERTY_CPC = "cpc";
private Long cpc;
public AdGroupCriterionServiceBid() {
}
public AdGroupCriterionServiceBid adGroupCpc(Long adGroupCpc) {
this.adGroupCpc = adGroupCpc;
return this;
}
/**
* <div lang=\"ja\">広告グループ入札価格です。</div> <div lang=\"en\">CPC of Ad group.</div>
* @return adGroupCpc
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "広告グループ入札価格です。 CPC of Ad group. ")
@JsonProperty(JSON_PROPERTY_AD_GROUP_CPC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAdGroupCpc() {
return adGroupCpc;
}
@JsonProperty(JSON_PROPERTY_AD_GROUP_CPC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdGroupCpc(Long adGroupCpc) {
this.adGroupCpc = adGroupCpc;
}
public AdGroupCriterionServiceBid bidSource(AdGroupCriterionServiceBidSource bidSource) {
this.bidSource = bidSource;
return this;
}
/**
* Get bidSource
* @return bidSource
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BID_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AdGroupCriterionServiceBidSource getBidSource() {
return bidSource;
}
@JsonProperty(JSON_PROPERTY_BID_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBidSource(AdGroupCriterionServiceBidSource bidSource) {
this.bidSource = bidSource;
}
public AdGroupCriterionServiceBid keywordCpc(Long keywordCpc) {
this.keywordCpc = keywordCpc;
return this;
}
/**
* <div lang=\"ja\">キーワード入札価格です。</div> <div lang=\"en\">CPC of Keyword.</div>
* @return keywordCpc
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "キーワード入札価格です。 CPC of Keyword. ")
@JsonProperty(JSON_PROPERTY_KEYWORD_CPC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getKeywordCpc() {
return keywordCpc;
}
@JsonProperty(JSON_PROPERTY_KEYWORD_CPC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setKeywordCpc(Long keywordCpc) {
this.keywordCpc = keywordCpc;
}
public AdGroupCriterionServiceBid cpc(Long cpc) {
this.cpc = cpc;
return this;
}
/**
* <div lang=\"ja\">キーワード入札価格です。<br> このフィールドは、省略可能となります。その際、ADD時のデフォルト設定値は1となります。<br> ※cpcが0の場合は、設定なしと同様です。</div> <div lang=\"en\">CPC of Keyword.<br> This field is optional. The default value in ADD operation will be 1.<br> *Confirmed as no setting, if value is set "0".</div>
* @return cpc
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "キーワード入札価格です。
このフィールドは、省略可能となります。その際、ADD時のデフォルト設定値は1となります。
※cpcが0の場合は、設定なしと同様です。 CPC of Keyword.
This field is optional. The default value in ADD operation will be 1.
*Confirmed as no setting, if value is set "0". ")
@JsonProperty(JSON_PROPERTY_CPC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCpc() {
return cpc;
}
@JsonProperty(JSON_PROPERTY_CPC)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCpc(Long cpc) {
this.cpc = cpc;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdGroupCriterionServiceBid adGroupCriterionServiceBid = (AdGroupCriterionServiceBid) o;
return Objects.equals(this.adGroupCpc, adGroupCriterionServiceBid.adGroupCpc) &&
Objects.equals(this.bidSource, adGroupCriterionServiceBid.bidSource) &&
Objects.equals(this.keywordCpc, adGroupCriterionServiceBid.keywordCpc) &&
Objects.equals(this.cpc, adGroupCriterionServiceBid.cpc);
}
@Override
public int hashCode() {
return Objects.hash(adGroupCpc, bidSource, keywordCpc, cpc);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdGroupCriterionServiceBid {\n");
sb.append(" adGroupCpc: ").append(toIndentedString(adGroupCpc)).append("\n");
sb.append(" bidSource: ").append(toIndentedString(bidSource)).append("\n");
sb.append(" keywordCpc: ").append(toIndentedString(keywordCpc)).append("\n");
sb.append(" cpc: ").append(toIndentedString(cpc)).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 ");
}
}