
com.pulumi.azurenative.dataprotection.outputs.InnerErrorResponse 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.dataprotection.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class InnerErrorResponse {
/**
* @return Any Key value pairs that can be provided to the client for additional verbose information.
*
*/
private @Nullable Map additionalInfo;
/**
* @return Unique code for this error
*
*/
private @Nullable String code;
/**
* @return Child Inner Error, to allow Nesting.
*
*/
private @Nullable InnerErrorResponse embeddedInnerError;
private InnerErrorResponse() {}
/**
* @return Any Key value pairs that can be provided to the client for additional verbose information.
*
*/
public Map additionalInfo() {
return this.additionalInfo == null ? Map.of() : this.additionalInfo;
}
/**
* @return Unique code for this error
*
*/
public Optional code() {
return Optional.ofNullable(this.code);
}
/**
* @return Child Inner Error, to allow Nesting.
*
*/
public Optional embeddedInnerError() {
return Optional.ofNullable(this.embeddedInnerError);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InnerErrorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map additionalInfo;
private @Nullable String code;
private @Nullable InnerErrorResponse embeddedInnerError;
public Builder() {}
public Builder(InnerErrorResponse defaults) {
Objects.requireNonNull(defaults);
this.additionalInfo = defaults.additionalInfo;
this.code = defaults.code;
this.embeddedInnerError = defaults.embeddedInnerError;
}
@CustomType.Setter
public Builder additionalInfo(@Nullable Map additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
@CustomType.Setter
public Builder code(@Nullable String code) {
this.code = code;
return this;
}
@CustomType.Setter
public Builder embeddedInnerError(@Nullable InnerErrorResponse embeddedInnerError) {
this.embeddedInnerError = embeddedInnerError;
return this;
}
public InnerErrorResponse build() {
final var _resultValue = new InnerErrorResponse();
_resultValue.additionalInfo = additionalInfo;
_resultValue.code = code;
_resultValue.embeddedInnerError = embeddedInnerError;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy