com.pulumi.azurenative.azurestackhci.outputs.VirtualHardDiskStatusResponse 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.azurestackhci.outputs;
import com.pulumi.azurenative.azurestackhci.outputs.VirtualHardDiskStatusResponseProvisioningStatus;
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 VirtualHardDiskStatusResponse {
/**
* @return VirtualHardDisk provisioning error code
*
*/
private @Nullable String errorCode;
/**
* @return Descriptive error message
*
*/
private @Nullable String errorMessage;
private @Nullable VirtualHardDiskStatusResponseProvisioningStatus provisioningStatus;
private VirtualHardDiskStatusResponse() {}
/**
* @return VirtualHardDisk provisioning error code
*
*/
public Optional errorCode() {
return Optional.ofNullable(this.errorCode);
}
/**
* @return Descriptive error message
*
*/
public Optional errorMessage() {
return Optional.ofNullable(this.errorMessage);
}
public Optional provisioningStatus() {
return Optional.ofNullable(this.provisioningStatus);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualHardDiskStatusResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String errorCode;
private @Nullable String errorMessage;
private @Nullable VirtualHardDiskStatusResponseProvisioningStatus provisioningStatus;
public Builder() {}
public Builder(VirtualHardDiskStatusResponse defaults) {
Objects.requireNonNull(defaults);
this.errorCode = defaults.errorCode;
this.errorMessage = defaults.errorMessage;
this.provisioningStatus = defaults.provisioningStatus;
}
@CustomType.Setter
public Builder errorCode(@Nullable String errorCode) {
this.errorCode = errorCode;
return this;
}
@CustomType.Setter
public Builder errorMessage(@Nullable String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
@CustomType.Setter
public Builder provisioningStatus(@Nullable VirtualHardDiskStatusResponseProvisioningStatus provisioningStatus) {
this.provisioningStatus = provisioningStatus;
return this;
}
public VirtualHardDiskStatusResponse build() {
final var _resultValue = new VirtualHardDiskStatusResponse();
_resultValue.errorCode = errorCode;
_resultValue.errorMessage = errorMessage;
_resultValue.provisioningStatus = provisioningStatus;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy