jp.co.yahoo.adssearchapi.v12.model.CustomizerAttribute 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 jp.co.yahoo.adssearchapi.v12.model.CustomizerAttributeServiceType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CustomizerAttributeオブジェクトは、カスタマイザー属性の情報を格納します。</div> <div lang=\"en\">CustomizerAttribute object contains the information of CustomizerAttribute.</div>
*/
@ApiModel(description = "CustomizerAttributeオブジェクトは、カスタマイザー属性の情報を格納します。 CustomizerAttribute object contains the information of CustomizerAttribute. ")
@JsonPropertyOrder({
CustomizerAttribute.JSON_PROPERTY_ACCOUNT_ID,
CustomizerAttribute.JSON_PROPERTY_CUSTOMIZER_ATTRIBUTE_ID,
CustomizerAttribute.JSON_PROPERTY_NAME,
CustomizerAttribute.JSON_PROPERTY_TYPE
})
@JsonTypeName("CustomizerAttribute")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomizerAttribute {
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_NAME = "name";
private String name;
public static final String JSON_PROPERTY_TYPE = "type";
private CustomizerAttributeServiceType type;
public CustomizerAttribute() {
}
public CustomizerAttribute 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 CustomizerAttribute customizerAttributeId(Long customizerAttributeId) {
this.customizerAttributeId = customizerAttributeId;
return this;
}
/**
* <div lang=\"ja\">カスタマイザー属性IDです。<br> このフィールドは、REMOVE時に必須となり、ADD時に無視されます。</div> <div lang=\"en\">CustomizerAttribute ID.<br> This field is required in REMOVE operation, and will be ignored in ADD operation.</div>
* @return customizerAttributeId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "カスタマイザー属性IDです。
このフィールドは、REMOVE時に必須となり、ADD時に無視されます。 CustomizerAttribute ID.
This field is required in REMOVE operation, and will be ignored in ADD 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 CustomizerAttribute name(String name) {
this.name = name;
return this;
}
/**
* <div lang=\"ja\">属性名です。<br> このフィールドは、ADD時に必須となり、REMOVE時に無視されます。</div> <div lang=\"en\">Attribute name.<br> This field is required in ADD operation, and will be ignored in REMOVED operation.</div>
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "属性名です。
このフィールドは、ADD時に必須となり、REMOVE時に無視されます。 Attribute name.
This field is required in ADD operation, and will be ignored in REMOVED operation. ")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
public CustomizerAttribute type(CustomizerAttributeServiceType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CustomizerAttributeServiceType getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(CustomizerAttributeServiceType type) {
this.type = type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CustomizerAttribute customizerAttribute = (CustomizerAttribute) o;
return Objects.equals(this.accountId, customizerAttribute.accountId) &&
Objects.equals(this.customizerAttributeId, customizerAttribute.customizerAttributeId) &&
Objects.equals(this.name, customizerAttribute.name) &&
Objects.equals(this.type, customizerAttribute.type);
}
@Override
public int hashCode() {
return Objects.hash(accountId, customizerAttributeId, name, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CustomizerAttribute {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" customizerAttributeId: ").append(toIndentedString(customizerAttributeId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}