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

com.pulumi.azurenative.datamigration.inputs.MongoDbMigrationSettingsArgs 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.datamigration.inputs;

import com.pulumi.azurenative.datamigration.enums.MongoDbReplication;
import com.pulumi.azurenative.datamigration.inputs.MongoDbConnectionInfoArgs;
import com.pulumi.azurenative.datamigration.inputs.MongoDbDatabaseSettingsArgs;
import com.pulumi.azurenative.datamigration.inputs.MongoDbThrottlingSettingsArgs;
import com.pulumi.core.Either;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes how a MongoDB data migration should be performed
 * 
 */
public final class MongoDbMigrationSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final MongoDbMigrationSettingsArgs Empty = new MongoDbMigrationSettingsArgs();

    /**
     * The RU limit on a CosmosDB target that collections will be temporarily increased to (if lower) during the initial copy of a migration, from 10,000 to 1,000,000, or 0 to use the default boost (which is generally the maximum), or null to not boost the RUs. This setting has no effect on non-CosmosDB targets.
     * 
     */
    @Import(name="boostRUs")
    private @Nullable Output boostRUs;

    /**
     * @return The RU limit on a CosmosDB target that collections will be temporarily increased to (if lower) during the initial copy of a migration, from 10,000 to 1,000,000, or 0 to use the default boost (which is generally the maximum), or null to not boost the RUs. This setting has no effect on non-CosmosDB targets.
     * 
     */
    public Optional> boostRUs() {
        return Optional.ofNullable(this.boostRUs);
    }

    /**
     * The databases on the source cluster to migrate to the target. The keys are the names of the databases.
     * 
     */
    @Import(name="databases", required=true)
    private Output> databases;

    /**
     * @return The databases on the source cluster to migrate to the target. The keys are the names of the databases.
     * 
     */
    public Output> databases() {
        return this.databases;
    }

    /**
     * Describes how changes will be replicated from the source to the target. The default is OneTime.
     * 
     */
    @Import(name="replication")
    private @Nullable Output> replication;

    /**
     * @return Describes how changes will be replicated from the source to the target. The default is OneTime.
     * 
     */
    public Optional>> replication() {
        return Optional.ofNullable(this.replication);
    }

    /**
     * Settings used to connect to the source cluster
     * 
     */
    @Import(name="source", required=true)
    private Output source;

    /**
     * @return Settings used to connect to the source cluster
     * 
     */
    public Output source() {
        return this.source;
    }

    /**
     * Settings used to connect to the target cluster
     * 
     */
    @Import(name="target", required=true)
    private Output target;

    /**
     * @return Settings used to connect to the target cluster
     * 
     */
    public Output target() {
        return this.target;
    }

    /**
     * Settings used to limit the resource usage of the migration
     * 
     */
    @Import(name="throttling")
    private @Nullable Output throttling;

    /**
     * @return Settings used to limit the resource usage of the migration
     * 
     */
    public Optional> throttling() {
        return Optional.ofNullable(this.throttling);
    }

    private MongoDbMigrationSettingsArgs() {}

    private MongoDbMigrationSettingsArgs(MongoDbMigrationSettingsArgs $) {
        this.boostRUs = $.boostRUs;
        this.databases = $.databases;
        this.replication = $.replication;
        this.source = $.source;
        this.target = $.target;
        this.throttling = $.throttling;
    }

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

    public static final class Builder {
        private MongoDbMigrationSettingsArgs $;

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

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

        /**
         * @param boostRUs The RU limit on a CosmosDB target that collections will be temporarily increased to (if lower) during the initial copy of a migration, from 10,000 to 1,000,000, or 0 to use the default boost (which is generally the maximum), or null to not boost the RUs. This setting has no effect on non-CosmosDB targets.
         * 
         * @return builder
         * 
         */
        public Builder boostRUs(@Nullable Output boostRUs) {
            $.boostRUs = boostRUs;
            return this;
        }

        /**
         * @param boostRUs The RU limit on a CosmosDB target that collections will be temporarily increased to (if lower) during the initial copy of a migration, from 10,000 to 1,000,000, or 0 to use the default boost (which is generally the maximum), or null to not boost the RUs. This setting has no effect on non-CosmosDB targets.
         * 
         * @return builder
         * 
         */
        public Builder boostRUs(Integer boostRUs) {
            return boostRUs(Output.of(boostRUs));
        }

        /**
         * @param databases The databases on the source cluster to migrate to the target. The keys are the names of the databases.
         * 
         * @return builder
         * 
         */
        public Builder databases(Output> databases) {
            $.databases = databases;
            return this;
        }

        /**
         * @param databases The databases on the source cluster to migrate to the target. The keys are the names of the databases.
         * 
         * @return builder
         * 
         */
        public Builder databases(Map databases) {
            return databases(Output.of(databases));
        }

        /**
         * @param replication Describes how changes will be replicated from the source to the target. The default is OneTime.
         * 
         * @return builder
         * 
         */
        public Builder replication(@Nullable Output> replication) {
            $.replication = replication;
            return this;
        }

        /**
         * @param replication Describes how changes will be replicated from the source to the target. The default is OneTime.
         * 
         * @return builder
         * 
         */
        public Builder replication(Either replication) {
            return replication(Output.of(replication));
        }

        /**
         * @param replication Describes how changes will be replicated from the source to the target. The default is OneTime.
         * 
         * @return builder
         * 
         */
        public Builder replication(String replication) {
            return replication(Either.ofLeft(replication));
        }

        /**
         * @param replication Describes how changes will be replicated from the source to the target. The default is OneTime.
         * 
         * @return builder
         * 
         */
        public Builder replication(MongoDbReplication replication) {
            return replication(Either.ofRight(replication));
        }

        /**
         * @param source Settings used to connect to the source cluster
         * 
         * @return builder
         * 
         */
        public Builder source(Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source Settings used to connect to the source cluster
         * 
         * @return builder
         * 
         */
        public Builder source(MongoDbConnectionInfoArgs source) {
            return source(Output.of(source));
        }

        /**
         * @param target Settings used to connect to the target cluster
         * 
         * @return builder
         * 
         */
        public Builder target(Output target) {
            $.target = target;
            return this;
        }

        /**
         * @param target Settings used to connect to the target cluster
         * 
         * @return builder
         * 
         */
        public Builder target(MongoDbConnectionInfoArgs target) {
            return target(Output.of(target));
        }

        /**
         * @param throttling Settings used to limit the resource usage of the migration
         * 
         * @return builder
         * 
         */
        public Builder throttling(@Nullable Output throttling) {
            $.throttling = throttling;
            return this;
        }

        /**
         * @param throttling Settings used to limit the resource usage of the migration
         * 
         * @return builder
         * 
         */
        public Builder throttling(MongoDbThrottlingSettingsArgs throttling) {
            return throttling(Output.of(throttling));
        }

        public MongoDbMigrationSettingsArgs build() {
            if ($.databases == null) {
                throw new MissingRequiredPropertyException("MongoDbMigrationSettingsArgs", "databases");
            }
            if ($.source == null) {
                throw new MissingRequiredPropertyException("MongoDbMigrationSettingsArgs", "source");
            }
            if ($.target == null) {
                throw new MissingRequiredPropertyException("MongoDbMigrationSettingsArgs", "target");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy