jp.co.yahoo.adssearchapi.v12.model.AccountServicePage 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: v12
*
*
* 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.v12.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.v12.model.AccountServiceValue;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">AccountServicePageオブジェクトは、取得されるアカウントに関するエントリーを表します。</div> <div lang=\"en\">Account entry information.</div>
*/
@ApiModel(description = "AccountServicePageオブジェクトは、取得されるアカウントに関するエントリーを表します。 Account entry information. ")
@JsonPropertyOrder({
AccountServicePage.JSON_PROPERTY_AUTHORIZATION_BUSINESS_ID,
AccountServicePage.JSON_PROPERTY_TOTAL_NUM_ENTRIES,
AccountServicePage.JSON_PROPERTY_VALUES
})
@JsonTypeName("AccountServicePage")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AccountServicePage {
public static final String JSON_PROPERTY_AUTHORIZATION_BUSINESS_ID = "authorizationBusinessId";
private String authorizationBusinessId;
public static final String JSON_PROPERTY_TOTAL_NUM_ENTRIES = "totalNumEntries";
private Integer totalNumEntries;
public static final String JSON_PROPERTY_VALUES = "values";
private List values = null;
public AccountServicePage() {
}
public AccountServicePage authorizationBusinessId(String authorizationBusinessId) {
this.authorizationBusinessId = authorizationBusinessId;
return this;
}
/**
* <div lang=\"ja\">アプリケーションによるYahoo!広告へのアクセスを認可したYahoo! JAPANビジネスIDです。</div> <div lang=\"en\">Yahoo! JAPAN Business ID that authorized access to Yahoo! JAPAN Ads via application.</div>
* @return authorizationBusinessId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "アプリケーションによるYahoo!広告へのアクセスを認可したYahoo! JAPANビジネスIDです。 Yahoo! JAPAN Business ID that authorized access to Yahoo! JAPAN Ads via application. ")
@JsonProperty(JSON_PROPERTY_AUTHORIZATION_BUSINESS_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAuthorizationBusinessId() {
return authorizationBusinessId;
}
@JsonProperty(JSON_PROPERTY_AUTHORIZATION_BUSINESS_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAuthorizationBusinessId(String authorizationBusinessId) {
this.authorizationBusinessId = authorizationBusinessId;
}
public AccountServicePage totalNumEntries(Integer totalNumEntries) {
this.totalNumEntries = totalNumEntries;
return this;
}
/**
* <div lang=\"ja\">取得される項目の総件数です。</div> <div lang=\"en\">Total number of entries.</div>
* @return totalNumEntries
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "取得される項目の総件数です。 Total number of entries. ")
@JsonProperty(JSON_PROPERTY_TOTAL_NUM_ENTRIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getTotalNumEntries() {
return totalNumEntries;
}
@JsonProperty(JSON_PROPERTY_TOTAL_NUM_ENTRIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTotalNumEntries(Integer totalNumEntries) {
this.totalNumEntries = totalNumEntries;
}
public AccountServicePage values(List values) {
this.values = values;
return this;
}
public AccountServicePage addValuesItem(AccountServiceValue valuesItem) {
if (this.values == null) {
this.values = new ArrayList<>();
}
this.values.add(valuesItem);
return this;
}
/**
* Get values
* @return values
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getValues() {
return values;
}
@JsonProperty(JSON_PROPERTY_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setValues(List values) {
this.values = values;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountServicePage accountServicePage = (AccountServicePage) o;
return Objects.equals(this.authorizationBusinessId, accountServicePage.authorizationBusinessId) &&
Objects.equals(this.totalNumEntries, accountServicePage.totalNumEntries) &&
Objects.equals(this.values, accountServicePage.values);
}
@Override
public int hashCode() {
return Objects.hash(authorizationBusinessId, totalNumEntries, values);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountServicePage {\n");
sb.append(" authorizationBusinessId: ").append(toIndentedString(authorizationBusinessId)).append("\n");
sb.append(" totalNumEntries: ").append(toIndentedString(totalNumEntries)).append("\n");
sb.append(" values: ").append(toIndentedString(values)).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 ");
}
}