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

com.pulumi.vsphere.ComputeClusterHostGroupArgs Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1731738919
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.vsphere;

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ComputeClusterHostGroupArgs Empty = new ComputeClusterHostGroupArgs();

    /**
     * The managed object reference
     * ID of the cluster to put the group in.  Forces a new
     * resource if changed.
     * 
     */
    @Import(name="computeClusterId", required=true)
    private Output computeClusterId;

    /**
     * @return The managed object reference
     * ID of the cluster to put the group in.  Forces a new
     * resource if changed.
     * 
     */
    public Output computeClusterId() {
        return this.computeClusterId;
    }

    /**
     * The managed object IDs of
     * the hosts to put in the cluster.
     * 
     * > **NOTE:** The namespace for cluster names on this resource (defined by the
     * `name` argument) is shared with the
     * `vsphere.ComputeClusterVmGroup`
     * resource. Make sure your names are unique across both resources.
     * 
     */
    @Import(name="hostSystemIds")
    private @Nullable Output> hostSystemIds;

    /**
     * @return The managed object IDs of
     * the hosts to put in the cluster.
     * 
     * > **NOTE:** The namespace for cluster names on this resource (defined by the
     * `name` argument) is shared with the
     * `vsphere.ComputeClusterVmGroup`
     * resource. Make sure your names are unique across both resources.
     * 
     */
    public Optional>> hostSystemIds() {
        return Optional.ofNullable(this.hostSystemIds);
    }

    /**
     * The name of the host group. This must be unique in the
     * cluster. Forces a new resource if changed.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the host group. This must be unique in the
     * cluster. Forces a new resource if changed.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private ComputeClusterHostGroupArgs() {}

    private ComputeClusterHostGroupArgs(ComputeClusterHostGroupArgs $) {
        this.computeClusterId = $.computeClusterId;
        this.hostSystemIds = $.hostSystemIds;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ComputeClusterHostGroupArgs $;

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

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

        /**
         * @param computeClusterId The managed object reference
         * ID of the cluster to put the group in.  Forces a new
         * resource if changed.
         * 
         * @return builder
         * 
         */
        public Builder computeClusterId(Output computeClusterId) {
            $.computeClusterId = computeClusterId;
            return this;
        }

        /**
         * @param computeClusterId The managed object reference
         * ID of the cluster to put the group in.  Forces a new
         * resource if changed.
         * 
         * @return builder
         * 
         */
        public Builder computeClusterId(String computeClusterId) {
            return computeClusterId(Output.of(computeClusterId));
        }

        /**
         * @param hostSystemIds The managed object IDs of
         * the hosts to put in the cluster.
         * 
         * > **NOTE:** The namespace for cluster names on this resource (defined by the
         * `name` argument) is shared with the
         * `vsphere.ComputeClusterVmGroup`
         * resource. Make sure your names are unique across both resources.
         * 
         * @return builder
         * 
         */
        public Builder hostSystemIds(@Nullable Output> hostSystemIds) {
            $.hostSystemIds = hostSystemIds;
            return this;
        }

        /**
         * @param hostSystemIds The managed object IDs of
         * the hosts to put in the cluster.
         * 
         * > **NOTE:** The namespace for cluster names on this resource (defined by the
         * `name` argument) is shared with the
         * `vsphere.ComputeClusterVmGroup`
         * resource. Make sure your names are unique across both resources.
         * 
         * @return builder
         * 
         */
        public Builder hostSystemIds(List hostSystemIds) {
            return hostSystemIds(Output.of(hostSystemIds));
        }

        /**
         * @param hostSystemIds The managed object IDs of
         * the hosts to put in the cluster.
         * 
         * > **NOTE:** The namespace for cluster names on this resource (defined by the
         * `name` argument) is shared with the
         * `vsphere.ComputeClusterVmGroup`
         * resource. Make sure your names are unique across both resources.
         * 
         * @return builder
         * 
         */
        public Builder hostSystemIds(String... hostSystemIds) {
            return hostSystemIds(List.of(hostSystemIds));
        }

        /**
         * @param name The name of the host group. This must be unique in the
         * cluster. Forces a new resource if changed.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the host group. This must be unique in the
         * cluster. Forces a new resource if changed.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy