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

com.pulumi.azurenative.networkcloud.RackArgs 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.networkcloud;

import com.pulumi.azurenative.networkcloud.inputs.ExtendedLocationArgs;
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 RackArgs extends com.pulumi.resources.ResourceArgs {

    public static final RackArgs Empty = new RackArgs();

    /**
     * The value that will be used for machines in this rack to represent the availability zones that can be referenced by Hybrid AKS Clusters for node arrangement.
     * 
     */
    @Import(name="availabilityZone", required=true)
    private Output availabilityZone;

    /**
     * @return The value that will be used for machines in this rack to represent the availability zones that can be referenced by Hybrid AKS Clusters for node arrangement.
     * 
     */
    public Output availabilityZone() {
        return this.availabilityZone;
    }

    /**
     * The extended location of the cluster associated with the resource.
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return The extended location of the cluster associated with the resource.
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * 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 free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”)
     * 
     */
    @Import(name="rackLocation", required=true)
    private Output rackLocation;

    /**
     * @return The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”)
     * 
     */
    public Output rackLocation() {
        return this.rackLocation;
    }

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

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

    /**
     * The unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other than a serial number may be provided if desired.
     * 
     */
    @Import(name="rackSerialNumber", required=true)
    private Output rackSerialNumber;

    /**
     * @return The unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other than a serial number may be provided if desired.
     * 
     */
    public Output rackSerialNumber() {
        return this.rackSerialNumber;
    }

    /**
     * The SKU for the rack.
     * 
     */
    @Import(name="rackSkuId", required=true)
    private Output rackSkuId;

    /**
     * @return The SKU for the rack.
     * 
     */
    public Output rackSkuId() {
        return this.rackSkuId;
    }

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

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

    private RackArgs() {}

    private RackArgs(RackArgs $) {
        this.availabilityZone = $.availabilityZone;
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.rackLocation = $.rackLocation;
        this.rackName = $.rackName;
        this.rackSerialNumber = $.rackSerialNumber;
        this.rackSkuId = $.rackSkuId;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private RackArgs $;

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

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

        /**
         * @param availabilityZone The value that will be used for machines in this rack to represent the availability zones that can be referenced by Hybrid AKS Clusters for node arrangement.
         * 
         * @return builder
         * 
         */
        public Builder availabilityZone(Output availabilityZone) {
            $.availabilityZone = availabilityZone;
            return this;
        }

        /**
         * @param availabilityZone The value that will be used for machines in this rack to represent the availability zones that can be referenced by Hybrid AKS Clusters for node arrangement.
         * 
         * @return builder
         * 
         */
        public Builder availabilityZone(String availabilityZone) {
            return availabilityZone(Output.of(availabilityZone));
        }

        /**
         * @param extendedLocation The extended location of the cluster associated with the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The extended location of the cluster associated with the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @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 rackLocation The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”)
         * 
         * @return builder
         * 
         */
        public Builder rackLocation(Output rackLocation) {
            $.rackLocation = rackLocation;
            return this;
        }

        /**
         * @param rackLocation The free-form description of the rack location. (e.g. “DTN Datacenter, Floor 3, Isle 9, Rack 2B”)
         * 
         * @return builder
         * 
         */
        public Builder rackLocation(String rackLocation) {
            return rackLocation(Output.of(rackLocation));
        }

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

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

        /**
         * @param rackSerialNumber The unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other than a serial number may be provided if desired.
         * 
         * @return builder
         * 
         */
        public Builder rackSerialNumber(Output rackSerialNumber) {
            $.rackSerialNumber = rackSerialNumber;
            return this;
        }

        /**
         * @param rackSerialNumber The unique identifier for the rack within Network Cloud cluster. An alternate unique alphanumeric value other than a serial number may be provided if desired.
         * 
         * @return builder
         * 
         */
        public Builder rackSerialNumber(String rackSerialNumber) {
            return rackSerialNumber(Output.of(rackSerialNumber));
        }

        /**
         * @param rackSkuId The SKU for the rack.
         * 
         * @return builder
         * 
         */
        public Builder rackSkuId(Output rackSkuId) {
            $.rackSkuId = rackSkuId;
            return this;
        }

        /**
         * @param rackSkuId The SKU for the rack.
         * 
         * @return builder
         * 
         */
        public Builder rackSkuId(String rackSkuId) {
            return rackSkuId(Output.of(rackSkuId));
        }

        /**
         * @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 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 RackArgs build() {
            if ($.availabilityZone == null) {
                throw new MissingRequiredPropertyException("RackArgs", "availabilityZone");
            }
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("RackArgs", "extendedLocation");
            }
            if ($.rackLocation == null) {
                throw new MissingRequiredPropertyException("RackArgs", "rackLocation");
            }
            if ($.rackSerialNumber == null) {
                throw new MissingRequiredPropertyException("RackArgs", "rackSerialNumber");
            }
            if ($.rackSkuId == null) {
                throw new MissingRequiredPropertyException("RackArgs", "rackSkuId");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("RackArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy