jp.co.yahoo.adssearchapi.v13.model.CampaignServiceTargetImpressionShareScheme 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.CampaignServiceTargetImpressionShareLocation;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CampaignServiceTargetImpressionShareSchemeオブジェクトは、インプレッションシェアの目標値の自動入札設定情報を表します。 (BiddingStrategyService以外用のオブジェクトです。)<br> ADD時、BiddingStrategyTypeがTARGET_IMPRESSION_SHAREの場合、必須となり、それ以外では省略可能となります。</div> <div lang=\"en\">CampaignServiceTargetImpressionShareScheme object describes automatic bid setting information of the impression share target value. (Object for anything other than BiddingStrategyService.)<br> If BiddingStrategyType is TARGET_IMPRESSION_SHARE, this field is required in ADD operation, and it is optional when BiddingStrategyType is the others.</div>
*/
@ApiModel(description = "CampaignServiceTargetImpressionShareSchemeオブジェクトは、インプレッションシェアの目標値の自動入札設定情報を表します。 (BiddingStrategyService以外用のオブジェクトです。)
ADD時、BiddingStrategyTypeがTARGET_IMPRESSION_SHAREの場合、必須となり、それ以外では省略可能となります。 CampaignServiceTargetImpressionShareScheme object describes automatic bid setting information of the impression share target value. (Object for anything other than BiddingStrategyService.)
If BiddingStrategyType is TARGET_IMPRESSION_SHARE, this field is required in ADD operation, and it is optional when BiddingStrategyType is the others. ")
@JsonPropertyOrder({
CampaignServiceTargetImpressionShareScheme.JSON_PROPERTY_LOCATION,
CampaignServiceTargetImpressionShareScheme.JSON_PROPERTY_BID_CEILING,
CampaignServiceTargetImpressionShareScheme.JSON_PROPERTY_TARGET_IMPRESSION_SHARE
})
@JsonTypeName("CampaignServiceTargetImpressionShareScheme")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignServiceTargetImpressionShareScheme {
public static final String JSON_PROPERTY_LOCATION = "location";
private CampaignServiceTargetImpressionShareLocation location;
public static final String JSON_PROPERTY_BID_CEILING = "bidCeiling";
private Long bidCeiling;
public static final String JSON_PROPERTY_TARGET_IMPRESSION_SHARE = "targetImpressionShare";
private Long targetImpressionShare;
public CampaignServiceTargetImpressionShareScheme() {
}
public CampaignServiceTargetImpressionShareScheme location(CampaignServiceTargetImpressionShareLocation location) {
this.location = location;
return this;
}
/**
* Get location
* @return location
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LOCATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignServiceTargetImpressionShareLocation getLocation() {
return location;
}
@JsonProperty(JSON_PROPERTY_LOCATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLocation(CampaignServiceTargetImpressionShareLocation location) {
this.location = location;
}
public CampaignServiceTargetImpressionShareScheme bidCeiling(Long bidCeiling) {
this.bidCeiling = bidCeiling;
return this;
}
/**
* <div lang=\"ja\">入札価格の上限です。<br> このフィールドは省略可能となります。その際、デフォルト設定値は0となります。<br> ※「0」が設定された場合、上限設定はありません。</div> <div lang=\"en\">Limit of bid (CPC).<br> This field is optional. The default value will be 0.<br> * No limits if "0" is set.</div>
* @return bidCeiling
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "入札価格の上限です。
このフィールドは省略可能となります。その際、デフォルト設定値は0となります。
※「0」が設定された場合、上限設定はありません。 Limit of bid (CPC).
This field is optional. The default value will be 0.
* No limits if "0" is set. ")
@JsonProperty(JSON_PROPERTY_BID_CEILING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getBidCeiling() {
return bidCeiling;
}
@JsonProperty(JSON_PROPERTY_BID_CEILING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBidCeiling(Long bidCeiling) {
this.bidCeiling = bidCeiling;
}
public CampaignServiceTargetImpressionShareScheme targetImpressionShare(Long targetImpressionShare) {
this.targetImpressionShare = targetImpressionShare;
return this;
}
/**
* <div lang=\"ja\">目標のインプレッションシェアです。<br> ADD時およびSET時、このフィールドは必須となります。</div> <div lang=\"en\">Target impression share.<br> This field is required in ADD and SET operation.</div>
* @return targetImpressionShare
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "目標のインプレッションシェアです。
ADD時およびSET時、このフィールドは必須となります。 Target impression share.
This field is required in ADD and SET operation. ")
@JsonProperty(JSON_PROPERTY_TARGET_IMPRESSION_SHARE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTargetImpressionShare() {
return targetImpressionShare;
}
@JsonProperty(JSON_PROPERTY_TARGET_IMPRESSION_SHARE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetImpressionShare(Long targetImpressionShare) {
this.targetImpressionShare = targetImpressionShare;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignServiceTargetImpressionShareScheme campaignServiceTargetImpressionShareScheme = (CampaignServiceTargetImpressionShareScheme) o;
return Objects.equals(this.location, campaignServiceTargetImpressionShareScheme.location) &&
Objects.equals(this.bidCeiling, campaignServiceTargetImpressionShareScheme.bidCeiling) &&
Objects.equals(this.targetImpressionShare, campaignServiceTargetImpressionShareScheme.targetImpressionShare);
}
@Override
public int hashCode() {
return Objects.hash(location, bidCeiling, targetImpressionShare);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignServiceTargetImpressionShareScheme {\n");
sb.append(" location: ").append(toIndentedString(location)).append("\n");
sb.append(" bidCeiling: ").append(toIndentedString(bidCeiling)).append("\n");
sb.append(" targetImpressionShare: ").append(toIndentedString(targetImpressionShare)).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 ");
}
}