
com.blazebit.expression.azure.subscription.model.ErrorResponse2 Maven / Gradle / Ivy
/*
* SubscriptionClient
* All resource groups and resources exist within subscriptions. These operation enable you get information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure AD) for your organization.
*
* The version of the OpenAPI document: 2022-12-01
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.blazebit.expression.azure.subscription.model;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.blazebit.expression.azure.subscription.model.ErrorAdditionalInfo2;
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 java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.blazebit.expression.azure.invoker.JSON;
/**
* Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)
*/
@JsonPropertyOrder({
ErrorResponse2.JSON_PROPERTY_CODE,
ErrorResponse2.JSON_PROPERTY_MESSAGE,
ErrorResponse2.JSON_PROPERTY_TARGET,
ErrorResponse2.JSON_PROPERTY_DETAILS,
ErrorResponse2.JSON_PROPERTY_ADDITIONAL_INFO
})
@JsonTypeName("ErrorResponse_2")
@com.blazebit.domain.declarative.DomainType
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-12-27T17:30:38.203241700+01:00[Europe/Berlin]", comments = "Generator version: 7.5.0")
public class ErrorResponse2 {
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_TARGET = "target";
private String target;
public static final String JSON_PROPERTY_DETAILS = "details";
private List details = new ArrayList<>();
public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo";
private List additionalInfo = new ArrayList<>();
public ErrorResponse2() {
}
@JsonCreator
public ErrorResponse2(
@JsonProperty(JSON_PROPERTY_CODE) String code,
@JsonProperty(JSON_PROPERTY_MESSAGE) String message,
@JsonProperty(JSON_PROPERTY_TARGET) String target,
@JsonProperty(JSON_PROPERTY_DETAILS) List details,
@JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO) List additionalInfo
) {
this();
this.code = code;
this.message = message;
this.target = target;
this.details = details;
this.additionalInfo = additionalInfo;
}
/**
* The error code.
* @return code
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCode() {
return code;
}
/**
* The error message.
* @return message
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMessage() {
return message;
}
/**
* The error target.
* @return target
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TARGET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getTarget() {
return target;
}
/**
* The error details.
* @return details
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DETAILS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getDetails() {
return details;
}
/**
* The error additional info.
* @return additionalInfo
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ADDITIONAL_INFO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getAdditionalInfo() {
return additionalInfo;
}
/**
* Return true if this ErrorResponse_2 object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ErrorResponse2 errorResponse2 = (ErrorResponse2) o;
return Objects.equals(this.code, errorResponse2.code) &&
Objects.equals(this.message, errorResponse2.message) &&
Objects.equals(this.target, errorResponse2.target) &&
Objects.equals(this.details, errorResponse2.details) &&
Objects.equals(this.additionalInfo, errorResponse2.additionalInfo);
}
@Override
public int hashCode() {
return Objects.hash(code, message, target, details, additionalInfo);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ErrorResponse2 {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" target: ").append(toIndentedString(target)).append("\n");
sb.append(" details: ").append(toIndentedString(details)).append("\n");
sb.append(" additionalInfo: ").append(toIndentedString(additionalInfo)).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 - 2025 Weber Informatics LLC | Privacy Policy