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

com.pulumi.azurenative.elasticsan.ElasticSanArgs 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.SkuArgs;
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.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ElasticSanArgs Empty = new ElasticSanArgs();

    /**
     * Logical zone for Elastic San resource; example: ["1"].
     * 
     */
    @Import(name="availabilityZones")
    private @Nullable Output> availabilityZones;

    /**
     * @return Logical zone for Elastic San resource; example: ["1"].
     * 
     */
    public Optional>> availabilityZones() {
        return Optional.ofNullable(this.availabilityZones);
    }

    /**
     * Base size of the Elastic San appliance in TiB.
     * 
     */
    @Import(name="baseSizeTiB", required=true)
    private Output baseSizeTiB;

    /**
     * @return Base size of the Elastic San appliance in TiB.
     * 
     */
    public Output baseSizeTiB() {
        return this.baseSizeTiB;
    }

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

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

    /**
     * Extended size of the Elastic San appliance in TiB.
     * 
     */
    @Import(name="extendedCapacitySizeTiB", required=true)
    private Output extendedCapacitySizeTiB;

    /**
     * @return Extended size of the Elastic San appliance in TiB.
     * 
     */
    public Output extendedCapacitySizeTiB() {
        return this.extendedCapacitySizeTiB;
    }

    /**
     * The geo-location where the resource lives.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

    /**
     * resource sku
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return resource sku
     * 
     */
    public Output sku() {
        return this.sku;
    }

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

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

    private ElasticSanArgs() {}

    private ElasticSanArgs(ElasticSanArgs $) {
        this.availabilityZones = $.availabilityZones;
        this.baseSizeTiB = $.baseSizeTiB;
        this.elasticSanName = $.elasticSanName;
        this.extendedCapacitySizeTiB = $.extendedCapacitySizeTiB;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ElasticSanArgs $;

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

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

        /**
         * @param availabilityZones Logical zone for Elastic San resource; example: ["1"].
         * 
         * @return builder
         * 
         */
        public Builder availabilityZones(@Nullable Output> availabilityZones) {
            $.availabilityZones = availabilityZones;
            return this;
        }

        /**
         * @param availabilityZones Logical zone for Elastic San resource; example: ["1"].
         * 
         * @return builder
         * 
         */
        public Builder availabilityZones(List availabilityZones) {
            return availabilityZones(Output.of(availabilityZones));
        }

        /**
         * @param availabilityZones Logical zone for Elastic San resource; example: ["1"].
         * 
         * @return builder
         * 
         */
        public Builder availabilityZones(String... availabilityZones) {
            return availabilityZones(List.of(availabilityZones));
        }

        /**
         * @param baseSizeTiB Base size of the Elastic San appliance in TiB.
         * 
         * @return builder
         * 
         */
        public Builder baseSizeTiB(Output baseSizeTiB) {
            $.baseSizeTiB = baseSizeTiB;
            return this;
        }

        /**
         * @param baseSizeTiB Base size of the Elastic San appliance in TiB.
         * 
         * @return builder
         * 
         */
        public Builder baseSizeTiB(Double baseSizeTiB) {
            return baseSizeTiB(Output.of(baseSizeTiB));
        }

        /**
         * @param elasticSanName The name of the ElasticSan.
         * 
         * @return builder
         * 
         */
        public Builder elasticSanName(@Nullable 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 extendedCapacitySizeTiB Extended size of the Elastic San appliance in TiB.
         * 
         * @return builder
         * 
         */
        public Builder extendedCapacitySizeTiB(Output extendedCapacitySizeTiB) {
            $.extendedCapacitySizeTiB = extendedCapacitySizeTiB;
            return this;
        }

        /**
         * @param extendedCapacitySizeTiB Extended size of the Elastic San appliance in TiB.
         * 
         * @return builder
         * 
         */
        public Builder extendedCapacitySizeTiB(Double extendedCapacitySizeTiB) {
            return extendedCapacitySizeTiB(Output.of(extendedCapacitySizeTiB));
        }

        /**
         * @param location The geo-location where the resource lives.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

        /**
         * @param sku resource sku
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

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

        public ElasticSanArgs build() {
            if ($.baseSizeTiB == null) {
                throw new MissingRequiredPropertyException("ElasticSanArgs", "baseSizeTiB");
            }
            if ($.extendedCapacitySizeTiB == null) {
                throw new MissingRequiredPropertyException("ElasticSanArgs", "extendedCapacitySizeTiB");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ElasticSanArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("ElasticSanArgs", "sku");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy