com.pulumi.azurenative.policyinsights.outputs.ErrorDefinitionResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.policyinsights.outputs;
import com.pulumi.azurenative.policyinsights.outputs.TypedErrorInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class ErrorDefinitionResponse {
/**
* @return Additional scenario specific error details.
*
*/
private List additionalInfo;
/**
* @return Service specific error code which serves as the substatus for the HTTP error code.
*
*/
private String code;
/**
* @return Internal error details.
*
*/
private List details;
/**
* @return Description of the error.
*
*/
private String message;
/**
* @return The target of the error.
*
*/
private String target;
private ErrorDefinitionResponse() {}
/**
* @return Additional scenario specific error details.
*
*/
public List additionalInfo() {
return this.additionalInfo;
}
/**
* @return Service specific error code which serves as the substatus for the HTTP error code.
*
*/
public String code() {
return this.code;
}
/**
* @return Internal error details.
*
*/
public List details() {
return this.details;
}
/**
* @return Description of the error.
*
*/
public String message() {
return this.message;
}
/**
* @return The target of the error.
*
*/
public String target() {
return this.target;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ErrorDefinitionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List additionalInfo;
private String code;
private List details;
private String message;
private String target;
public Builder() {}
public Builder(ErrorDefinitionResponse defaults) {
Objects.requireNonNull(defaults);
this.additionalInfo = defaults.additionalInfo;
this.code = defaults.code;
this.details = defaults.details;
this.message = defaults.message;
this.target = defaults.target;
}
@CustomType.Setter
public Builder additionalInfo(List additionalInfo) {
if (additionalInfo == null) {
throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "additionalInfo");
}
this.additionalInfo = additionalInfo;
return this;
}
public Builder additionalInfo(TypedErrorInfoResponse... additionalInfo) {
return additionalInfo(List.of(additionalInfo));
}
@CustomType.Setter
public Builder code(String code) {
if (code == null) {
throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "code");
}
this.code = code;
return this;
}
@CustomType.Setter
public Builder details(List details) {
if (details == null) {
throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "details");
}
this.details = details;
return this;
}
public Builder details(ErrorDefinitionResponse... details) {
return details(List.of(details));
}
@CustomType.Setter
public Builder message(String message) {
if (message == null) {
throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "message");
}
this.message = message;
return this;
}
@CustomType.Setter
public Builder target(String target) {
if (target == null) {
throw new MissingRequiredPropertyException("ErrorDefinitionResponse", "target");
}
this.target = target;
return this;
}
public ErrorDefinitionResponse build() {
final var _resultValue = new ErrorDefinitionResponse();
_resultValue.additionalInfo = additionalInfo;
_resultValue.code = code;
_resultValue.details = details;
_resultValue.message = message;
_resultValue.target = target;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy