jp.co.yahoo.adssearchapi.v14.model.AdGroupAdServiceCustomParameter 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: v14
*
*
* 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.v14.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\">AdGroupAdServiceCustomParameterは、カスタムパラメータの内容を表します。<br>ADD時、このフィールドは必須となります。</div> <div lang=\"en\">AdGroupAdServiceCustomParameter displays the element of custom parameters.<br>This field is required in ADD operation.</div>
*/
@ApiModel(description = "AdGroupAdServiceCustomParameterは、カスタムパラメータの内容を表します。
ADD時、このフィールドは必須となります。 AdGroupAdServiceCustomParameter displays the element of custom parameters.
This field is required in ADD operation. ")
@JsonPropertyOrder({
AdGroupAdServiceCustomParameter.JSON_PROPERTY_KEY,
AdGroupAdServiceCustomParameter.JSON_PROPERTY_VALUE
})
@JsonTypeName("AdGroupAdServiceCustomParameter")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdGroupAdServiceCustomParameter {
public static final String JSON_PROPERTY_KEY = "key";
private String key;
public static final String JSON_PROPERTY_VALUE = "value";
private String value;
public AdGroupAdServiceCustomParameter() {
}
public AdGroupAdServiceCustomParameter 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 AdGroupAdServiceCustomParameter 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;
}
AdGroupAdServiceCustomParameter adGroupAdServiceCustomParameter = (AdGroupAdServiceCustomParameter) o;
return Objects.equals(this.key, adGroupAdServiceCustomParameter.key) &&
Objects.equals(this.value, adGroupAdServiceCustomParameter.value);
}
@Override
public int hashCode() {
return Objects.hash(key, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdGroupAdServiceCustomParameter {\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 ");
}
}