jp.co.yahoo.adssearchapi.v13.model.AdGroupServiceCustomParameter 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AdGroupServiceCustomParameterは、カスタムパラメータの内容を表します。<br> ADDおよびSET時、customParameters配下では必須となります。<br> ※SET時、既存の項目を置き換えます。また、このフィールドはisRemoveの設定値がTRUEの場合は無視され、全項目が削除されます。</div> <div lang=\"en\">AdGroupServiceCustomParameter displays the element of custom parameters.<br> In ADD and SET operation,this field is required under 'customParameters'.<br> *In SET operation, it will replace the current items. In addition, it will be ignored and all item will be deleted if 'isRemove' is set TRUE.</div>
*/
@ApiModel(description = "AdGroupServiceCustomParameterは、カスタムパラメータの内容を表します。
ADDおよびSET時、customParameters配下では必須となります。
※SET時、既存の項目を置き換えます。また、このフィールドはisRemoveの設定値がTRUEの場合は無視され、全項目が削除されます。 AdGroupServiceCustomParameter displays the element of custom parameters.
In ADD and SET operation,this field is required under 'customParameters'.
*In SET operation, it will replace the current items. In addition, it will be ignored and all item will be deleted if 'isRemove' is set TRUE. ")
@JsonPropertyOrder({
AdGroupServiceCustomParameter.JSON_PROPERTY_KEY,
AdGroupServiceCustomParameter.JSON_PROPERTY_VALUE
})
@JsonTypeName("AdGroupServiceCustomParameter")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdGroupServiceCustomParameter {
public static final String JSON_PROPERTY_KEY = "key";
private String key;
public static final String JSON_PROPERTY_VALUE = "value";
private String value;
public AdGroupServiceCustomParameter() {
}
public AdGroupServiceCustomParameter key(String key) {
this.key = key;
return this;
}
/**
* <div lang=\"ja\">キーです。<br> ADDおよびSET時、このフィールドは必須となります。</div> <div lang=\"en\">Key of parameter.<br> This field is required in ADD and SET operation.</div>
* @return key
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "キーです。
ADDおよびSET時、このフィールドは必須となります。 Key of parameter.
This field is required in ADD and SET operation. ")
@JsonProperty(JSON_PROPERTY_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getKey() {
return key;
}
@JsonProperty(JSON_PROPERTY_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setKey(String key) {
this.key = key;
}
public AdGroupServiceCustomParameter value(String value) {
this.value = value;
return this;
}
/**
* <div lang=\"ja\">値です。<br> ADDおよびSET時、このフィールドは省略可能となります。</div> <div lang=\"en\">Value of parameter.<br> This field is optional in ADD and SET operation.<br></div>
* @return value
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "値です。
ADDおよびSET時、このフィールドは省略可能となります。 Value of parameter.
This field is optional in ADD and SET 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;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdGroupServiceCustomParameter adGroupServiceCustomParameter = (AdGroupServiceCustomParameter) o;
return Objects.equals(this.key, adGroupServiceCustomParameter.key) &&
Objects.equals(this.value, adGroupServiceCustomParameter.value);
}
@Override
public int hashCode() {
return Objects.hash(key, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdGroupServiceCustomParameter {\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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 ");
}
}