jp.co.yahoo.adssearchapi.v14.model.SharedCriterion 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: 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.SharedCriterionServiceKeywordMatchType;
import jp.co.yahoo.adssearchapi.v14.model.SharedCriterionServiceUse;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">SharedCriterionオブジェクトは、対象外キーワード情報を保持します。</div> <div lang=\"en\">SharedCriterion object holds negative keyword information.</div>
*/
@ApiModel(description = "SharedCriterionオブジェクトは、対象外キーワード情報を保持します。 SharedCriterion object holds negative keyword information. ")
@JsonPropertyOrder({
SharedCriterion.JSON_PROPERTY_ACCOUNT_ID,
SharedCriterion.JSON_PROPERTY_CRITERION_ID,
SharedCriterion.JSON_PROPERTY_KEYWORD_MATCH_TYPE,
SharedCriterion.JSON_PROPERTY_SHARED_LIST_ID,
SharedCriterion.JSON_PROPERTY_TEXT,
SharedCriterion.JSON_PROPERTY_USE
})
@JsonTypeName("SharedCriterion")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SharedCriterion {
public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
private Long accountId;
public static final String JSON_PROPERTY_CRITERION_ID = "criterionId";
private Long criterionId;
public static final String JSON_PROPERTY_KEYWORD_MATCH_TYPE = "keywordMatchType";
private SharedCriterionServiceKeywordMatchType keywordMatchType;
public static final String JSON_PROPERTY_SHARED_LIST_ID = "sharedListId";
private Long sharedListId;
public static final String JSON_PROPERTY_TEXT = "text";
private String text;
public static final String JSON_PROPERTY_USE = "use";
private SharedCriterionServiceUse use;
public SharedCriterion() {
}
public SharedCriterion accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* <div lang=\"ja\">アカウントIDです。</div> <div lang=\"en\">Account ID.</div>
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "アカウントIDです。 Account ID. ")
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAccountId() {
return accountId;
}
@JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
public SharedCriterion criterionId(Long criterionId) {
this.criterionId = criterionId;
return this;
}
/**
* <div lang=\"ja\">クライテリオンIDです。<br> REMOVE時、このフィールドは必須となります。</div> <div lang=\"en\">Criterion ID.<br> This field is required in REMOVE operation.</div>
* @return criterionId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "クライテリオンIDです。
REMOVE時、このフィールドは必須となります。 Criterion ID.
This field is required in REMOVE operation. ")
@JsonProperty(JSON_PROPERTY_CRITERION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCriterionId() {
return criterionId;
}
@JsonProperty(JSON_PROPERTY_CRITERION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCriterionId(Long criterionId) {
this.criterionId = criterionId;
}
public SharedCriterion keywordMatchType(SharedCriterionServiceKeywordMatchType keywordMatchType) {
this.keywordMatchType = keywordMatchType;
return this;
}
/**
* Get keywordMatchType
* @return keywordMatchType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_KEYWORD_MATCH_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SharedCriterionServiceKeywordMatchType getKeywordMatchType() {
return keywordMatchType;
}
@JsonProperty(JSON_PROPERTY_KEYWORD_MATCH_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setKeywordMatchType(SharedCriterionServiceKeywordMatchType keywordMatchType) {
this.keywordMatchType = keywordMatchType;
}
public SharedCriterion sharedListId(Long sharedListId) {
this.sharedListId = sharedListId;
return this;
}
/**
* <div lang=\"ja\">アカウント共有リストIDです。<br> ADDおよびREMOVE時、このフィールドは必須となります。</div> <div lang=\"en\">Account shared list ID.<br> This field is required in ADD and REMOVE operation.</div>
* @return sharedListId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "アカウント共有リストIDです。
ADDおよびREMOVE時、このフィールドは必須となります。 Account shared list ID.
This field is required in ADD and REMOVE operation. ")
@JsonProperty(JSON_PROPERTY_SHARED_LIST_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getSharedListId() {
return sharedListId;
}
@JsonProperty(JSON_PROPERTY_SHARED_LIST_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSharedListId(Long sharedListId) {
this.sharedListId = sharedListId;
}
public SharedCriterion text(String text) {
this.text = text;
return this;
}
/**
* <div lang=\"ja\">キーワードです。<br> ADD時、このフィールドは必須となります。</div> <div lang=\"en\">Keyword.<br>This field is required in ADD operation.</div>
* @return text
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "キーワードです。
ADD時、このフィールドは必須となります。 Keyword.
This field is required in ADD operation. ")
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getText() {
return text;
}
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setText(String text) {
this.text = text;
}
public SharedCriterion use(SharedCriterionServiceUse use) {
this.use = use;
return this;
}
/**
* Get use
* @return use
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_USE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SharedCriterionServiceUse getUse() {
return use;
}
@JsonProperty(JSON_PROPERTY_USE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setUse(SharedCriterionServiceUse use) {
this.use = use;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SharedCriterion sharedCriterion = (SharedCriterion) o;
return Objects.equals(this.accountId, sharedCriterion.accountId) &&
Objects.equals(this.criterionId, sharedCriterion.criterionId) &&
Objects.equals(this.keywordMatchType, sharedCriterion.keywordMatchType) &&
Objects.equals(this.sharedListId, sharedCriterion.sharedListId) &&
Objects.equals(this.text, sharedCriterion.text) &&
Objects.equals(this.use, sharedCriterion.use);
}
@Override
public int hashCode() {
return Objects.hash(accountId, criterionId, keywordMatchType, sharedListId, text, use);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SharedCriterion {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" criterionId: ").append(toIndentedString(criterionId)).append("\n");
sb.append(" keywordMatchType: ").append(toIndentedString(keywordMatchType)).append("\n");
sb.append(" sharedListId: ").append(toIndentedString(sharedListId)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).append("\n");
sb.append(" use: ").append(toIndentedString(use)).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 ");
}
}