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

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

There is a newer version: 2.78.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.elasticsan;

import com.pulumi.azurenative.elasticsan.enums.EncryptionType;
import com.pulumi.azurenative.elasticsan.enums.StorageTargetType;
import com.pulumi.azurenative.elasticsan.inputs.NetworkRuleSetArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
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();

    /**
     * The name of the ElasticSan.
     * 
     */
    @Import(name="elasticSanName", required=true)
    private Output elasticSanName;

    /**
     * @return The name of the ElasticSan.
     * 
     */
    public Output elasticSanName() {
        return this.elasticSanName;
    }

    /**
     * Type of encryption
     * 
     */
    @Import(name="encryption")
    private @Nullable Output> encryption;

    /**
     * @return Type of encryption
     * 
     */
    public Optional>> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * A collection of rules governing the accessibility from specific network locations.
     * 
     */
    @Import(name="networkAcls")
    private @Nullable Output networkAcls;

    /**
     * @return A collection of rules governing the accessibility from specific network locations.
     * 
     */
    public Optional> networkAcls() {
        return Optional.ofNullable(this.networkAcls);
    }

    /**
     * Type of storage target
     * 
     */
    @Import(name="protocolType")
    private @Nullable Output> protocolType;

    /**
     * @return Type of storage target
     * 
     */
    public Optional>> protocolType() {
        return Optional.ofNullable(this.protocolType);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Azure resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Azure resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The name of the VolumeGroup.
     * 
     */
    @Import(name="volumeGroupName")
    private @Nullable Output volumeGroupName;

    /**
     * @return The name of the VolumeGroup.
     * 
     */
    public Optional> volumeGroupName() {
        return Optional.ofNullable(this.volumeGroupName);
    }

    private VolumeGroupArgs() {}

    private VolumeGroupArgs(VolumeGroupArgs $) {
        this.elasticSanName = $.elasticSanName;
        this.encryption = $.encryption;
        this.networkAcls = $.networkAcls;
        this.protocolType = $.protocolType;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.volumeGroupName = $.volumeGroupName;
    }

    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 elasticSanName The name of the ElasticSan.
         * 
         * @return builder
         * 
         */
        public Builder elasticSanName(Output elasticSanName) {
            $.elasticSanName = elasticSanName;
            return this;
        }

        /**
         * @param elasticSanName The name of the ElasticSan.
         * 
         * @return builder
         * 
         */
        public Builder elasticSanName(String elasticSanName) {
            return elasticSanName(Output.of(elasticSanName));
        }

        /**
         * @param encryption Type of encryption
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output> encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption Type of encryption
         * 
         * @return builder
         * 
         */
        public Builder encryption(Either encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param encryption Type of encryption
         * 
         * @return builder
         * 
         */
        public Builder encryption(String encryption) {
            return encryption(Either.ofLeft(encryption));
        }

        /**
         * @param encryption Type of encryption
         * 
         * @return builder
         * 
         */
        public Builder encryption(EncryptionType encryption) {
            return encryption(Either.ofRight(encryption));
        }

        /**
         * @param networkAcls A collection of rules governing the accessibility from specific network locations.
         * 
         * @return builder
         * 
         */
        public Builder networkAcls(@Nullable Output networkAcls) {
            $.networkAcls = networkAcls;
            return this;
        }

        /**
         * @param networkAcls A collection of rules governing the accessibility from specific network locations.
         * 
         * @return builder
         * 
         */
        public Builder networkAcls(NetworkRuleSetArgs networkAcls) {
            return networkAcls(Output.of(networkAcls));
        }

        /**
         * @param protocolType Type of storage target
         * 
         * @return builder
         * 
         */
        public Builder protocolType(@Nullable Output> protocolType) {
            $.protocolType = protocolType;
            return this;
        }

        /**
         * @param protocolType Type of storage target
         * 
         * @return builder
         * 
         */
        public Builder protocolType(Either protocolType) {
            return protocolType(Output.of(protocolType));
        }

        /**
         * @param protocolType Type of storage target
         * 
         * @return builder
         * 
         */
        public Builder protocolType(String protocolType) {
            return protocolType(Either.ofLeft(protocolType));
        }

        /**
         * @param protocolType Type of storage target
         * 
         * @return builder
         * 
         */
        public Builder protocolType(StorageTargetType protocolType) {
            return protocolType(Either.ofRight(protocolType));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Azure resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Azure resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param volumeGroupName The name of the VolumeGroup.
         * 
         * @return builder
         * 
         */
        public Builder volumeGroupName(@Nullable Output volumeGroupName) {
            $.volumeGroupName = volumeGroupName;
            return this;
        }

        /**
         * @param volumeGroupName The name of the VolumeGroup.
         * 
         * @return builder
         * 
         */
        public Builder volumeGroupName(String volumeGroupName) {
            return volumeGroupName(Output.of(volumeGroupName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy