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

com.pulumi.azurenative.datamigration.outputs.MongoDbDatabaseSettingsResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.outputs;

import com.pulumi.azurenative.datamigration.outputs.MongoDbCollectionSettingsResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class MongoDbDatabaseSettingsResponse {
    /**
     * @return The collections on the source database to migrate to the target. The keys are the unqualified names of the collections.
     * 
     */
    private Map collections;
    /**
     * @return The RUs that should be configured on a CosmosDB target, or null to use the default, or 0 if throughput should not be provisioned for the database. This has no effect on non-CosmosDB targets.
     * 
     */
    private @Nullable Integer targetRUs;

    private MongoDbDatabaseSettingsResponse() {}
    /**
     * @return The collections on the source database to migrate to the target. The keys are the unqualified names of the collections.
     * 
     */
    public Map collections() {
        return this.collections;
    }
    /**
     * @return The RUs that should be configured on a CosmosDB target, or null to use the default, or 0 if throughput should not be provisioned for the database. This has no effect on non-CosmosDB targets.
     * 
     */
    public Optional targetRUs() {
        return Optional.ofNullable(this.targetRUs);
    }

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

    public static Builder builder(MongoDbDatabaseSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Map collections;
        private @Nullable Integer targetRUs;
        public Builder() {}
        public Builder(MongoDbDatabaseSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.collections = defaults.collections;
    	      this.targetRUs = defaults.targetRUs;
        }

        @CustomType.Setter
        public Builder collections(Map collections) {
            if (collections == null) {
              throw new MissingRequiredPropertyException("MongoDbDatabaseSettingsResponse", "collections");
            }
            this.collections = collections;
            return this;
        }
        @CustomType.Setter
        public Builder targetRUs(@Nullable Integer targetRUs) {

            this.targetRUs = targetRUs;
            return this;
        }
        public MongoDbDatabaseSettingsResponse build() {
            final var _resultValue = new MongoDbDatabaseSettingsResponse();
            _resultValue.collections = collections;
            _resultValue.targetRUs = targetRUs;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy