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

com.pulumi.azurenative.documentdb.inputs.DatabaseRestoreResourceArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specific Databases to restore.
 * 
 */
public final class DatabaseRestoreResourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final DatabaseRestoreResourceArgs Empty = new DatabaseRestoreResourceArgs();

    /**
     * The names of the collections available for restore.
     * 
     */
    @Import(name="collectionNames")
    private @Nullable Output> collectionNames;

    /**
     * @return The names of the collections available for restore.
     * 
     */
    public Optional>> collectionNames() {
        return Optional.ofNullable(this.collectionNames);
    }

    /**
     * The name of the database available for restore.
     * 
     */
    @Import(name="databaseName")
    private @Nullable Output databaseName;

    /**
     * @return The name of the database available for restore.
     * 
     */
    public Optional> databaseName() {
        return Optional.ofNullable(this.databaseName);
    }

    private DatabaseRestoreResourceArgs() {}

    private DatabaseRestoreResourceArgs(DatabaseRestoreResourceArgs $) {
        this.collectionNames = $.collectionNames;
        this.databaseName = $.databaseName;
    }

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

    public static final class Builder {
        private DatabaseRestoreResourceArgs $;

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

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

        /**
         * @param collectionNames The names of the collections available for restore.
         * 
         * @return builder
         * 
         */
        public Builder collectionNames(@Nullable Output> collectionNames) {
            $.collectionNames = collectionNames;
            return this;
        }

        /**
         * @param collectionNames The names of the collections available for restore.
         * 
         * @return builder
         * 
         */
        public Builder collectionNames(List collectionNames) {
            return collectionNames(Output.of(collectionNames));
        }

        /**
         * @param collectionNames The names of the collections available for restore.
         * 
         * @return builder
         * 
         */
        public Builder collectionNames(String... collectionNames) {
            return collectionNames(List.of(collectionNames));
        }

        /**
         * @param databaseName The name of the database available for restore.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(@Nullable Output databaseName) {
            $.databaseName = databaseName;
            return this;
        }

        /**
         * @param databaseName The name of the database available for restore.
         * 
         * @return builder
         * 
         */
        public Builder databaseName(String databaseName) {
            return databaseName(Output.of(databaseName));
        }

        public DatabaseRestoreResourceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy