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

com.pulumi.azurenative.storagepool.DiskPoolArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.storagepool.inputs.DiskArgs;
import com.pulumi.azurenative.storagepool.inputs.SkuArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DiskPoolArgs Empty = new DiskPoolArgs();

    /**
     * List of additional capabilities for a Disk Pool.
     * 
     */
    @Import(name="additionalCapabilities")
    private @Nullable Output> additionalCapabilities;

    /**
     * @return List of additional capabilities for a Disk Pool.
     * 
     */
    public Optional>> additionalCapabilities() {
        return Optional.ofNullable(this.additionalCapabilities);
    }

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

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

    /**
     * The name of the Disk Pool.
     * 
     */
    @Import(name="diskPoolName")
    private @Nullable Output diskPoolName;

    /**
     * @return The name of the Disk Pool.
     * 
     */
    public Optional> diskPoolName() {
        return Optional.ofNullable(this.diskPoolName);
    }

    /**
     * List of Azure Managed Disks to attach to a Disk Pool.
     * 
     */
    @Import(name="disks")
    private @Nullable Output> disks;

    /**
     * @return List of Azure Managed Disks to attach to a Disk Pool.
     * 
     */
    public Optional>> disks() {
        return Optional.ofNullable(this.disks);
    }

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

    /**
     * Azure resource id. Indicates if this resource is managed by another Azure resource.
     * 
     */
    @Import(name="managedBy")
    private @Nullable Output managedBy;

    /**
     * @return Azure resource id. Indicates if this resource is managed by another Azure resource.
     * 
     */
    public Optional> managedBy() {
        return Optional.ofNullable(this.managedBy);
    }

    /**
     * List of Azure resource ids that manage this resource.
     * 
     */
    @Import(name="managedByExtended")
    private @Nullable Output> managedByExtended;

    /**
     * @return List of Azure resource ids that manage this resource.
     * 
     */
    public Optional>> managedByExtended() {
        return Optional.ofNullable(this.managedByExtended);
    }

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

    /**
     * Determines the SKU of the Disk Pool
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return Determines the SKU of the Disk Pool
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * Azure Resource ID of a Subnet for the Disk Pool.
     * 
     */
    @Import(name="subnetId", required=true)
    private Output subnetId;

    /**
     * @return Azure Resource ID of a Subnet for the Disk Pool.
     * 
     */
    public Output subnetId() {
        return this.subnetId;
    }

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

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

    private DiskPoolArgs() {}

    private DiskPoolArgs(DiskPoolArgs $) {
        this.additionalCapabilities = $.additionalCapabilities;
        this.availabilityZones = $.availabilityZones;
        this.diskPoolName = $.diskPoolName;
        this.disks = $.disks;
        this.location = $.location;
        this.managedBy = $.managedBy;
        this.managedByExtended = $.managedByExtended;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.subnetId = $.subnetId;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private DiskPoolArgs $;

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

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

        /**
         * @param additionalCapabilities List of additional capabilities for a Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder additionalCapabilities(@Nullable Output> additionalCapabilities) {
            $.additionalCapabilities = additionalCapabilities;
            return this;
        }

        /**
         * @param additionalCapabilities List of additional capabilities for a Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder additionalCapabilities(List additionalCapabilities) {
            return additionalCapabilities(Output.of(additionalCapabilities));
        }

        /**
         * @param additionalCapabilities List of additional capabilities for a Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder additionalCapabilities(String... additionalCapabilities) {
            return additionalCapabilities(List.of(additionalCapabilities));
        }

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

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

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

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

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

        /**
         * @param disks List of Azure Managed Disks to attach to a Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder disks(@Nullable Output> disks) {
            $.disks = disks;
            return this;
        }

        /**
         * @param disks List of Azure Managed Disks to attach to a Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder disks(List disks) {
            return disks(Output.of(disks));
        }

        /**
         * @param disks List of Azure Managed Disks to attach to a Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder disks(DiskArgs... disks) {
            return disks(List.of(disks));
        }

        /**
         * @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 managedBy Azure resource id. Indicates if this resource is managed by another Azure resource.
         * 
         * @return builder
         * 
         */
        public Builder managedBy(@Nullable Output managedBy) {
            $.managedBy = managedBy;
            return this;
        }

        /**
         * @param managedBy Azure resource id. Indicates if this resource is managed by another Azure resource.
         * 
         * @return builder
         * 
         */
        public Builder managedBy(String managedBy) {
            return managedBy(Output.of(managedBy));
        }

        /**
         * @param managedByExtended List of Azure resource ids that manage this resource.
         * 
         * @return builder
         * 
         */
        public Builder managedByExtended(@Nullable Output> managedByExtended) {
            $.managedByExtended = managedByExtended;
            return this;
        }

        /**
         * @param managedByExtended List of Azure resource ids that manage this resource.
         * 
         * @return builder
         * 
         */
        public Builder managedByExtended(List managedByExtended) {
            return managedByExtended(Output.of(managedByExtended));
        }

        /**
         * @param managedByExtended List of Azure resource ids that manage this resource.
         * 
         * @return builder
         * 
         */
        public Builder managedByExtended(String... managedByExtended) {
            return managedByExtended(List.of(managedByExtended));
        }

        /**
         * @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 Determines the SKU of the Disk Pool
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Determines the SKU of the Disk Pool
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param subnetId Azure Resource ID of a Subnet for the Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(Output subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId Azure Resource ID of a Subnet for the Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy