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

com.pulumi.azure.elasticsan.VolumeGroupArgs Maven / Gradle / Ivy

// *** 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.azure.elasticsan;

import com.pulumi.azure.elasticsan.inputs.VolumeGroupEncryptionArgs;
import com.pulumi.azure.elasticsan.inputs.VolumeGroupIdentityArgs;
import com.pulumi.azure.elasticsan.inputs.VolumeGroupNetworkRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


public final class VolumeGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final VolumeGroupArgs Empty = new VolumeGroupArgs();

    /**
     * Specifies the Elastic SAN ID within which this Elastic SAN Volume Group should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="elasticSanId", required=true)
    private Output elasticSanId;

    /**
     * @return Specifies the Elastic SAN ID within which this Elastic SAN Volume Group should exist. Changing this forces a new resource to be created.
     * 
     */
    public Output elasticSanId() {
        return this.elasticSanId;
    }

    /**
     * An `encryption` block as defined below.
     * 
     * > **NOTE:** The `encryption` block can only be set when `encryption_type` is set to `EncryptionAtRestWithCustomerManagedKey`.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return An `encryption` block as defined below.
     * 
     * > **NOTE:** The `encryption` block can only be set when `encryption_type` is set to `EncryptionAtRestWithCustomerManagedKey`.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * Specifies the type of the key used to encrypt the data of the disk. Possible values are `EncryptionAtRestWithCustomerManagedKey` and `EncryptionAtRestWithPlatformKey`. Defaults to `EncryptionAtRestWithPlatformKey`.
     * 
     */
    @Import(name="encryptionType")
    private @Nullable Output encryptionType;

    /**
     * @return Specifies the type of the key used to encrypt the data of the disk. Possible values are `EncryptionAtRestWithCustomerManagedKey` and `EncryptionAtRestWithPlatformKey`. Defaults to `EncryptionAtRestWithPlatformKey`.
     * 
     */
    public Optional> encryptionType() {
        return Optional.ofNullable(this.encryptionType);
    }

    /**
     * An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Elastic SAN Volume Group.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Elastic SAN Volume Group.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Specifies the name of this Elastic SAN Volume Group. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of this Elastic SAN Volume Group. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * One or more `network_rule` blocks as defined below.
     * 
     */
    @Import(name="networkRules")
    private @Nullable Output> networkRules;

    /**
     * @return One or more `network_rule` blocks as defined below.
     * 
     */
    public Optional>> networkRules() {
        return Optional.ofNullable(this.networkRules);
    }

    /**
     * Specifies the type of the storage target. The only possible value is `Iscsi`. Defaults to `Iscsi`.
     * 
     */
    @Import(name="protocolType")
    private @Nullable Output protocolType;

    /**
     * @return Specifies the type of the storage target. The only possible value is `Iscsi`. Defaults to `Iscsi`.
     * 
     */
    public Optional> protocolType() {
        return Optional.ofNullable(this.protocolType);
    }

    private VolumeGroupArgs() {}

    private VolumeGroupArgs(VolumeGroupArgs $) {
        this.elasticSanId = $.elasticSanId;
        this.encryption = $.encryption;
        this.encryptionType = $.encryptionType;
        this.identity = $.identity;
        this.name = $.name;
        this.networkRules = $.networkRules;
        this.protocolType = $.protocolType;
    }

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

    public static final class Builder {
        private VolumeGroupArgs $;

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

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

        /**
         * @param elasticSanId Specifies the Elastic SAN ID within which this Elastic SAN Volume Group should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder elasticSanId(Output elasticSanId) {
            $.elasticSanId = elasticSanId;
            return this;
        }

        /**
         * @param elasticSanId Specifies the Elastic SAN ID within which this Elastic SAN Volume Group should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder elasticSanId(String elasticSanId) {
            return elasticSanId(Output.of(elasticSanId));
        }

        /**
         * @param encryption An `encryption` block as defined below.
         * 
         * > **NOTE:** The `encryption` block can only be set when `encryption_type` is set to `EncryptionAtRestWithCustomerManagedKey`.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption An `encryption` block as defined below.
         * 
         * > **NOTE:** The `encryption` block can only be set when `encryption_type` is set to `EncryptionAtRestWithCustomerManagedKey`.
         * 
         * @return builder
         * 
         */
        public Builder encryption(VolumeGroupEncryptionArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param encryptionType Specifies the type of the key used to encrypt the data of the disk. Possible values are `EncryptionAtRestWithCustomerManagedKey` and `EncryptionAtRestWithPlatformKey`. Defaults to `EncryptionAtRestWithPlatformKey`.
         * 
         * @return builder
         * 
         */
        public Builder encryptionType(@Nullable Output encryptionType) {
            $.encryptionType = encryptionType;
            return this;
        }

        /**
         * @param encryptionType Specifies the type of the key used to encrypt the data of the disk. Possible values are `EncryptionAtRestWithCustomerManagedKey` and `EncryptionAtRestWithPlatformKey`. Defaults to `EncryptionAtRestWithPlatformKey`.
         * 
         * @return builder
         * 
         */
        public Builder encryptionType(String encryptionType) {
            return encryptionType(Output.of(encryptionType));
        }

        /**
         * @param identity An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Elastic SAN Volume Group.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Elastic SAN Volume Group.
         * 
         * @return builder
         * 
         */
        public Builder identity(VolumeGroupIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param name Specifies the name of this Elastic SAN Volume Group. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of this Elastic SAN Volume Group. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param networkRules One or more `network_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder networkRules(@Nullable Output> networkRules) {
            $.networkRules = networkRules;
            return this;
        }

        /**
         * @param networkRules One or more `network_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder networkRules(List networkRules) {
            return networkRules(Output.of(networkRules));
        }

        /**
         * @param networkRules One or more `network_rule` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder networkRules(VolumeGroupNetworkRuleArgs... networkRules) {
            return networkRules(List.of(networkRules));
        }

        /**
         * @param protocolType Specifies the type of the storage target. The only possible value is `Iscsi`. Defaults to `Iscsi`.
         * 
         * @return builder
         * 
         */
        public Builder protocolType(@Nullable Output protocolType) {
            $.protocolType = protocolType;
            return this;
        }

        /**
         * @param protocolType Specifies the type of the storage target. The only possible value is `Iscsi`. Defaults to `Iscsi`.
         * 
         * @return builder
         * 
         */
        public Builder protocolType(String protocolType) {
            return protocolType(Output.of(protocolType));
        }

        public VolumeGroupArgs build() {
            if ($.elasticSanId == null) {
                throw new MissingRequiredPropertyException("VolumeGroupArgs", "elasticSanId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy