jp.co.yahoo.adssearchapi.v13.model.AdGroupWebpageServiceWebpageParameter 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
The newest version!
/*
* 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.AdGroupWebpageServiceWebpageCondition;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AdGroupWebpageServiceWebpageParameterオブジェクトは、配信/除外設定するWebpageの条件リストを保持します。 条件リストはAND条件で適用されます。<br> このフィールドは、ADD時は必須となり、SET時は無視されます。</div> <div lang=\"en\">AdGroupWebpageServiceWebpageParameter contains the rule list of webpage to be allowed or excluded. The rule list is applied in the AND condition.<br> This field is required in ADD operation, and will be ignored in SET operation.</div>
*/
@ApiModel(description = "AdGroupWebpageServiceWebpageParameterオブジェクトは、配信/除外設定するWebpageの条件リストを保持します。 条件リストはAND条件で適用されます。
このフィールドは、ADD時は必須となり、SET時は無視されます。 AdGroupWebpageServiceWebpageParameter contains the rule list of webpage to be allowed or excluded. The rule list is applied in the AND condition.
This field is required in ADD operation, and will be ignored in SET operation. ")
@JsonPropertyOrder({
AdGroupWebpageServiceWebpageParameter.JSON_PROPERTY_CONDITIONS
})
@JsonTypeName("AdGroupWebpageServiceWebpageParameter")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdGroupWebpageServiceWebpageParameter {
public static final String JSON_PROPERTY_CONDITIONS = "conditions";
private List conditions = null;
public AdGroupWebpageServiceWebpageParameter() {
}
public AdGroupWebpageServiceWebpageParameter conditions(List conditions) {
this.conditions = conditions;
return this;
}
public AdGroupWebpageServiceWebpageParameter addConditionsItem(AdGroupWebpageServiceWebpageCondition conditionsItem) {
if (this.conditions == null) {
this.conditions = new ArrayList<>();
}
this.conditions.add(conditionsItem);
return this;
}
/**
* Get conditions
* @return conditions
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CONDITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getConditions() {
return conditions;
}
@JsonProperty(JSON_PROPERTY_CONDITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setConditions(List conditions) {
this.conditions = conditions;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AdGroupWebpageServiceWebpageParameter adGroupWebpageServiceWebpageParameter = (AdGroupWebpageServiceWebpageParameter) o;
return Objects.equals(this.conditions, adGroupWebpageServiceWebpageParameter.conditions);
}
@Override
public int hashCode() {
return Objects.hash(conditions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdGroupWebpageServiceWebpageParameter {\n");
sb.append(" conditions: ").append(toIndentedString(conditions)).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 ");
}
}