jp.co.yahoo.adssearchapi.v13.model.RetargetingListServiceRuleGroup 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 java.util.ArrayList;
import java.util.List;
import jp.co.yahoo.adssearchapi.v13.model.RetargetingListServiceRuleItem;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">RetargetingListServiceRuleGroupは、URL/LABELのルールをグループ化した情報を保持するオブジェクトです。<br> ADDおよびSET時に、このフィールドは省略可能となります。<br> isAllVisitorがTRUEである場合、ADDおよびSET時に必須となります。<br> ※SET時、isAllVisitorRule = TRUEを指定してリクエストすると、このフィールドは無視されます。<br> ruleBaseTargetList.isDateSpecificRule = TRUEの場合には、このフィールドは変更出来ません。</div> <div lang=\"en\">RetargetingListServiceRuleGroup is an object that holds grouped URL/LABEL rules.<br> This field is optional in ADD and SET operation.<br> If isAllVisitor is TRUE, this field is required in ADD and SET operation.<br> *In SET operation, if isAllVisitorRule = TRUE, this field is ignored on request.<br> If ruleBaseTargetList.isDateSpecificRule = TRUE, it is can not change.</div>
*/
@ApiModel(description = "RetargetingListServiceRuleGroupは、URL/LABELのルールをグループ化した情報を保持するオブジェクトです。
ADDおよびSET時に、このフィールドは省略可能となります。
isAllVisitorがTRUEである場合、ADDおよびSET時に必須となります。
※SET時、isAllVisitorRule = TRUEを指定してリクエストすると、このフィールドは無視されます。
ruleBaseTargetList.isDateSpecificRule = TRUEの場合には、このフィールドは変更出来ません。 RetargetingListServiceRuleGroup is an object that holds grouped URL/LABEL rules.
This field is optional in ADD and SET operation.
If isAllVisitor is TRUE, this field is required in ADD and SET operation.
*In SET operation, if isAllVisitorRule = TRUE, this field is ignored on request.
If ruleBaseTargetList.isDateSpecificRule = TRUE, it is can not change. ")
@JsonPropertyOrder({
RetargetingListServiceRuleGroup.JSON_PROPERTY_RULE_ITEMS
})
@JsonTypeName("RetargetingListServiceRuleGroup")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RetargetingListServiceRuleGroup {
public static final String JSON_PROPERTY_RULE_ITEMS = "ruleItems";
private List ruleItems = null;
public RetargetingListServiceRuleGroup() {
}
public RetargetingListServiceRuleGroup ruleItems(List ruleItems) {
this.ruleItems = ruleItems;
return this;
}
public RetargetingListServiceRuleGroup addRuleItemsItem(RetargetingListServiceRuleItem ruleItemsItem) {
if (this.ruleItems == null) {
this.ruleItems = new ArrayList<>();
}
this.ruleItems.add(ruleItemsItem);
return this;
}
/**
* Get ruleItems
* @return ruleItems
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RULE_ITEMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getRuleItems() {
return ruleItems;
}
@JsonProperty(JSON_PROPERTY_RULE_ITEMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRuleItems(List ruleItems) {
this.ruleItems = ruleItems;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RetargetingListServiceRuleGroup retargetingListServiceRuleGroup = (RetargetingListServiceRuleGroup) o;
return Objects.equals(this.ruleItems, retargetingListServiceRuleGroup.ruleItems);
}
@Override
public int hashCode() {
return Objects.hash(ruleItems);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetargetingListServiceRuleGroup {\n");
sb.append(" ruleItems: ").append(toIndentedString(ruleItems)).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 ");
}
}