All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.co.yahoo.adssearchapi.v13.model.Error Maven / Gradle / Ivy

There is a newer version: 8.1.1-spring5
Show 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.
OpenAPI Specification
Best Practice
Best Practice
* * The version of the OpenAPI document: v13 * * * 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.v13.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.v13.model.ErrorDetail; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** * <div lang=\"ja\">Errorオブジェクトは、エラー内容を表します。</div><div lang=\"en\">Error information.</div> */ @ApiModel(description = "
Errorオブジェクトは、エラー内容を表します。
Error information.
") @JsonPropertyOrder({ Error.JSON_PROPERTY_CODE, Error.JSON_PROPERTY_MESSAGE, Error.JSON_PROPERTY_DETAILS }) @JsonTypeName("Error") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Error { public static final String JSON_PROPERTY_CODE = "code"; private String code; public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; public static final String JSON_PROPERTY_DETAILS = "details"; private List details = null; public Error() { } public Error code(String code) { this.code = code; return this; } /** * <div lang=\"ja\">エラーコードです。</div><div lang=\"en\">The error code.</div> * @return code **/ @javax.annotation.Nullable @ApiModelProperty(value = "
エラーコードです。
The error code.
") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getCode() { return code; } @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(String code) { this.code = code; } public Error message(String message) { this.message = message; return this; } /** * <div lang=\"ja\">エラーメッセージです。</div><div lang=\"en\">A simple string representation of the error and reason.</div> * @return message **/ @javax.annotation.Nullable @ApiModelProperty(value = "
エラーメッセージです。
A simple string representation of the error and reason.
") @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getMessage() { return message; } @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } public Error details(List details) { this.details = details; return this; } public Error addDetailsItem(ErrorDetail detailsItem) { if (this.details == null) { this.details = new ArrayList<>(); } this.details.add(detailsItem); return this; } /** * Get details * @return details **/ @javax.annotation.Nullable @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List getDetails() { return details; } @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDetails(List details) { this.details = details; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Error error = (Error) o; return Objects.equals(this.code, error.code) && Objects.equals(this.message, error.message) && Objects.equals(this.details, error.details); } @Override public int hashCode() { return Objects.hash(code, message, details); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Error {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).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 "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy