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

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

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();

    /**
     * Requested capacity in GiB
     * 
     */
    @Import(name="capacityGiB", required=true)
    private Output capacityGiB;

    /**
     * @return Requested capacity in GiB
     * 
     */
    public Output capacityGiB() {
        return this.capacityGiB;
    }

    /**
     * String KV pairs indicating labels
     * 
     */
    @Import(name="labels", required=true)
    private Output> labels;

    /**
     * @return String KV pairs indicating labels
     * 
     */
    public Output> labels() {
        return this.labels;
    }

    /**
     * Pool Object
     * 
     */
    @Import(name="poolName", required=true)
    private Output poolName;

    /**
     * @return Pool Object
     * 
     */
    public Output poolName() {
        return this.poolName;
    }

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

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

    private VolumeArgs() {}

    private VolumeArgs(VolumeArgs $) {
        this.capacityGiB = $.capacityGiB;
        this.labels = $.labels;
        this.poolName = $.poolName;
        this.resourceGroupName = $.resourceGroupName;
        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 capacityGiB Requested capacity in GiB
         * 
         * @return builder
         * 
         */
        public Builder capacityGiB(Output capacityGiB) {
            $.capacityGiB = capacityGiB;
            return this;
        }

        /**
         * @param capacityGiB Requested capacity in GiB
         * 
         * @return builder
         * 
         */
        public Builder capacityGiB(Double capacityGiB) {
            return capacityGiB(Output.of(capacityGiB));
        }

        /**
         * @param labels String KV pairs indicating labels
         * 
         * @return builder
         * 
         */
        public Builder labels(Output> labels) {
            $.labels = labels;
            return this;
        }

        /**
         * @param labels String KV pairs indicating labels
         * 
         * @return builder
         * 
         */
        public Builder labels(Map labels) {
            return labels(Output.of(labels));
        }

        /**
         * @param poolName Pool Object
         * 
         * @return builder
         * 
         */
        public Builder poolName(Output poolName) {
            $.poolName = poolName;
            return this;
        }

        /**
         * @param poolName Pool Object
         * 
         * @return builder
         * 
         */
        public Builder poolName(String poolName) {
            return poolName(Output.of(poolName));
        }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy