jp.co.yahoo.adssearchapi.v12.model.AdGroupCriterionCustomizer 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 java.util.ArrayList;
import java.util.List;
import jp.co.yahoo.adssearchapi.v12.model.AdGroupCriterionCustomizerServiceApprovalStatus;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AdGroupCriterionCustomizerオブジェクトは、キーワードとカスタマイザー属性間の設定情報を格納します。</div> <div lang=\"en\">AdGroupCriterionCustomizer object contains the configuration information between the keyword and the customizer attribute.</div>
*/
@ApiModel(description = "AdGroupCriterionCustomizerオブジェクトは、キーワードとカスタマイザー属性間の設定情報を格納します。 AdGroupCriterionCustomizer object contains the configuration information between the keyword and the customizer attribute. ")
@JsonPropertyOrder({
AdGroupCriterionCustomizer.JSON_PROPERTY_ACCOUNT_ID,
AdGroupCriterionCustomizer.JSON_PROPERTY_CRITERION_ID,
AdGroupCriterionCustomizer.JSON_PROPERTY_CUSTOMIZER_ATTRIBUTE_ID,
AdGroupCriterionCustomizer.JSON_PROPERTY_VALUE,
AdGroupCriterionCustomizer.JSON_PROPERTY_APPROVAL_STATUS,
AdGroupCriterionCustomizer.JSON_PROPERTY_DISAPPROVAL_REASON_CODES
})
@JsonTypeName("AdGroupCriterionCustomizer")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdGroupCriterionCustomizer {
public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
private Long accountId;
public static final String JSON_PROPERTY_CRITERION_ID = "criterionId";
private Long criterionId;
public static final String JSON_PROPERTY_CUSTOMIZER_ATTRIBUTE_ID = "customizerAttributeId";
private Long customizerAttributeId;
public static final String JSON_PROPERTY_VALUE = "value";
private String value;
public static final String JSON_PROPERTY_APPROVAL_STATUS = "approvalStatus";
private AdGroupCriterionCustomizerServiceApprovalStatus approvalStatus;
public static final String JSON_PROPERTY_DISAPPROVAL_REASON_CODES = "disapprovalReasonCodes";
private List disapprovalReasonCodes = null;
public AdGroupCriterionCustomizer() {
}
public AdGroupCriterionCustomizer accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* <div lang=\"ja\">アカウントIDです。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Account ID.<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "アカウントIDです。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 Account ID.
Although this field will be returned in the response, it will be ignored on input. ")
@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 AdGroupCriterionCustomizer criterionId(Long criterionId) {
this.criterionId = criterionId;
return this;
}
/**
* <div lang=\"ja\">クライテリアIDです。<br> ADDおよびREMOVE時、このフィールドは必須となります。</div> <div lang=\"en\">Criterion ID.<br> This field is required in ADD and REMOVE operation.</div>
* @return criterionId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "クライテリアIDです。
ADDおよびREMOVE時、このフィールドは必須となります。 Criterion ID.
This field is required in ADD and REMOVE operation. ")
@JsonProperty(JSON_PROPERTY_CRITERION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCriterionId() {
return criterionId;
}
@JsonProperty(JSON_PROPERTY_CRITERION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCriterionId(Long criterionId) {
this.criterionId = criterionId;
}
public AdGroupCriterionCustomizer customizerAttributeId(Long customizerAttributeId) {
this.customizerAttributeId = customizerAttributeId;
return this;
}
/**
* <div lang=\"ja\">カスタマイザー属性IDです。<br> ADDおよびREMOVE時、このフィールドは必須となります。</div> <div lang=\"en\">CustomizerAttribute ID.<br> This field is required in ADD and REMOVE operation.</div>
* @return customizerAttributeId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "カスタマイザー属性IDです。
ADDおよびREMOVE時、このフィールドは必須となります。 CustomizerAttribute ID.
This field is required in ADD and REMOVE operation. ")
@JsonProperty(JSON_PROPERTY_CUSTOMIZER_ATTRIBUTE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCustomizerAttributeId() {
return customizerAttributeId;
}
@JsonProperty(JSON_PROPERTY_CUSTOMIZER_ATTRIBUTE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCustomizerAttributeId(Long customizerAttributeId) {
this.customizerAttributeId = customizerAttributeId;
}
public AdGroupCriterionCustomizer value(String value) {
this.value = value;
return this;
}
/**
* <div lang=\"ja\">属性値です。挿入用広告に挿入されます。<br> 入力仕様の詳細は以下のヘルプを参照してください。<br> ・<a href=\"https://ads-help.yahoo-net.jp/s/article/H000044225?language=ja\">アドカスタマイザー属性を関連付ける</a><br> ADD時、このフィールドは必須となります。</div> <div lang=\"en\">The attribute value. It will be inserted into the ad for insertion.<br> See also the help below.<br> * <a href=\"https://ads-help.yahoo-net.jp/s/article/H000044225?language=en_US\">Associate ad customizer attributes</a><br> This field is required in ADD operation.</div>
* @return value
**/
@javax.annotation.Nullable
@ApiModelProperty(value = " The attribute value. It will be inserted into the ad for insertion.
See also the help below.
* Associate ad customizer attributes
This field is required in ADD operation. ")
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getValue() {
return value;
}
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValue(String value) {
this.value = value;
}
public AdGroupCriterionCustomizer approvalStatus(AdGroupCriterionCustomizerServiceApprovalStatus approvalStatus) {
this.approvalStatus = approvalStatus;
return this;
}
/**
* Get approvalStatus
* @return approvalStatus
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_APPROVAL_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AdGroupCriterionCustomizerServiceApprovalStatus getApprovalStatus() {
return approvalStatus;
}
@JsonProperty(JSON_PROPERTY_APPROVAL_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setApprovalStatus(AdGroupCriterionCustomizerServiceApprovalStatus approvalStatus) {
this.approvalStatus = approvalStatus;
}
public AdGroupCriterionCustomizer disapprovalReasonCodes(List disapprovalReasonCodes) {
this.disapprovalReasonCodes = disapprovalReasonCodes;
return this;
}
public AdGroupCriterionCustomizer addDisapprovalReasonCodesItem(String disapprovalReasonCodesItem) {
if (this.disapprovalReasonCodes == null) {
this.disapprovalReasonCodes = new ArrayList<>();
}
this.disapprovalReasonCodes.add(disapprovalReasonCodesItem);
return this;
}
/**
* <div lang=\"ja\">審査否認理由です。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Reject reason on editorial review.<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return disapprovalReasonCodes
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "審査否認理由です。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 Reject reason on editorial review.
Although this field will be returned in the response, it will be ignored on input. ")
@JsonProperty(JSON_PROPERTY_DISAPPROVAL_REASON_CODES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getDisapprovalReasonCodes() {
return disapprovalReasonCodes;
}
@JsonProperty(JSON_PROPERTY_DISAPPROVAL_REASON_CODES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDisapprovalReasonCodes(List disapprovalReasonCodes) {
this.disapprovalReasonCodes = disapprovalReasonCodes;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdGroupCriterionCustomizer adGroupCriterionCustomizer = (AdGroupCriterionCustomizer) o;
return Objects.equals(this.accountId, adGroupCriterionCustomizer.accountId) &&
Objects.equals(this.criterionId, adGroupCriterionCustomizer.criterionId) &&
Objects.equals(this.customizerAttributeId, adGroupCriterionCustomizer.customizerAttributeId) &&
Objects.equals(this.value, adGroupCriterionCustomizer.value) &&
Objects.equals(this.approvalStatus, adGroupCriterionCustomizer.approvalStatus) &&
Objects.equals(this.disapprovalReasonCodes, adGroupCriterionCustomizer.disapprovalReasonCodes);
}
@Override
public int hashCode() {
return Objects.hash(accountId, criterionId, customizerAttributeId, value, approvalStatus, disapprovalReasonCodes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdGroupCriterionCustomizer {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" criterionId: ").append(toIndentedString(criterionId)).append("\n");
sb.append(" customizerAttributeId: ").append(toIndentedString(customizerAttributeId)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" approvalStatus: ").append(toIndentedString(approvalStatus)).append("\n");
sb.append(" disapprovalReasonCodes: ").append(toIndentedString(disapprovalReasonCodes)).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 ");
}
}