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

com.pulumi.azurenative.containerstorage.outputs.AzureDiskResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.containerstorage.outputs;

import com.pulumi.azurenative.containerstorage.outputs.DiskResponse;
import com.pulumi.azurenative.containerstorage.outputs.EncryptionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AzureDiskResponse {
    /**
     * @return Only required if individual disk selection is desired. Path to disk, e.g. <nodename>:/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     * 
     */
    private @Nullable List disks;
    /**
     * @return Encryption specifies the encryption configuration for the Azure Disk pool
     * 
     */
    private @Nullable EncryptionResponse encryption;
    /**
     * @return Managed resource group for the pool.
     * 
     */
    private String resourceGroup;
    /**
     * @return Sku name
     * 
     */
    private @Nullable String skuName;

    private AzureDiskResponse() {}
    /**
     * @return Only required if individual disk selection is desired. Path to disk, e.g. <nodename>:/dev/sda or WWN. Supports specifying multiple disks (same syntax as tags).
     * 
     */
    public List disks() {
        return this.disks == null ? List.of() : this.disks;
    }
    /**
     * @return Encryption specifies the encryption configuration for the Azure Disk pool
     * 
     */
    public Optional encryption() {
        return Optional.ofNullable(this.encryption);
    }
    /**
     * @return Managed resource group for the pool.
     * 
     */
    public String resourceGroup() {
        return this.resourceGroup;
    }
    /**
     * @return Sku name
     * 
     */
    public Optional skuName() {
        return Optional.ofNullable(this.skuName);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(AzureDiskResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List disks;
        private @Nullable EncryptionResponse encryption;
        private String resourceGroup;
        private @Nullable String skuName;
        public Builder() {}
        public Builder(AzureDiskResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.disks = defaults.disks;
    	      this.encryption = defaults.encryption;
    	      this.resourceGroup = defaults.resourceGroup;
    	      this.skuName = defaults.skuName;
        }

        @CustomType.Setter
        public Builder disks(@Nullable List disks) {

            this.disks = disks;
            return this;
        }
        public Builder disks(DiskResponse... disks) {
            return disks(List.of(disks));
        }
        @CustomType.Setter
        public Builder encryption(@Nullable EncryptionResponse encryption) {

            this.encryption = encryption;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGroup(String resourceGroup) {
            if (resourceGroup == null) {
              throw new MissingRequiredPropertyException("AzureDiskResponse", "resourceGroup");
            }
            this.resourceGroup = resourceGroup;
            return this;
        }
        @CustomType.Setter
        public Builder skuName(@Nullable String skuName) {

            this.skuName = skuName;
            return this;
        }
        public AzureDiskResponse build() {
            final var _resultValue = new AzureDiskResponse();
            _resultValue.disks = disks;
            _resultValue.encryption = encryption;
            _resultValue.resourceGroup = resourceGroup;
            _resultValue.skuName = skuName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy