All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.co.yahoo.adssearchapi.v14.model.CampaignCriterion Maven / Gradle / Ivy

The newest version!
/*
 * Yahoo!広告 検索広告 API リファレンス / Yahoo! JAPAN Ads Search Ads API Reference
 * 
Yahoo!広告 検索広告 APIのWebサービスについて説明します。
Search Ads API Web Services supported in Yahoo! JAPAN Ads API.
OpenAPI Specification
Best Practice
Best Practice
* * 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.CampaignCriterionServiceCriterion; import jp.co.yahoo.adssearchapi.v14.model.CampaignCriterionServiceUse; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * <div lang=\"ja\">CampaignCriterionオブジェクトは、キャンペーンのクライテリアを表します。</div> <div lang=\"en\">CampaignCriterion object describes campaign criteria.</div> */ @ApiModel(description = "
CampaignCriterionオブジェクトは、キャンペーンのクライテリアを表します。
CampaignCriterion object describes campaign criteria.
") @JsonPropertyOrder({ CampaignCriterion.JSON_PROPERTY_ACCOUNT_ID, CampaignCriterion.JSON_PROPERTY_CAMPAIGN_ID, CampaignCriterion.JSON_PROPERTY_CAMPAIGN_NAME, CampaignCriterion.JSON_PROPERTY_CRITERION, CampaignCriterion.JSON_PROPERTY_USE }) @JsonTypeName("CampaignCriterion") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CampaignCriterion { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private Long accountId; public static final String JSON_PROPERTY_CAMPAIGN_ID = "campaignId"; private Long campaignId; public static final String JSON_PROPERTY_CAMPAIGN_NAME = "campaignName"; private String campaignName; public static final String JSON_PROPERTY_CRITERION = "criterion"; private CampaignCriterionServiceCriterion criterion; public static final String JSON_PROPERTY_USE = "use"; private CampaignCriterionServiceUse use; public CampaignCriterion() { } public CampaignCriterion accountId(Long accountId) { this.accountId = accountId; return this; } /** * <div lang=\"ja\">アカウントIDです。<br> ADD時およびREMOVE時、このフィールドは必須です。</div> <div lang=\"en\">Account ID.<br> This field is required in ADD and REMOVE operation.</div> * @return accountId **/ @javax.annotation.Nullable @ApiModelProperty(value = "
アカウントIDです。
ADD時およびREMOVE時、このフィールドは必須です。
Account ID.
This field is required in ADD and REMOVE operation.
") @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getAccountId() { return accountId; } @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAccountId(Long accountId) { this.accountId = accountId; } public CampaignCriterion campaignId(Long campaignId) { this.campaignId = campaignId; return this; } /** * <div lang=\"ja\">キャンペーンIDです。<br> ADD時およびREMOVE時、このフィールドは必須です。</div> <div lang=\"en\">Campaign ID.<br> This field is required in ADD and REMOVE operation.</div> * @return campaignId **/ @javax.annotation.Nullable @ApiModelProperty(value = "
キャンペーンIDです。
ADD時およびREMOVE時、このフィールドは必須です。
Campaign ID.
This field is required in ADD and REMOVE operation.
") @JsonProperty(JSON_PROPERTY_CAMPAIGN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getCampaignId() { return campaignId; } @JsonProperty(JSON_PROPERTY_CAMPAIGN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCampaignId(Long campaignId) { this.campaignId = campaignId; } public CampaignCriterion campaignName(String campaignName) { this.campaignName = campaignName; return this; } /** * <div lang=\"ja\">キャンペーン名です。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Campaign name.<br> Although this field will be returned in the response, it will be ignored on input.</div> * @return campaignName **/ @javax.annotation.Nullable @ApiModelProperty(value = "
キャンペーン名です。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。
Campaign name.
Although this field will be returned in the response, it will be ignored on input.
") @JsonProperty(JSON_PROPERTY_CAMPAIGN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCampaignName() { return campaignName; } @JsonProperty(JSON_PROPERTY_CAMPAIGN_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCampaignName(String campaignName) { this.campaignName = campaignName; } public CampaignCriterion criterion(CampaignCriterionServiceCriterion criterion) { this.criterion = criterion; return this; } /** * Get criterion * @return criterion **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_CRITERION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public CampaignCriterionServiceCriterion getCriterion() { return criterion; } @JsonProperty(JSON_PROPERTY_CRITERION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCriterion(CampaignCriterionServiceCriterion criterion) { this.criterion = criterion; } public CampaignCriterion use(CampaignCriterionServiceUse use) { this.use = use; return this; } /** * Get use * @return use **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public CampaignCriterionServiceUse getUse() { return use; } @JsonProperty(JSON_PROPERTY_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUse(CampaignCriterionServiceUse use) { this.use = use; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CampaignCriterion campaignCriterion = (CampaignCriterion) o; return Objects.equals(this.accountId, campaignCriterion.accountId) && Objects.equals(this.campaignId, campaignCriterion.campaignId) && Objects.equals(this.campaignName, campaignCriterion.campaignName) && Objects.equals(this.criterion, campaignCriterion.criterion) && Objects.equals(this.use, campaignCriterion.use); } @Override public int hashCode() { return Objects.hash(accountId, campaignId, campaignName, criterion, use); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignCriterion {\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" campaignName: ").append(toIndentedString(campaignName)).append("\n"); sb.append(" criterion: ").append(toIndentedString(criterion)).append("\n"); sb.append(" use: ").append(toIndentedString(use)).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 "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy