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

com.pulumi.googlenative.dataproc.v1.inputs.NodeGroupArgs 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.googlenative.dataproc.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.dataproc.v1.enums.NodeGroupRolesItem;
import com.pulumi.googlenative.dataproc.v1.inputs.InstanceGroupConfigArgs;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource.
 * 
 */
public final class NodeGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final NodeGroupArgs Empty = new NodeGroupArgs();

    /**
     * Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn.
     * 
     */
    @Import(name="labels")
    private @Nullable Output> labels;

    /**
     * @return Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn.
     * 
     */
    public Optional>> labels() {
        return Optional.ofNullable(this.labels);
    }

    /**
     * The Node group resource name (https://aip.dev/122).
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The Node group resource name (https://aip.dev/122).
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Optional. The node group instance group configuration.
     * 
     */
    @Import(name="nodeGroupConfig")
    private @Nullable Output nodeGroupConfig;

    /**
     * @return Optional. The node group instance group configuration.
     * 
     */
    public Optional> nodeGroupConfig() {
        return Optional.ofNullable(this.nodeGroupConfig);
    }

    /**
     * Node group roles.
     * 
     */
    @Import(name="roles", required=true)
    private Output> roles;

    /**
     * @return Node group roles.
     * 
     */
    public Output> roles() {
        return this.roles;
    }

    private NodeGroupArgs() {}

    private NodeGroupArgs(NodeGroupArgs $) {
        this.labels = $.labels;
        this.name = $.name;
        this.nodeGroupConfig = $.nodeGroupConfig;
        this.roles = $.roles;
    }

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

    public static final class Builder {
        private NodeGroupArgs $;

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

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

        /**
         * @param labels Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn.
         * 
         * @return builder
         * 
         */
        public Builder labels(@Nullable Output> labels) {
            $.labels = labels;
            return this;
        }

        /**
         * @param labels Optional. Node group labels. Label keys must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The node group must have no more than 32 labelsn.
         * 
         * @return builder
         * 
         */
        public Builder labels(Map labels) {
            return labels(Output.of(labels));
        }

        /**
         * @param name The Node group resource name (https://aip.dev/122).
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The Node group resource name (https://aip.dev/122).
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nodeGroupConfig Optional. The node group instance group configuration.
         * 
         * @return builder
         * 
         */
        public Builder nodeGroupConfig(@Nullable Output nodeGroupConfig) {
            $.nodeGroupConfig = nodeGroupConfig;
            return this;
        }

        /**
         * @param nodeGroupConfig Optional. The node group instance group configuration.
         * 
         * @return builder
         * 
         */
        public Builder nodeGroupConfig(InstanceGroupConfigArgs nodeGroupConfig) {
            return nodeGroupConfig(Output.of(nodeGroupConfig));
        }

        /**
         * @param roles Node group roles.
         * 
         * @return builder
         * 
         */
        public Builder roles(Output> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles Node group roles.
         * 
         * @return builder
         * 
         */
        public Builder roles(List roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles Node group roles.
         * 
         * @return builder
         * 
         */
        public Builder roles(NodeGroupRolesItem... roles) {
            return roles(List.of(roles));
        }

        public NodeGroupArgs build() {
            $.roles = Objects.requireNonNull($.roles, "expected parameter 'roles' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy