com.pulumi.azurenative.dataprotection.outputs.ProtectionStatusDetailsResponse 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.azurenative.dataprotection.outputs.UserFacingErrorResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ProtectionStatusDetailsResponse {
/**
* @return Specifies the protection status error of the resource
*
*/
private @Nullable UserFacingErrorResponse errorDetails;
/**
* @return Specifies the protection status of the resource
*
*/
private @Nullable String status;
private ProtectionStatusDetailsResponse() {}
/**
* @return Specifies the protection status error of the resource
*
*/
public Optional errorDetails() {
return Optional.ofNullable(this.errorDetails);
}
/**
* @return Specifies the protection status of the resource
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ProtectionStatusDetailsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable UserFacingErrorResponse errorDetails;
private @Nullable String status;
public Builder() {}
public Builder(ProtectionStatusDetailsResponse defaults) {
Objects.requireNonNull(defaults);
this.errorDetails = defaults.errorDetails;
this.status = defaults.status;
}
@CustomType.Setter
public Builder errorDetails(@Nullable UserFacingErrorResponse errorDetails) {
this.errorDetails = errorDetails;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public ProtectionStatusDetailsResponse build() {
final var _resultValue = new ProtectionStatusDetailsResponse();
_resultValue.errorDetails = errorDetails;
_resultValue.status = status;
return _resultValue;
}
}
}