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

com.pulumi.azurenative.documentdb.inputs.NodeGroupSpecArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.documentdb.inputs;

import com.pulumi.azurenative.documentdb.enums.NodeKind;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specification for a node group.
 * 
 */
public final class NodeGroupSpecArgs extends com.pulumi.resources.ResourceArgs {

    public static final NodeGroupSpecArgs Empty = new NodeGroupSpecArgs();

    /**
     * The disk storage size for the node group in GB. Example values: 128, 256, 512, 1024.
     * 
     */
    @Import(name="diskSizeGB")
    private @Nullable Output diskSizeGB;

    /**
     * @return The disk storage size for the node group in GB. Example values: 128, 256, 512, 1024.
     * 
     */
    public Optional> diskSizeGB() {
        return Optional.ofNullable(this.diskSizeGB);
    }

    /**
     * Whether high availability is enabled on the node group.
     * 
     */
    @Import(name="enableHa")
    private @Nullable Output enableHa;

    /**
     * @return Whether high availability is enabled on the node group.
     * 
     */
    public Optional> enableHa() {
        return Optional.ofNullable(this.enableHa);
    }

    /**
     * The node type deployed in the node group.
     * 
     */
    @Import(name="kind")
    private @Nullable Output> kind;

    /**
     * @return The node type deployed in the node group.
     * 
     */
    public Optional>> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * The number of nodes in the node group.
     * 
     */
    @Import(name="nodeCount")
    private @Nullable Output nodeCount;

    /**
     * @return The number of nodes in the node group.
     * 
     */
    public Optional> nodeCount() {
        return Optional.ofNullable(this.nodeCount);
    }

    /**
     * The resource sku for the node group. This defines the size of CPU and memory that is provisioned for each node. Example values: 'M30', 'M40'.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return The resource sku for the node group. This defines the size of CPU and memory that is provisioned for each node. Example values: 'M30', 'M40'.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    private NodeGroupSpecArgs() {}

    private NodeGroupSpecArgs(NodeGroupSpecArgs $) {
        this.diskSizeGB = $.diskSizeGB;
        this.enableHa = $.enableHa;
        this.kind = $.kind;
        this.nodeCount = $.nodeCount;
        this.sku = $.sku;
    }

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

    public static final class Builder {
        private NodeGroupSpecArgs $;

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

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

        /**
         * @param diskSizeGB The disk storage size for the node group in GB. Example values: 128, 256, 512, 1024.
         * 
         * @return builder
         * 
         */
        public Builder diskSizeGB(@Nullable Output diskSizeGB) {
            $.diskSizeGB = diskSizeGB;
            return this;
        }

        /**
         * @param diskSizeGB The disk storage size for the node group in GB. Example values: 128, 256, 512, 1024.
         * 
         * @return builder
         * 
         */
        public Builder diskSizeGB(Double diskSizeGB) {
            return diskSizeGB(Output.of(diskSizeGB));
        }

        /**
         * @param enableHa Whether high availability is enabled on the node group.
         * 
         * @return builder
         * 
         */
        public Builder enableHa(@Nullable Output enableHa) {
            $.enableHa = enableHa;
            return this;
        }

        /**
         * @param enableHa Whether high availability is enabled on the node group.
         * 
         * @return builder
         * 
         */
        public Builder enableHa(Boolean enableHa) {
            return enableHa(Output.of(enableHa));
        }

        /**
         * @param kind The node type deployed in the node group.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The node type deployed in the node group.
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind The node type deployed in the node group.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind The node type deployed in the node group.
         * 
         * @return builder
         * 
         */
        public Builder kind(NodeKind kind) {
            return kind(Either.ofRight(kind));
        }

        /**
         * @param nodeCount The number of nodes in the node group.
         * 
         * @return builder
         * 
         */
        public Builder nodeCount(@Nullable Output nodeCount) {
            $.nodeCount = nodeCount;
            return this;
        }

        /**
         * @param nodeCount The number of nodes in the node group.
         * 
         * @return builder
         * 
         */
        public Builder nodeCount(Integer nodeCount) {
            return nodeCount(Output.of(nodeCount));
        }

        /**
         * @param sku The resource sku for the node group. This defines the size of CPU and memory that is provisioned for each node. Example values: 'M30', 'M40'.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The resource sku for the node group. This defines the size of CPU and memory that is provisioned for each node. Example values: 'M30', 'M40'.
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

        public NodeGroupSpecArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy