jp.co.yahoo.adssearchapi.v13.model.CampaignTargetServiceLocationTarget 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 jp.co.yahoo.adssearchapi.v13.model.CampaignTargetServiceExcludedType;
import jp.co.yahoo.adssearchapi.v13.model.CampaignTargetServiceTargetingStatus;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CampaignTargetServiceLocationTargetオブジェクトは、地域ターゲティング設定です。<br> このフィールドは、ADDおよびSET時に省略可能となります。<br> ※targetTypeがLOCATIONの場合、このフィールドはADD時に必須となります。</div> <div lang=\"en\">CampaignTargetServiceLocationTarget object is a location target setting.<br> This field is optional in ADD and SET operation.<br> *If targetType is LOCATION, this field is required in ADD operation.</div>
*/
@ApiModel(description = "CampaignTargetServiceLocationTargetオブジェクトは、地域ターゲティング設定です。
このフィールドは、ADDおよびSET時に省略可能となります。
※targetTypeがLOCATIONの場合、このフィールドはADD時に必須となります。 CampaignTargetServiceLocationTarget object is a location target setting.
This field is optional in ADD and SET operation.
*If targetType is LOCATION, this field is required in ADD operation. ")
@JsonPropertyOrder({
CampaignTargetServiceLocationTarget.JSON_PROPERTY_CITY_NAME_E_N,
CampaignTargetServiceLocationTarget.JSON_PROPERTY_CITY_NAME_J_A,
CampaignTargetServiceLocationTarget.JSON_PROPERTY_EXCLUDED_TYPE,
CampaignTargetServiceLocationTarget.JSON_PROPERTY_PROVINCE_NAME_E_N,
CampaignTargetServiceLocationTarget.JSON_PROPERTY_PROVINCE_NAME_J_A,
CampaignTargetServiceLocationTarget.JSON_PROPERTY_TARGETING_STATUS
})
@JsonTypeName("CampaignTargetServiceLocationTarget")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignTargetServiceLocationTarget {
public static final String JSON_PROPERTY_CITY_NAME_E_N = "cityNameEN";
private String cityNameEN;
public static final String JSON_PROPERTY_CITY_NAME_J_A = "cityNameJA";
private String cityNameJA;
public static final String JSON_PROPERTY_EXCLUDED_TYPE = "excludedType";
private CampaignTargetServiceExcludedType excludedType;
public static final String JSON_PROPERTY_PROVINCE_NAME_E_N = "provinceNameEN";
private String provinceNameEN;
public static final String JSON_PROPERTY_PROVINCE_NAME_J_A = "provinceNameJA";
private String provinceNameJA;
public static final String JSON_PROPERTY_TARGETING_STATUS = "targetingStatus";
private CampaignTargetServiceTargetingStatus targetingStatus;
public CampaignTargetServiceLocationTarget() {
}
public CampaignTargetServiceLocationTarget cityNameEN(String cityNameEN) {
this.cityNameEN = cityNameEN;
return this;
}
/**
* <div lang=\"ja\">市区町村名(英語)です。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">City(English).<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return cityNameEN
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "市区町村名(英語)です。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 City(English).
Although this field will be returned in the response, it will be ignored on input. ")
@JsonProperty(JSON_PROPERTY_CITY_NAME_E_N)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCityNameEN() {
return cityNameEN;
}
@JsonProperty(JSON_PROPERTY_CITY_NAME_E_N)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCityNameEN(String cityNameEN) {
this.cityNameEN = cityNameEN;
}
public CampaignTargetServiceLocationTarget cityNameJA(String cityNameJA) {
this.cityNameJA = cityNameJA;
return this;
}
/**
* <div lang=\"ja\">市区町村名(日本語)です。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">City(Japanese).<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return cityNameJA
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "市区町村名(日本語)です。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 City(Japanese).
Although this field will be returned in the response, it will be ignored on input. ")
@JsonProperty(JSON_PROPERTY_CITY_NAME_J_A)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCityNameJA() {
return cityNameJA;
}
@JsonProperty(JSON_PROPERTY_CITY_NAME_J_A)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCityNameJA(String cityNameJA) {
this.cityNameJA = cityNameJA;
}
public CampaignTargetServiceLocationTarget excludedType(CampaignTargetServiceExcludedType excludedType) {
this.excludedType = excludedType;
return this;
}
/**
* Get excludedType
* @return excludedType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXCLUDED_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignTargetServiceExcludedType getExcludedType() {
return excludedType;
}
@JsonProperty(JSON_PROPERTY_EXCLUDED_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExcludedType(CampaignTargetServiceExcludedType excludedType) {
this.excludedType = excludedType;
}
public CampaignTargetServiceLocationTarget provinceNameEN(String provinceNameEN) {
this.provinceNameEN = provinceNameEN;
return this;
}
/**
* <div lang=\"ja\">都道府県名(英語)です。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Prefecture(English).<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return provinceNameEN
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "都道府県名(英語)です。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 Prefecture(English).
Although this field will be returned in the response, it will be ignored on input. ")
@JsonProperty(JSON_PROPERTY_PROVINCE_NAME_E_N)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProvinceNameEN() {
return provinceNameEN;
}
@JsonProperty(JSON_PROPERTY_PROVINCE_NAME_E_N)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProvinceNameEN(String provinceNameEN) {
this.provinceNameEN = provinceNameEN;
}
public CampaignTargetServiceLocationTarget provinceNameJA(String provinceNameJA) {
this.provinceNameJA = provinceNameJA;
return this;
}
/**
* <div lang=\"ja\">都道府県名(日本語)です。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Prefecture(Japanese).<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return provinceNameJA
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "都道府県名(日本語)です。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 Prefecture(Japanese).
Although this field will be returned in the response, it will be ignored on input. ")
@JsonProperty(JSON_PROPERTY_PROVINCE_NAME_J_A)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProvinceNameJA() {
return provinceNameJA;
}
@JsonProperty(JSON_PROPERTY_PROVINCE_NAME_J_A)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProvinceNameJA(String provinceNameJA) {
this.provinceNameJA = provinceNameJA;
}
public CampaignTargetServiceLocationTarget targetingStatus(CampaignTargetServiceTargetingStatus targetingStatus) {
this.targetingStatus = targetingStatus;
return this;
}
/**
* Get targetingStatus
* @return targetingStatus
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TARGETING_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignTargetServiceTargetingStatus getTargetingStatus() {
return targetingStatus;
}
@JsonProperty(JSON_PROPERTY_TARGETING_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTargetingStatus(CampaignTargetServiceTargetingStatus targetingStatus) {
this.targetingStatus = targetingStatus;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignTargetServiceLocationTarget campaignTargetServiceLocationTarget = (CampaignTargetServiceLocationTarget) o;
return Objects.equals(this.cityNameEN, campaignTargetServiceLocationTarget.cityNameEN) &&
Objects.equals(this.cityNameJA, campaignTargetServiceLocationTarget.cityNameJA) &&
Objects.equals(this.excludedType, campaignTargetServiceLocationTarget.excludedType) &&
Objects.equals(this.provinceNameEN, campaignTargetServiceLocationTarget.provinceNameEN) &&
Objects.equals(this.provinceNameJA, campaignTargetServiceLocationTarget.provinceNameJA) &&
Objects.equals(this.targetingStatus, campaignTargetServiceLocationTarget.targetingStatus);
}
@Override
public int hashCode() {
return Objects.hash(cityNameEN, cityNameJA, excludedType, provinceNameEN, provinceNameJA, targetingStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignTargetServiceLocationTarget {\n");
sb.append(" cityNameEN: ").append(toIndentedString(cityNameEN)).append("\n");
sb.append(" cityNameJA: ").append(toIndentedString(cityNameJA)).append("\n");
sb.append(" excludedType: ").append(toIndentedString(excludedType)).append("\n");
sb.append(" provinceNameEN: ").append(toIndentedString(provinceNameEN)).append("\n");
sb.append(" provinceNameJA: ").append(toIndentedString(provinceNameJA)).append("\n");
sb.append(" targetingStatus: ").append(toIndentedString(targetingStatus)).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 ");
}
}