jp.co.yahoo.adssearchapi.v14.model.AdGroupServiceSettings 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 jp.co.yahoo.adssearchapi.v14.model.AdGroupServiceCriterionType;
import jp.co.yahoo.adssearchapi.v14.model.AdGroupServiceTargetingSetting;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AdGroupServiceSettingsは、ターゲットタイプを保持するオブジェクトです。<br> ADDおよびSET時、このフィールドは省略可能となります。</div> <div lang=\"en\">AdGroupServiceSettings is object that holds target type.<br> This field is optional in ADD and SET operation.</div>
*/
@ApiModel(description = "AdGroupServiceSettingsは、ターゲットタイプを保持するオブジェクトです。
ADDおよびSET時、このフィールドは省略可能となります。 AdGroupServiceSettings is object that holds target type.
This field is optional in ADD and SET operation. ")
@JsonPropertyOrder({
AdGroupServiceSettings.JSON_PROPERTY_CRITERION_TYPE,
AdGroupServiceSettings.JSON_PROPERTY_TARGETING_SETTING
})
@JsonTypeName("AdGroupServiceSettings")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdGroupServiceSettings {
public static final String JSON_PROPERTY_CRITERION_TYPE = "criterionType";
private AdGroupServiceCriterionType criterionType;
public static final String JSON_PROPERTY_TARGETING_SETTING = "targetingSetting";
private AdGroupServiceTargetingSetting targetingSetting;
public AdGroupServiceSettings() {
}
public AdGroupServiceSettings criterionType(AdGroupServiceCriterionType criterionType) {
this.criterionType = criterionType;
return this;
}
/**
* Get criterionType
* @return criterionType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CRITERION_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AdGroupServiceCriterionType getCriterionType() {
return criterionType;
}
@JsonProperty(JSON_PROPERTY_CRITERION_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCriterionType(AdGroupServiceCriterionType criterionType) {
this.criterionType = criterionType;
}
public AdGroupServiceSettings targetingSetting(AdGroupServiceTargetingSetting targetingSetting) {
this.targetingSetting = targetingSetting;
return this;
}
/**
* Get targetingSetting
* @return targetingSetting
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TARGETING_SETTING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AdGroupServiceTargetingSetting getTargetingSetting() {
return targetingSetting;
}
@JsonProperty(JSON_PROPERTY_TARGETING_SETTING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetingSetting(AdGroupServiceTargetingSetting targetingSetting) {
this.targetingSetting = targetingSetting;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdGroupServiceSettings adGroupServiceSettings = (AdGroupServiceSettings) o;
return Objects.equals(this.criterionType, adGroupServiceSettings.criterionType) &&
Objects.equals(this.targetingSetting, adGroupServiceSettings.targetingSetting);
}
@Override
public int hashCode() {
return Objects.hash(criterionType, targetingSetting);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdGroupServiceSettings {\n");
sb.append(" criterionType: ").append(toIndentedString(criterionType)).append("\n");
sb.append(" targetingSetting: ").append(toIndentedString(targetingSetting)).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 ");
}
}