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

com.pulumi.azurenative.containerstorage.inputs.AzureDiskArgs 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.containerstorage.inputs;

import com.pulumi.azurenative.containerstorage.enums.AzureDiskSkuName;
import com.pulumi.azurenative.containerstorage.inputs.DiskArgs;
import com.pulumi.azurenative.containerstorage.inputs.EncryptionArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Azure Disk Pool Properties
 * 
 */
public final class AzureDiskArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureDiskArgs Empty = new AzureDiskArgs();

    /**
     * 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).
     * 
     */
    @Import(name="disks")
    private @Nullable Output> disks;

    /**
     * @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 Optional>> disks() {
        return Optional.ofNullable(this.disks);
    }

    /**
     * Encryption specifies the encryption configuration for the Azure Disk pool
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return Encryption specifies the encryption configuration for the Azure Disk pool
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * Sku name
     * 
     */
    @Import(name="skuName")
    private @Nullable Output> skuName;

    /**
     * @return Sku name
     * 
     */
    public Optional>> skuName() {
        return Optional.ofNullable(this.skuName);
    }

    private AzureDiskArgs() {}

    private AzureDiskArgs(AzureDiskArgs $) {
        this.disks = $.disks;
        this.encryption = $.encryption;
        this.skuName = $.skuName;
    }

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

    public static final class Builder {
        private AzureDiskArgs $;

        public Builder() {
            $ = new AzureDiskArgs();
        }

        public Builder(AzureDiskArgs defaults) {
            $ = new AzureDiskArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param disks 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).
         * 
         * @return builder
         * 
         */
        public Builder disks(@Nullable Output> disks) {
            $.disks = disks;
            return this;
        }

        /**
         * @param disks 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).
         * 
         * @return builder
         * 
         */
        public Builder disks(List disks) {
            return disks(Output.of(disks));
        }

        /**
         * @param disks 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).
         * 
         * @return builder
         * 
         */
        public Builder disks(DiskArgs... disks) {
            return disks(List.of(disks));
        }

        /**
         * @param encryption Encryption specifies the encryption configuration for the Azure Disk pool
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption Encryption specifies the encryption configuration for the Azure Disk pool
         * 
         * @return builder
         * 
         */
        public Builder encryption(EncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param skuName Sku name
         * 
         * @return builder
         * 
         */
        public Builder skuName(@Nullable Output> skuName) {
            $.skuName = skuName;
            return this;
        }

        /**
         * @param skuName Sku name
         * 
         * @return builder
         * 
         */
        public Builder skuName(Either skuName) {
            return skuName(Output.of(skuName));
        }

        /**
         * @param skuName Sku name
         * 
         * @return builder
         * 
         */
        public Builder skuName(String skuName) {
            return skuName(Either.ofLeft(skuName));
        }

        /**
         * @param skuName Sku name
         * 
         * @return builder
         * 
         */
        public Builder skuName(AzureDiskSkuName skuName) {
            return skuName(Either.ofRight(skuName));
        }

        public AzureDiskArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy