jp.co.yahoo.adssearchapi.v14.model.RetargetingListServiceRuleItem 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.RetargetingListServiceCustomKeyRuleItem;
import jp.co.yahoo.adssearchapi.v14.model.RetargetingListServiceRuleOperator;
import jp.co.yahoo.adssearchapi.v14.model.RetargetingListServiceRuleType;
import jp.co.yahoo.adssearchapi.v14.model.RetargetingListServiceUrlRuleItem;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">RetargetingListServiceRuleItemは、ルールの評価条件を保持するオブジェクトです。<br> このフィールドは、ADDおよびSET時に必須となります。</div> <div lang=\"en\">RetargetingListServiceRuleItem is an object that holds evaluation condition of rule.<br> This field is required in ADD and SET operation.</div>
*/
@ApiModel(description = "RetargetingListServiceRuleItemは、ルールの評価条件を保持するオブジェクトです。
このフィールドは、ADDおよびSET時に必須となります。 RetargetingListServiceRuleItem is an object that holds evaluation condition of rule.
This field is required in ADD and SET operation. ")
@JsonPropertyOrder({
RetargetingListServiceRuleItem.JSON_PROPERTY_CUSTOM_KEY_RULE_ITEM,
RetargetingListServiceRuleItem.JSON_PROPERTY_RULE_OPERATOR,
RetargetingListServiceRuleItem.JSON_PROPERTY_RULE_TYPE,
RetargetingListServiceRuleItem.JSON_PROPERTY_URL_RULE_ITEM,
RetargetingListServiceRuleItem.JSON_PROPERTY_VALUE
})
@JsonTypeName("RetargetingListServiceRuleItem")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RetargetingListServiceRuleItem {
public static final String JSON_PROPERTY_CUSTOM_KEY_RULE_ITEM = "customKeyRuleItem";
private RetargetingListServiceCustomKeyRuleItem customKeyRuleItem;
public static final String JSON_PROPERTY_RULE_OPERATOR = "ruleOperator";
private RetargetingListServiceRuleOperator ruleOperator;
public static final String JSON_PROPERTY_RULE_TYPE = "ruleType";
private RetargetingListServiceRuleType ruleType;
public static final String JSON_PROPERTY_URL_RULE_ITEM = "urlRuleItem";
private RetargetingListServiceUrlRuleItem urlRuleItem;
public static final String JSON_PROPERTY_VALUE = "value";
private String value;
public RetargetingListServiceRuleItem() {
}
public RetargetingListServiceRuleItem customKeyRuleItem(RetargetingListServiceCustomKeyRuleItem customKeyRuleItem) {
this.customKeyRuleItem = customKeyRuleItem;
return this;
}
/**
* Get customKeyRuleItem
* @return customKeyRuleItem
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CUSTOM_KEY_RULE_ITEM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RetargetingListServiceCustomKeyRuleItem getCustomKeyRuleItem() {
return customKeyRuleItem;
}
@JsonProperty(JSON_PROPERTY_CUSTOM_KEY_RULE_ITEM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCustomKeyRuleItem(RetargetingListServiceCustomKeyRuleItem customKeyRuleItem) {
this.customKeyRuleItem = customKeyRuleItem;
}
public RetargetingListServiceRuleItem ruleOperator(RetargetingListServiceRuleOperator ruleOperator) {
this.ruleOperator = ruleOperator;
return this;
}
/**
* Get ruleOperator
* @return ruleOperator
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RULE_OPERATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RetargetingListServiceRuleOperator getRuleOperator() {
return ruleOperator;
}
@JsonProperty(JSON_PROPERTY_RULE_OPERATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRuleOperator(RetargetingListServiceRuleOperator ruleOperator) {
this.ruleOperator = ruleOperator;
}
public RetargetingListServiceRuleItem ruleType(RetargetingListServiceRuleType ruleType) {
this.ruleType = ruleType;
return this;
}
/**
* Get ruleType
* @return ruleType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RULE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RetargetingListServiceRuleType getRuleType() {
return ruleType;
}
@JsonProperty(JSON_PROPERTY_RULE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRuleType(RetargetingListServiceRuleType ruleType) {
this.ruleType = ruleType;
}
public RetargetingListServiceRuleItem urlRuleItem(RetargetingListServiceUrlRuleItem urlRuleItem) {
this.urlRuleItem = urlRuleItem;
return this;
}
/**
* Get urlRuleItem
* @return urlRuleItem
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_URL_RULE_ITEM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public RetargetingListServiceUrlRuleItem getUrlRuleItem() {
return urlRuleItem;
}
@JsonProperty(JSON_PROPERTY_URL_RULE_ITEM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUrlRuleItem(RetargetingListServiceUrlRuleItem urlRuleItem) {
this.urlRuleItem = urlRuleItem;
}
public RetargetingListServiceRuleItem value(String value) {
this.value = value;
return this;
}
/**
* <div lang=\"ja\">評価値です。<br> ADDおよびSET時、このフィールドは必須となります。<br> ※括弧(())、シングルクォート(')、ダブルクォート(")、タブ(\\t)は利用できません。<br> ※250文字まで指定可能です。</div> <div lang=\"en\">Evaluation value.<br> *Cannot use: bracket, single quote, double quote, and tab.<br> *Can select up to 250 characters.<br> This field is required in ADD and SET operation.</div>
* @return value
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "評価値です。
ADDおよびSET時、このフィールドは必須となります。
※括弧(())、シングルクォート(')、ダブルクォート(")、タブ(\\t)は利用できません。
※250文字まで指定可能です。 Evaluation value.
*Cannot use: bracket, single quote, double quote, and tab.
*Can select up to 250 characters.
This field is required 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;
}
RetargetingListServiceRuleItem retargetingListServiceRuleItem = (RetargetingListServiceRuleItem) o;
return Objects.equals(this.customKeyRuleItem, retargetingListServiceRuleItem.customKeyRuleItem) &&
Objects.equals(this.ruleOperator, retargetingListServiceRuleItem.ruleOperator) &&
Objects.equals(this.ruleType, retargetingListServiceRuleItem.ruleType) &&
Objects.equals(this.urlRuleItem, retargetingListServiceRuleItem.urlRuleItem) &&
Objects.equals(this.value, retargetingListServiceRuleItem.value);
}
@Override
public int hashCode() {
return Objects.hash(customKeyRuleItem, ruleOperator, ruleType, urlRuleItem, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetargetingListServiceRuleItem {\n");
sb.append(" customKeyRuleItem: ").append(toIndentedString(customKeyRuleItem)).append("\n");
sb.append(" ruleOperator: ").append(toIndentedString(ruleOperator)).append("\n");
sb.append(" ruleType: ").append(toIndentedString(ruleType)).append("\n");
sb.append(" urlRuleItem: ").append(toIndentedString(urlRuleItem)).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 ");
}
}