jp.co.yahoo.adssearchapi.v13.model.AdGroupCriterionServiceCustomParameter 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\">AdGroupCriterionServiceCustomParameterは、カスタムパラメータの内容を表します。<br> ADDおよびSET時、このフィールドは必須となります。<br> ※SET時、既存の項目を置き換えます。また、isRemoveの設定値がTRUEの場合は無視され、全項目が削除されます。</div> <div lang=\"en\">AdGroupCriterionServiceCustomParameter displays the element of custom parameters.<br> This field is required in ADD and SET operation.<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 to TRUE.</div>
*/
@ApiModel(description = "AdGroupCriterionServiceCustomParameterは、カスタムパラメータの内容を表します。
ADDおよびSET時、このフィールドは必須となります。
※SET時、既存の項目を置き換えます。また、isRemoveの設定値がTRUEの場合は無視され、全項目が削除されます。 AdGroupCriterionServiceCustomParameter displays the element of custom parameters.
This field is required in ADD and SET operation.
*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 to TRUE. ")
@JsonPropertyOrder({
AdGroupCriterionServiceCustomParameter.JSON_PROPERTY_KEY,
AdGroupCriterionServiceCustomParameter.JSON_PROPERTY_VALUE
})
@JsonTypeName("AdGroupCriterionServiceCustomParameter")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdGroupCriterionServiceCustomParameter {
public static final String JSON_PROPERTY_KEY = "key";
private String key;
public static final String JSON_PROPERTY_VALUE = "value";
private String value;
public AdGroupCriterionServiceCustomParameter() {
}
public AdGroupCriterionServiceCustomParameter 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 AdGroupCriterionServiceCustomParameter 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.</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;
}
AdGroupCriterionServiceCustomParameter adGroupCriterionServiceCustomParameter = (AdGroupCriterionServiceCustomParameter) o;
return Objects.equals(this.key, adGroupCriterionServiceCustomParameter.key) &&
Objects.equals(this.value, adGroupCriterionServiceCustomParameter.value);
}
@Override
public int hashCode() {
return Objects.hash(key, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdGroupCriterionServiceCustomParameter {\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 ");
}
}