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

com.pulumi.azurenative.elasticsan.VolumeArgs 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.inputs.SourceCreationDataArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VolumeArgs Empty = new VolumeArgs();

    /**
     * State of the operation on the resource.
     * 
     */
    @Import(name="creationData")
    private @Nullable Output creationData;

    /**
     * @return State of the operation on the resource.
     * 
     */
    public Optional> creationData() {
        return Optional.ofNullable(this.creationData);
    }

    /**
     * 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;
    }

    /**
     * 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;
    }

    /**
     * Volume size.
     * 
     */
    @Import(name="sizeGiB")
    private @Nullable Output sizeGiB;

    /**
     * @return Volume size.
     * 
     */
    public Optional> sizeGiB() {
        return Optional.ofNullable(this.sizeGiB);
    }

    /**
     * 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", required=true)
    private Output volumeGroupName;

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

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

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

    private VolumeArgs() {}

    private VolumeArgs(VolumeArgs $) {
        this.creationData = $.creationData;
        this.elasticSanName = $.elasticSanName;
        this.resourceGroupName = $.resourceGroupName;
        this.sizeGiB = $.sizeGiB;
        this.tags = $.tags;
        this.volumeGroupName = $.volumeGroupName;
        this.volumeName = $.volumeName;
    }

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

    public static final class Builder {
        private VolumeArgs $;

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

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

        /**
         * @param creationData State of the operation on the resource.
         * 
         * @return builder
         * 
         */
        public Builder creationData(@Nullable Output creationData) {
            $.creationData = creationData;
            return this;
        }

        /**
         * @param creationData State of the operation on the resource.
         * 
         * @return builder
         * 
         */
        public Builder creationData(SourceCreationDataArgs creationData) {
            return creationData(Output.of(creationData));
        }

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

        /**
         * @param sizeGiB Volume size.
         * 
         * @return builder
         * 
         */
        public Builder sizeGiB(Double sizeGiB) {
            return sizeGiB(Output.of(sizeGiB));
        }

        /**
         * @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(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));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy