jp.co.yahoo.adssearchapi.v14.model.BudgetOrder 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.BudgetOrderServiceAccountType;
import jp.co.yahoo.adssearchapi.v14.model.BudgetOrderServiceLimitChargeType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">BudgetOrderオブジェクトは、アカウント予算情報を示します。<br> </div> <div lang=\"en\">BudgetOrder object is a container for storing the account budget.<br> </div>
*/
@ApiModel(description = "BudgetOrderオブジェクトは、アカウント予算情報を示します。
BudgetOrder object is a container for storing the account budget.
")
@JsonPropertyOrder({
BudgetOrder.JSON_PROPERTY_ACCOUNT_ID,
BudgetOrder.JSON_PROPERTY_ACCOUNT_TYPE,
BudgetOrder.JSON_PROPERTY_AMOUNT,
BudgetOrder.JSON_PROPERTY_LIMIT_CHARGE_TYPE
})
@JsonTypeName("BudgetOrder")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BudgetOrder {
public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
private Long accountId;
public static final String JSON_PROPERTY_ACCOUNT_TYPE = "accountType";
private BudgetOrderServiceAccountType accountType;
public static final String JSON_PROPERTY_AMOUNT = "amount";
private Long amount;
public static final String JSON_PROPERTY_LIMIT_CHARGE_TYPE = "limitChargeType";
private BudgetOrderServiceLimitChargeType limitChargeType;
public BudgetOrder() {
}
public BudgetOrder accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* <div lang=\"ja\"> アカウントIDです。<br> SET時、このフィールドは必須となります。 </div> <div lang=\"en\"> Account ID.<br> This field is required in SET operation. </div>
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = " アカウントIDです。
SET時、このフィールドは必須となります。 Account ID.
This field is required in SET operation. ")
@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 BudgetOrder accountType(BudgetOrderServiceAccountType accountType) {
this.accountType = accountType;
return this;
}
/**
* Get accountType
* @return accountType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BudgetOrderServiceAccountType getAccountType() {
return accountType;
}
@JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAccountType(BudgetOrderServiceAccountType accountType) {
this.accountType = accountType;
}
public BudgetOrder amount(Long amount) {
this.amount = amount;
return this;
}
/**
* <div lang=\"ja\"> アカウントの広告予算金額です。<br> SET時、このフィールドは省略可能となります。 月額予算は、accountTypeが<code>INVOICE</code>の場合のみ変更可能です。 また、予算額は1000円単位で指定する必要があります。 </div> <div lang=\"en\"> Amount of budget.<br> This field is optional in SET operation. The monthly budget can be changed only when accountType is <code>INVOICE</code>. In addition, the budget amount must be specified in units of 1000 yen. </div>
* @return amount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = " アカウントの広告予算金額です。
SET時、このフィールドは省略可能となります。 月額予算は、accountTypeがINVOICE
の場合のみ変更可能です。 また、予算額は1000円単位で指定する必要があります。 Amount of budget.
This field is optional in SET operation. The monthly budget can be changed only when accountType is INVOICE
. In addition, the budget amount must be specified in units of 1000 yen. ")
@JsonProperty(JSON_PROPERTY_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAmount() {
return amount;
}
@JsonProperty(JSON_PROPERTY_AMOUNT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAmount(Long amount) {
this.amount = amount;
}
public BudgetOrder limitChargeType(BudgetOrderServiceLimitChargeType limitChargeType) {
this.limitChargeType = limitChargeType;
return this;
}
/**
* Get limitChargeType
* @return limitChargeType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LIMIT_CHARGE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BudgetOrderServiceLimitChargeType getLimitChargeType() {
return limitChargeType;
}
@JsonProperty(JSON_PROPERTY_LIMIT_CHARGE_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLimitChargeType(BudgetOrderServiceLimitChargeType limitChargeType) {
this.limitChargeType = limitChargeType;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BudgetOrder budgetOrder = (BudgetOrder) o;
return Objects.equals(this.accountId, budgetOrder.accountId) &&
Objects.equals(this.accountType, budgetOrder.accountType) &&
Objects.equals(this.amount, budgetOrder.amount) &&
Objects.equals(this.limitChargeType, budgetOrder.limitChargeType);
}
@Override
public int hashCode() {
return Objects.hash(accountId, accountType, amount, limitChargeType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BudgetOrder {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" limitChargeType: ").append(toIndentedString(limitChargeType)).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 ");
}
}