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

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

There is a newer version: 2.89.2
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.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MongoDbThrottlingSettingsResponse {
    /**
     * @return The maximum number of work items (e.g. collection copies) that will be processed in parallel
     * 
     */
    private @Nullable Integer maxParallelism;
    /**
     * @return The percentage of CPU time that the migrator will try to avoid using, from 0 to 100
     * 
     */
    private @Nullable Integer minFreeCpu;
    /**
     * @return The number of megabytes of RAM that the migrator will try to avoid using
     * 
     */
    private @Nullable Integer minFreeMemoryMb;

    private MongoDbThrottlingSettingsResponse() {}
    /**
     * @return The maximum number of work items (e.g. collection copies) that will be processed in parallel
     * 
     */
    public Optional maxParallelism() {
        return Optional.ofNullable(this.maxParallelism);
    }
    /**
     * @return The percentage of CPU time that the migrator will try to avoid using, from 0 to 100
     * 
     */
    public Optional minFreeCpu() {
        return Optional.ofNullable(this.minFreeCpu);
    }
    /**
     * @return The number of megabytes of RAM that the migrator will try to avoid using
     * 
     */
    public Optional minFreeMemoryMb() {
        return Optional.ofNullable(this.minFreeMemoryMb);
    }

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

    public static Builder builder(MongoDbThrottlingSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer maxParallelism;
        private @Nullable Integer minFreeCpu;
        private @Nullable Integer minFreeMemoryMb;
        public Builder() {}
        public Builder(MongoDbThrottlingSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxParallelism = defaults.maxParallelism;
    	      this.minFreeCpu = defaults.minFreeCpu;
    	      this.minFreeMemoryMb = defaults.minFreeMemoryMb;
        }

        @CustomType.Setter
        public Builder maxParallelism(@Nullable Integer maxParallelism) {

            this.maxParallelism = maxParallelism;
            return this;
        }
        @CustomType.Setter
        public Builder minFreeCpu(@Nullable Integer minFreeCpu) {

            this.minFreeCpu = minFreeCpu;
            return this;
        }
        @CustomType.Setter
        public Builder minFreeMemoryMb(@Nullable Integer minFreeMemoryMb) {

            this.minFreeMemoryMb = minFreeMemoryMb;
            return this;
        }
        public MongoDbThrottlingSettingsResponse build() {
            final var _resultValue = new MongoDbThrottlingSettingsResponse();
            _resultValue.maxParallelism = maxParallelism;
            _resultValue.minFreeCpu = minFreeCpu;
            _resultValue.minFreeMemoryMb = minFreeMemoryMb;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy