jp.co.yahoo.adssearchapi.v14.model.CampaignWebpageServiceWebpageCondition 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.CampaignWebpageServiceWebpageConditionType;
import jp.co.yahoo.adssearchapi.v14.model.CampaignWebpageServiceWebpageOperator;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CampaignWebpageServiceWebpageConditionオブジェクトは、Webpageの条件を保持します。<br> このフィールドは、ADD時に必須となり、REMOVE時に無視されます。</div> <div lang=\"en\">CampaignWebpageServiceWebpageCondition object contains the rules of webpage.<br> This field is required in ADD operation, and will be ignored in REMOVE operation.</div>
*/
@ApiModel(description = "CampaignWebpageServiceWebpageConditionオブジェクトは、Webpageの条件を保持します。
このフィールドは、ADD時に必須となり、REMOVE時に無視されます。 CampaignWebpageServiceWebpageCondition object contains the rules of webpage.
This field is required in ADD operation, and will be ignored in REMOVE operation. ")
@JsonPropertyOrder({
CampaignWebpageServiceWebpageCondition.JSON_PROPERTY_ARGUMENT,
CampaignWebpageServiceWebpageCondition.JSON_PROPERTY_TYPE,
CampaignWebpageServiceWebpageCondition.JSON_PROPERTY_OPERATOR
})
@JsonTypeName("CampaignWebpageServiceWebpageCondition")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignWebpageServiceWebpageCondition {
public static final String JSON_PROPERTY_ARGUMENT = "argument";
private String argument;
public static final String JSON_PROPERTY_TYPE = "type";
private CampaignWebpageServiceWebpageConditionType type;
public static final String JSON_PROPERTY_OPERATOR = "operator";
private CampaignWebpageServiceWebpageOperator operator;
public CampaignWebpageServiceWebpageCondition() {
}
public CampaignWebpageServiceWebpageCondition argument(String argument) {
this.argument = argument;
return this;
}
/**
* <div lang=\"ja\">条件の設定値です。<br> このフィールドは、ADD時に必須となり、REMOVE時に無視されます。</div> <div lang=\"en\">Value of rule setting.<br> This field is required in ADD operation, and will be ignored in REMOVE operation.</div>
* @return argument
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "条件の設定値です。
このフィールドは、ADD時に必須となり、REMOVE時に無視されます。 Value of rule setting.
This field is required in ADD operation, and will be ignored in REMOVE operation. ")
@JsonProperty(JSON_PROPERTY_ARGUMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getArgument() {
return argument;
}
@JsonProperty(JSON_PROPERTY_ARGUMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setArgument(String argument) {
this.argument = argument;
}
public CampaignWebpageServiceWebpageCondition type(CampaignWebpageServiceWebpageConditionType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignWebpageServiceWebpageConditionType getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(CampaignWebpageServiceWebpageConditionType type) {
this.type = type;
}
public CampaignWebpageServiceWebpageCondition operator(CampaignWebpageServiceWebpageOperator operator) {
this.operator = operator;
return this;
}
/**
* Get operator
* @return operator
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OPERATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CampaignWebpageServiceWebpageOperator getOperator() {
return operator;
}
@JsonProperty(JSON_PROPERTY_OPERATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOperator(CampaignWebpageServiceWebpageOperator operator) {
this.operator = operator;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignWebpageServiceWebpageCondition campaignWebpageServiceWebpageCondition = (CampaignWebpageServiceWebpageCondition) o;
return Objects.equals(this.argument, campaignWebpageServiceWebpageCondition.argument) &&
Objects.equals(this.type, campaignWebpageServiceWebpageCondition.type) &&
Objects.equals(this.operator, campaignWebpageServiceWebpageCondition.operator);
}
@Override
public int hashCode() {
return Objects.hash(argument, type, operator);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignWebpageServiceWebpageCondition {\n");
sb.append(" argument: ").append(toIndentedString(argument)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" operator: ").append(toIndentedString(operator)).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 ");
}
}