jp.co.yahoo.adssearchapi.v12.model.CampaignBudget 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: 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CampaignBudgetオブジェクトは、共有予算の情報を格納します。</div> <div lang=\"en\">CampaignBudget object contains the information of CampaignBudget.</div>
*/
@ApiModel(description = "CampaignBudgetオブジェクトは、共有予算の情報を格納します。 CampaignBudget object contains the information of CampaignBudget. ")
@JsonPropertyOrder({
CampaignBudget.JSON_PROPERTY_ACCOUNT_ID,
CampaignBudget.JSON_PROPERTY_CAMPAIGN_BUDGET_ID,
CampaignBudget.JSON_PROPERTY_CAMPAIGN_BUDGET_NAME,
CampaignBudget.JSON_PROPERTY_AMOUNT
})
@JsonTypeName("CampaignBudget")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignBudget {
public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId";
private Long accountId;
public static final String JSON_PROPERTY_CAMPAIGN_BUDGET_ID = "campaignBudgetId";
private Long campaignBudgetId;
public static final String JSON_PROPERTY_CAMPAIGN_BUDGET_NAME = "campaignBudgetName";
private String campaignBudgetName;
public static final String JSON_PROPERTY_AMOUNT = "amount";
private Long amount;
public CampaignBudget() {
}
public CampaignBudget accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* <div lang=\"ja\">アカウントIDです。<br> このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。</div> <div lang=\"en\">Account ID.<br> Although this field will be returned in the response, it will be ignored on input.</div>
* @return accountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "アカウントIDです。
このフィールドは、レスポンスの際に返却されますが、リクエストの際には無視されます。 Account ID.
Although this field will be returned in the response, it will be ignored on input. ")
@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 CampaignBudget campaignBudgetId(Long campaignBudgetId) {
this.campaignBudgetId = campaignBudgetId;
return this;
}
/**
* <div lang=\"ja\">共有予算IDです。<br> このフィールドは、SETおよびREMOVE時に必須となり、ADD時に無視されます。</div> <div lang=\"en\">CampaignBudget ID.<br>This field is required in SET and REMOVE operation, and will be ignored in ADD operation.</div>
* @return campaignBudgetId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "共有予算IDです。
このフィールドは、SETおよびREMOVE時に必須となり、ADD時に無視されます。 CampaignBudget ID.
This field is required in SET and REMOVE operation, and will be ignored in ADD operation. ")
@JsonProperty(JSON_PROPERTY_CAMPAIGN_BUDGET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getCampaignBudgetId() {
return campaignBudgetId;
}
@JsonProperty(JSON_PROPERTY_CAMPAIGN_BUDGET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCampaignBudgetId(Long campaignBudgetId) {
this.campaignBudgetId = campaignBudgetId;
}
public CampaignBudget campaignBudgetName(String campaignBudgetName) {
this.campaignBudgetName = campaignBudgetName;
return this;
}
/**
* <div lang=\"ja\">共有予算名です。<br>このフィールドは、ADD時に必須となり、SET時に省略可能となります。</div> <div lang=\"en\">CampaignBudget name.<br>This field is required in ADD operation, and will be optional in SET operation.</div>
* @return campaignBudgetName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "共有予算名です。
このフィールドは、ADD時に必須となり、SET時に省略可能となります。 CampaignBudget name.
This field is required in ADD operation, and will be optional in SET operation. ")
@JsonProperty(JSON_PROPERTY_CAMPAIGN_BUDGET_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCampaignBudgetName() {
return campaignBudgetName;
}
@JsonProperty(JSON_PROPERTY_CAMPAIGN_BUDGET_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCampaignBudgetName(String campaignBudgetName) {
this.campaignBudgetName = campaignBudgetName;
}
public CampaignBudget amount(Long amount) {
this.amount = amount;
return this;
}
/**
* <div lang=\"ja\">共有予算の金額です。<br> このフィールドは、ADD時は必須となり、SET時は省略可能となります。</div> <div lang=\"en\">Amount of budget of Campaign.<br> This field is required in ADD operation, and is optional in SET operation.</div>
* @return amount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "共有予算の金額です。
このフィールドは、ADD時は必須となり、SET時は省略可能となります。 Amount of budget of Campaign.
This field is required in ADD operation, and is optional in SET operation. ")
@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;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignBudget campaignBudget = (CampaignBudget) o;
return Objects.equals(this.accountId, campaignBudget.accountId) &&
Objects.equals(this.campaignBudgetId, campaignBudget.campaignBudgetId) &&
Objects.equals(this.campaignBudgetName, campaignBudget.campaignBudgetName) &&
Objects.equals(this.amount, campaignBudget.amount);
}
@Override
public int hashCode() {
return Objects.hash(accountId, campaignBudgetId, campaignBudgetName, amount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignBudget {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" campaignBudgetId: ").append(toIndentedString(campaignBudgetId)).append("\n");
sb.append(" campaignBudgetName: ").append(toIndentedString(campaignBudgetName)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).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 ");
}
}