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

com.pulumi.alicloud.adb.ResourceGroupArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.adb;

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 ResourceGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceGroupArgs Empty = new ResourceGroupArgs();

    /**
     * The ID of the DBCluster.
     * 
     */
    @Import(name="dbClusterId", required=true)
    private Output dbClusterId;

    /**
     * @return The ID of the DBCluster.
     * 
     */
    public Output dbClusterId() {
        return this.dbClusterId;
    }

    /**
     * The name of the resource group. The `group_name` can be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter.
     * 
     */
    @Import(name="groupName", required=true)
    private Output groupName;

    /**
     * @return The name of the resource group. The `group_name` can be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter.
     * 
     */
    public Output groupName() {
        return this.groupName;
    }

    /**
     * The query execution mode. Default value: `interactive`. Valid values: `interactive`, `batch`.
     * 
     */
    @Import(name="groupType")
    private @Nullable Output groupType;

    /**
     * @return The query execution mode. Default value: `interactive`. Valid values: `interactive`, `batch`.
     * 
     */
    public Optional> groupType() {
        return Optional.ofNullable(this.groupType);
    }

    /**
     * The number of nodes.
     * 
     */
    @Import(name="nodeNum")
    private @Nullable Output nodeNum;

    /**
     * @return The number of nodes.
     * 
     */
    public Optional> nodeNum() {
        return Optional.ofNullable(this.nodeNum);
    }

    /**
     * The database accounts with which to associate the resource group.
     * 
     */
    @Import(name="users")
    private @Nullable Output> users;

    /**
     * @return The database accounts with which to associate the resource group.
     * 
     */
    public Optional>> users() {
        return Optional.ofNullable(this.users);
    }

    private ResourceGroupArgs() {}

    private ResourceGroupArgs(ResourceGroupArgs $) {
        this.dbClusterId = $.dbClusterId;
        this.groupName = $.groupName;
        this.groupType = $.groupType;
        this.nodeNum = $.nodeNum;
        this.users = $.users;
    }

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

    public static final class Builder {
        private ResourceGroupArgs $;

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

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

        /**
         * @param dbClusterId The ID of the DBCluster.
         * 
         * @return builder
         * 
         */
        public Builder dbClusterId(Output dbClusterId) {
            $.dbClusterId = dbClusterId;
            return this;
        }

        /**
         * @param dbClusterId The ID of the DBCluster.
         * 
         * @return builder
         * 
         */
        public Builder dbClusterId(String dbClusterId) {
            return dbClusterId(Output.of(dbClusterId));
        }

        /**
         * @param groupName The name of the resource group. The `group_name` can be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter.
         * 
         * @return builder
         * 
         */
        public Builder groupName(Output groupName) {
            $.groupName = groupName;
            return this;
        }

        /**
         * @param groupName The name of the resource group. The `group_name` can be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter.
         * 
         * @return builder
         * 
         */
        public Builder groupName(String groupName) {
            return groupName(Output.of(groupName));
        }

        /**
         * @param groupType The query execution mode. Default value: `interactive`. Valid values: `interactive`, `batch`.
         * 
         * @return builder
         * 
         */
        public Builder groupType(@Nullable Output groupType) {
            $.groupType = groupType;
            return this;
        }

        /**
         * @param groupType The query execution mode. Default value: `interactive`. Valid values: `interactive`, `batch`.
         * 
         * @return builder
         * 
         */
        public Builder groupType(String groupType) {
            return groupType(Output.of(groupType));
        }

        /**
         * @param nodeNum The number of nodes.
         * 
         * @return builder
         * 
         */
        public Builder nodeNum(@Nullable Output nodeNum) {
            $.nodeNum = nodeNum;
            return this;
        }

        /**
         * @param nodeNum The number of nodes.
         * 
         * @return builder
         * 
         */
        public Builder nodeNum(Integer nodeNum) {
            return nodeNum(Output.of(nodeNum));
        }

        /**
         * @param users The database accounts with which to associate the resource group.
         * 
         * @return builder
         * 
         */
        public Builder users(@Nullable Output> users) {
            $.users = users;
            return this;
        }

        /**
         * @param users The database accounts with which to associate the resource group.
         * 
         * @return builder
         * 
         */
        public Builder users(List users) {
            return users(Output.of(users));
        }

        /**
         * @param users The database accounts with which to associate the resource group.
         * 
         * @return builder
         * 
         */
        public Builder users(String... users) {
            return users(List.of(users));
        }

        public ResourceGroupArgs build() {
            if ($.dbClusterId == null) {
                throw new MissingRequiredPropertyException("ResourceGroupArgs", "dbClusterId");
            }
            if ($.groupName == null) {
                throw new MissingRequiredPropertyException("ResourceGroupArgs", "groupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy