jp.co.yahoo.adssearchapi.v12.model.CampaignServiceValue 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 java.util.ArrayList;
import java.util.List;
import jp.co.yahoo.adssearchapi.v12.model.Campaign;
import jp.co.yahoo.adssearchapi.v12.model.Error;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* <div lang=\"ja\">CampaignServiceValueオブジェクトは、操作結果を含むキャンペーンの情報を表します。</div> <div lang=\"en\">CampaignServiceValue object is campaign information including its operation results.</div>
*/
@ApiModel(description = "CampaignServiceValueオブジェクトは、操作結果を含むキャンペーンの情報を表します。 CampaignServiceValue object is campaign information including its operation results. ")
@JsonPropertyOrder({
CampaignServiceValue.JSON_PROPERTY_CAMPAIGN,
CampaignServiceValue.JSON_PROPERTY_ERRORS,
CampaignServiceValue.JSON_PROPERTY_OPERATION_SUCCEEDED
})
@JsonTypeName("CampaignServiceValue")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignServiceValue {
public static final String JSON_PROPERTY_CAMPAIGN = "campaign";
private Campaign campaign;
public static final String JSON_PROPERTY_ERRORS = "errors";
private List errors = null;
public static final String JSON_PROPERTY_OPERATION_SUCCEEDED = "operationSucceeded";
private Boolean operationSucceeded;
public CampaignServiceValue() {
}
public CampaignServiceValue campaign(Campaign campaign) {
this.campaign = campaign;
return this;
}
/**
* Get campaign
* @return campaign
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAMPAIGN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Campaign getCampaign() {
return campaign;
}
@JsonProperty(JSON_PROPERTY_CAMPAIGN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCampaign(Campaign campaign) {
this.campaign = campaign;
}
public CampaignServiceValue errors(List errors) {
this.errors = errors;
return this;
}
public CampaignServiceValue addErrorsItem(Error errorsItem) {
if (this.errors == null) {
this.errors = new ArrayList<>();
}
this.errors.add(errorsItem);
return this;
}
/**
* Get errors
* @return errors
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ERRORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getErrors() {
return errors;
}
@JsonProperty(JSON_PROPERTY_ERRORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setErrors(List errors) {
this.errors = errors;
}
public CampaignServiceValue operationSucceeded(Boolean operationSucceeded) {
this.operationSucceeded = operationSucceeded;
return this;
}
/**
* <div lang=\"ja\">処理結果を表示します。</div> <div lang=\"en\">Result of process.</div>
* @return operationSucceeded
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "処理結果を表示します。 Result of process. ")
@JsonProperty(JSON_PROPERTY_OPERATION_SUCCEEDED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getOperationSucceeded() {
return operationSucceeded;
}
@JsonProperty(JSON_PROPERTY_OPERATION_SUCCEEDED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setOperationSucceeded(Boolean operationSucceeded) {
this.operationSucceeded = operationSucceeded;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CampaignServiceValue campaignServiceValue = (CampaignServiceValue) o;
return Objects.equals(this.campaign, campaignServiceValue.campaign) &&
Objects.equals(this.errors, campaignServiceValue.errors) &&
Objects.equals(this.operationSucceeded, campaignServiceValue.operationSucceeded);
}
@Override
public int hashCode() {
return Objects.hash(campaign, errors, operationSucceeded);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CampaignServiceValue {\n");
sb.append(" campaign: ").append(toIndentedString(campaign)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" operationSucceeded: ").append(toIndentedString(operationSucceeded)).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 ");
}
}