jp.co.yahoo.adssearchapi.v13.model.AccountCustomizer 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 java.util.ArrayList;
import java.util.List;
import jp.co.yahoo.adssearchapi.v13.model.AccountCustomizerServiceApprovalStatus;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AccountCustomizerオブジェクトは、アカウントとカスタマイザー属性間の設定情報を格納します。</div> <div lang=\"en\">AccountCustomizer object contains the configuration information between the account and the customizer attribute.</div>
*/
@ApiModel(description = "AccountCustomizerオブジェクトは、アカウントとカスタマイザー属性間の設定情報を格納します。 AccountCustomizer object contains the configuration information between the account and the customizer attribute. ")
@JsonPropertyOrder({
AccountCustomizer.JSON_PROPERTY_ACCOUNT_ID,
AccountCustomizer.JSON_PROPERTY_CUSTOMIZER_ATTRIBUTE_ID,
AccountCustomizer.JSON_PROPERTY_VALUE,
AccountCustomizer.JSON_PROPERTY_APPROVAL_STATUS,
AccountCustomizer.JSON_PROPERTY_DISAPPROVAL_REASON_CODES
})
@JsonTypeName("AccountCustomizer")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AccountCustomizer {
public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
private Long accountId;
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 AccountCustomizerServiceApprovalStatus approvalStatus;
public static final String JSON_PROPERTY_DISAPPROVAL_REASON_CODES = "disapprovalReasonCodes";
private List disapprovalReasonCodes = null;
public AccountCustomizer() {
}
public AccountCustomizer 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 AccountCustomizer 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 AccountCustomizer 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 AccountCustomizer approvalStatus(AccountCustomizerServiceApprovalStatus 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 AccountCustomizerServiceApprovalStatus getApprovalStatus() {
return approvalStatus;
}
@JsonProperty(JSON_PROPERTY_APPROVAL_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setApprovalStatus(AccountCustomizerServiceApprovalStatus approvalStatus) {
this.approvalStatus = approvalStatus;
}
public AccountCustomizer disapprovalReasonCodes(List disapprovalReasonCodes) {
this.disapprovalReasonCodes = disapprovalReasonCodes;
return this;
}
public AccountCustomizer 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;
}
AccountCustomizer accountCustomizer = (AccountCustomizer) o;
return Objects.equals(this.accountId, accountCustomizer.accountId) &&
Objects.equals(this.customizerAttributeId, accountCustomizer.customizerAttributeId) &&
Objects.equals(this.value, accountCustomizer.value) &&
Objects.equals(this.approvalStatus, accountCustomizer.approvalStatus) &&
Objects.equals(this.disapprovalReasonCodes, accountCustomizer.disapprovalReasonCodes);
}
@Override
public int hashCode() {
return Objects.hash(accountId, customizerAttributeId, value, approvalStatus, disapprovalReasonCodes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountCustomizer {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).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 ");
}
}