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

jp.co.yahoo.adssearchapi.v14.model.CampaignCriterionServiceOperation 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 java.util.ArrayList; import java.util.List; import jp.co.yahoo.adssearchapi.v14.model.CampaignCriterion; import jp.co.yahoo.adssearchapi.v14.model.CampaignCriterionServiceUse; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * <div lang=\"ja\">CampaignCriterionServiceOperationオブジェクトは、操作の対象となるキャンペーンのクライテリアと処理の内容を表します。</div> <div lang=\"en\">CampaignCriterionServiceOperation object describes campaign criteria for operation and list of operations.</div> */ @ApiModel(description = "
CampaignCriterionServiceOperationオブジェクトは、操作の対象となるキャンペーンのクライテリアと処理の内容を表します。
CampaignCriterionServiceOperation object describes campaign criteria for operation and list of operations.
") @JsonPropertyOrder({ CampaignCriterionServiceOperation.JSON_PROPERTY_ACCOUNT_ID, CampaignCriterionServiceOperation.JSON_PROPERTY_CAMPAIGN_ID, CampaignCriterionServiceOperation.JSON_PROPERTY_OPERAND, CampaignCriterionServiceOperation.JSON_PROPERTY_USE }) @JsonTypeName("CampaignCriterionServiceOperation") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CampaignCriterionServiceOperation { 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_OPERAND = "operand"; private List operand = new ArrayList<>(); public static final String JSON_PROPERTY_USE = "use"; private CampaignCriterionServiceUse use; public CampaignCriterionServiceOperation() { } public CampaignCriterionServiceOperation accountId(Long accountId) { this.accountId = accountId; return this; } /** * <div lang=\"ja\">アカウントIDです。</div> <div lang=\"en\">Account ID.</div> * @return accountId **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "
アカウントIDです。
Account ID.
") @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) public Long getAccountId() { return accountId; } @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setAccountId(Long accountId) { this.accountId = accountId; } public CampaignCriterionServiceOperation campaignId(Long campaignId) { this.campaignId = campaignId; return this; } /** * <div lang=\"ja\">キャンペーンIDです。</div> <div lang=\"en\">Campaign ID.</div> * @return campaignId **/ @javax.annotation.Nullable @ApiModelProperty(value = "
キャンペーンIDです。
Campaign ID.
") @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 CampaignCriterionServiceOperation operand(List operand) { this.operand = operand; return this; } public CampaignCriterionServiceOperation addOperandItem(CampaignCriterion operandItem) { this.operand.add(operandItem); return this; } /** * Get operand * @return operand **/ @javax.annotation.Nullable @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_OPERAND) @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getOperand() { return operand; } @JsonProperty(JSON_PROPERTY_OPERAND) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOperand(List operand) { this.operand = operand; } public CampaignCriterionServiceOperation 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; } CampaignCriterionServiceOperation campaignCriterionServiceOperation = (CampaignCriterionServiceOperation) o; return Objects.equals(this.accountId, campaignCriterionServiceOperation.accountId) && Objects.equals(this.campaignId, campaignCriterionServiceOperation.campaignId) && Objects.equals(this.operand, campaignCriterionServiceOperation.operand) && Objects.equals(this.use, campaignCriterionServiceOperation.use); } @Override public int hashCode() { return Objects.hash(accountId, campaignId, operand, use); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CampaignCriterionServiceOperation {\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" operand: ").append(toIndentedString(operand)).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