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

com.pulumi.mongodbatlas.inputs.ClusterSnapshotBackupPolicyArgs 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.ClusterSnapshotBackupPolicyPolicyArgs;
import java.lang.Boolean;
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 ClusterSnapshotBackupPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ClusterSnapshotBackupPolicyArgs Empty = new ClusterSnapshotBackupPolicyArgs();

    /**
     * The cluster ID.
     * 
     */
    @Import(name="clusterId")
    private @Nullable Output clusterId;

    /**
     * @return The cluster ID.
     * 
     */
    public Optional> clusterId() {
        return Optional.ofNullable(this.clusterId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    private ClusterSnapshotBackupPolicyArgs() {}

    private ClusterSnapshotBackupPolicyArgs(ClusterSnapshotBackupPolicyArgs $) {
        this.clusterId = $.clusterId;
        this.clusterName = $.clusterName;
        this.nextSnapshot = $.nextSnapshot;
        this.policies = $.policies;
        this.referenceHourOfDay = $.referenceHourOfDay;
        this.referenceMinuteOfHour = $.referenceMinuteOfHour;
        this.restoreWindowDays = $.restoreWindowDays;
        this.updateSnapshots = $.updateSnapshots;
    }

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

    public static final class Builder {
        private ClusterSnapshotBackupPolicyArgs $;

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

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

        /**
         * @param clusterId The cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(@Nullable Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId The cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

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

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

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

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

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

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

        public Builder policies(ClusterSnapshotBackupPolicyPolicyArgs... policies) {
            return policies(List.of(policies));
        }

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

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

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

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

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

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

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

        public Builder updateSnapshots(Boolean updateSnapshots) {
            return updateSnapshots(Output.of(updateSnapshots));
        }

        public ClusterSnapshotBackupPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy