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

com.pulumi.azure.avs.inputs.PrivateCloudManagementClusterArgs Maven / Gradle / Ivy

// *** 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.azure.avs.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PrivateCloudManagementClusterArgs Empty = new PrivateCloudManagementClusterArgs();

    /**
     * A list of hosts in the management cluster.
     * 
     */
    @Import(name="hosts")
    private @Nullable Output> hosts;

    /**
     * @return A list of hosts in the management cluster.
     * 
     */
    public Optional>> hosts() {
        return Optional.ofNullable(this.hosts);
    }

    /**
     * The ID of the management cluster.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The ID of the management cluster.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The size of the management cluster. This field can not updated with `internet_connection_enabled` together.
     * 
     */
    @Import(name="size", required=true)
    private Output size;

    /**
     * @return The size of the management cluster. This field can not updated with `internet_connection_enabled` together.
     * 
     */
    public Output size() {
        return this.size;
    }

    private PrivateCloudManagementClusterArgs() {}

    private PrivateCloudManagementClusterArgs(PrivateCloudManagementClusterArgs $) {
        this.hosts = $.hosts;
        this.id = $.id;
        this.size = $.size;
    }

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

    public static final class Builder {
        private PrivateCloudManagementClusterArgs $;

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

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

        /**
         * @param hosts A list of hosts in the management cluster.
         * 
         * @return builder
         * 
         */
        public Builder hosts(@Nullable Output> hosts) {
            $.hosts = hosts;
            return this;
        }

        /**
         * @param hosts A list of hosts in the management cluster.
         * 
         * @return builder
         * 
         */
        public Builder hosts(List hosts) {
            return hosts(Output.of(hosts));
        }

        /**
         * @param hosts A list of hosts in the management cluster.
         * 
         * @return builder
         * 
         */
        public Builder hosts(String... hosts) {
            return hosts(List.of(hosts));
        }

        /**
         * @param id The ID of the management cluster.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The ID of the management cluster.
         * 
         * @return builder
         * 
         */
        public Builder id(Integer id) {
            return id(Output.of(id));
        }

        /**
         * @param size The size of the management cluster. This field can not updated with `internet_connection_enabled` together.
         * 
         * @return builder
         * 
         */
        public Builder size(Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size The size of the management cluster. This field can not updated with `internet_connection_enabled` together.
         * 
         * @return builder
         * 
         */
        public Builder size(Integer size) {
            return size(Output.of(size));
        }

        public PrivateCloudManagementClusterArgs build() {
            if ($.size == null) {
                throw new MissingRequiredPropertyException("PrivateCloudManagementClusterArgs", "size");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy