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

com.pulumi.mongodbatlas.inputs.GetServerlessInstanceArgs 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.mongodbatlas.inputs;

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


public final class GetServerlessInstanceArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetServerlessInstanceArgs Empty = new GetServerlessInstanceArgs();

    /**
     * Flag that indicates whether the serverless instance uses [Serverless Auto Indexing](https://www.mongodb.com/docs/atlas/performance-advisor/auto-index-serverless/).
     * 
     */
    @Import(name="autoIndexing")
    private @Nullable Output autoIndexing;

    /**
     * @return Flag that indicates whether the serverless instance uses [Serverless Auto Indexing](https://www.mongodb.com/docs/atlas/performance-advisor/auto-index-serverless/).
     * 
     */
    public Optional> autoIndexing() {
        return Optional.ofNullable(this.autoIndexing);
    }

    /**
     * Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
     * 
     */
    @Import(name="continuousBackupEnabled")
    private @Nullable Output continuousBackupEnabled;

    /**
     * @return Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
     * 
     */
    public Optional> continuousBackupEnabled() {
        return Optional.ofNullable(this.continuousBackupEnabled);
    }

    @Import(name="links")
    private @Nullable Output> links;

    public Optional>> links() {
        return Optional.ofNullable(this.links);
    }

    /**
     * Human-readable label that identifies your serverless instance.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Human-readable label that identifies your serverless instance.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Unique 24-hexadecimal digit string that identifies the project that contains your serverless instance.
     * 
     */
    @Import(name="projectId", required=true)
    private Output projectId;

    /**
     * @return Unique 24-hexadecimal digit string that identifies the project that contains your serverless instance.
     * 
     */
    public Output projectId() {
        return this.projectId;
    }

    /**
     * Stage of deployment of this serverless instance when the resource made its request.
     * 
     */
    @Import(name="stateName")
    private @Nullable Output stateName;

    /**
     * @return Stage of deployment of this serverless instance when the resource made its request.
     * 
     */
    public Optional> stateName() {
        return Optional.ofNullable(this.stateName);
    }

    private GetServerlessInstanceArgs() {}

    private GetServerlessInstanceArgs(GetServerlessInstanceArgs $) {
        this.autoIndexing = $.autoIndexing;
        this.continuousBackupEnabled = $.continuousBackupEnabled;
        this.links = $.links;
        this.name = $.name;
        this.projectId = $.projectId;
        this.stateName = $.stateName;
    }

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

    public static final class Builder {
        private GetServerlessInstanceArgs $;

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

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

        /**
         * @param autoIndexing Flag that indicates whether the serverless instance uses [Serverless Auto Indexing](https://www.mongodb.com/docs/atlas/performance-advisor/auto-index-serverless/).
         * 
         * @return builder
         * 
         */
        public Builder autoIndexing(@Nullable Output autoIndexing) {
            $.autoIndexing = autoIndexing;
            return this;
        }

        /**
         * @param autoIndexing Flag that indicates whether the serverless instance uses [Serverless Auto Indexing](https://www.mongodb.com/docs/atlas/performance-advisor/auto-index-serverless/).
         * 
         * @return builder
         * 
         */
        public Builder autoIndexing(Boolean autoIndexing) {
            return autoIndexing(Output.of(autoIndexing));
        }

        /**
         * @param continuousBackupEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
         * 
         * @return builder
         * 
         */
        public Builder continuousBackupEnabled(@Nullable Output continuousBackupEnabled) {
            $.continuousBackupEnabled = continuousBackupEnabled;
            return this;
        }

        /**
         * @param continuousBackupEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup.
         * 
         * @return builder
         * 
         */
        public Builder continuousBackupEnabled(Boolean continuousBackupEnabled) {
            return continuousBackupEnabled(Output.of(continuousBackupEnabled));
        }

        public Builder links(@Nullable Output> links) {
            $.links = links;
            return this;
        }

        public Builder links(List links) {
            return links(Output.of(links));
        }

        public Builder links(GetServerlessInstanceLinkArgs... links) {
            return links(List.of(links));
        }

        /**
         * @param name Human-readable label that identifies your serverless instance.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Human-readable label that identifies your serverless instance.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param projectId Unique 24-hexadecimal digit string that identifies the project that contains your serverless instance.
         * 
         * @return builder
         * 
         */
        public Builder projectId(Output projectId) {
            $.projectId = projectId;
            return this;
        }

        /**
         * @param projectId Unique 24-hexadecimal digit string that identifies the project that contains your serverless instance.
         * 
         * @return builder
         * 
         */
        public Builder projectId(String projectId) {
            return projectId(Output.of(projectId));
        }

        /**
         * @param stateName Stage of deployment of this serverless instance when the resource made its request.
         * 
         * @return builder
         * 
         */
        public Builder stateName(@Nullable Output stateName) {
            $.stateName = stateName;
            return this;
        }

        /**
         * @param stateName Stage of deployment of this serverless instance when the resource made its request.
         * 
         * @return builder
         * 
         */
        public Builder stateName(String stateName) {
            return stateName(Output.of(stateName));
        }

        public GetServerlessInstanceArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetServerlessInstanceArgs", "name");
            }
            if ($.projectId == null) {
                throw new MissingRequiredPropertyException("GetServerlessInstanceArgs", "projectId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy