All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.azurestackhci.outputs.VirtualHardDiskStatusResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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