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

com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs 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.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetArgs;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class FederatedDatabaseInstanceStorageStoreReadPreferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final FederatedDatabaseInstanceStorageStoreReadPreferenceArgs Empty = new FederatedDatabaseInstanceStorageStoreReadPreferenceArgs();

    @Import(name="maxStalenessSeconds")
    private @Nullable Output maxStalenessSeconds;

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

    @Import(name="mode")
    private @Nullable Output mode;

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

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

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

    private FederatedDatabaseInstanceStorageStoreReadPreferenceArgs() {}

    private FederatedDatabaseInstanceStorageStoreReadPreferenceArgs(FederatedDatabaseInstanceStorageStoreReadPreferenceArgs $) {
        this.maxStalenessSeconds = $.maxStalenessSeconds;
        this.mode = $.mode;
        this.tagSets = $.tagSets;
    }

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

    public static final class Builder {
        private FederatedDatabaseInstanceStorageStoreReadPreferenceArgs $;

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

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

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

        public Builder maxStalenessSeconds(Integer maxStalenessSeconds) {
            return maxStalenessSeconds(Output.of(maxStalenessSeconds));
        }

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

        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

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

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

        public Builder tagSets(FederatedDatabaseInstanceStorageStoreReadPreferenceTagSetArgs... tagSets) {
            return tagSets(List.of(tagSets));
        }

        public FederatedDatabaseInstanceStorageStoreReadPreferenceArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy