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

com.pulumi.azurenative.documentdb.inputs.PeriodicModePropertiesArgs 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.azurenative.documentdb.inputs;

import com.pulumi.azurenative.documentdb.enums.BackupStorageRedundancy;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Configuration values for periodic mode backup
 * 
 */
public final class PeriodicModePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final PeriodicModePropertiesArgs Empty = new PeriodicModePropertiesArgs();

    /**
     * An integer representing the interval in minutes between two backups
     * 
     */
    @Import(name="backupIntervalInMinutes")
    private @Nullable Output backupIntervalInMinutes;

    /**
     * @return An integer representing the interval in minutes between two backups
     * 
     */
    public Optional> backupIntervalInMinutes() {
        return Optional.ofNullable(this.backupIntervalInMinutes);
    }

    /**
     * An integer representing the time (in hours) that each backup is retained
     * 
     */
    @Import(name="backupRetentionIntervalInHours")
    private @Nullable Output backupRetentionIntervalInHours;

    /**
     * @return An integer representing the time (in hours) that each backup is retained
     * 
     */
    public Optional> backupRetentionIntervalInHours() {
        return Optional.ofNullable(this.backupRetentionIntervalInHours);
    }

    /**
     * Enum to indicate type of backup residency
     * 
     */
    @Import(name="backupStorageRedundancy")
    private @Nullable Output> backupStorageRedundancy;

    /**
     * @return Enum to indicate type of backup residency
     * 
     */
    public Optional>> backupStorageRedundancy() {
        return Optional.ofNullable(this.backupStorageRedundancy);
    }

    private PeriodicModePropertiesArgs() {}

    private PeriodicModePropertiesArgs(PeriodicModePropertiesArgs $) {
        this.backupIntervalInMinutes = $.backupIntervalInMinutes;
        this.backupRetentionIntervalInHours = $.backupRetentionIntervalInHours;
        this.backupStorageRedundancy = $.backupStorageRedundancy;
    }

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

    public static final class Builder {
        private PeriodicModePropertiesArgs $;

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

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

        /**
         * @param backupIntervalInMinutes An integer representing the interval in minutes between two backups
         * 
         * @return builder
         * 
         */
        public Builder backupIntervalInMinutes(@Nullable Output backupIntervalInMinutes) {
            $.backupIntervalInMinutes = backupIntervalInMinutes;
            return this;
        }

        /**
         * @param backupIntervalInMinutes An integer representing the interval in minutes between two backups
         * 
         * @return builder
         * 
         */
        public Builder backupIntervalInMinutes(Integer backupIntervalInMinutes) {
            return backupIntervalInMinutes(Output.of(backupIntervalInMinutes));
        }

        /**
         * @param backupRetentionIntervalInHours An integer representing the time (in hours) that each backup is retained
         * 
         * @return builder
         * 
         */
        public Builder backupRetentionIntervalInHours(@Nullable Output backupRetentionIntervalInHours) {
            $.backupRetentionIntervalInHours = backupRetentionIntervalInHours;
            return this;
        }

        /**
         * @param backupRetentionIntervalInHours An integer representing the time (in hours) that each backup is retained
         * 
         * @return builder
         * 
         */
        public Builder backupRetentionIntervalInHours(Integer backupRetentionIntervalInHours) {
            return backupRetentionIntervalInHours(Output.of(backupRetentionIntervalInHours));
        }

        /**
         * @param backupStorageRedundancy Enum to indicate type of backup residency
         * 
         * @return builder
         * 
         */
        public Builder backupStorageRedundancy(@Nullable Output> backupStorageRedundancy) {
            $.backupStorageRedundancy = backupStorageRedundancy;
            return this;
        }

        /**
         * @param backupStorageRedundancy Enum to indicate type of backup residency
         * 
         * @return builder
         * 
         */
        public Builder backupStorageRedundancy(Either backupStorageRedundancy) {
            return backupStorageRedundancy(Output.of(backupStorageRedundancy));
        }

        /**
         * @param backupStorageRedundancy Enum to indicate type of backup residency
         * 
         * @return builder
         * 
         */
        public Builder backupStorageRedundancy(String backupStorageRedundancy) {
            return backupStorageRedundancy(Either.ofLeft(backupStorageRedundancy));
        }

        /**
         * @param backupStorageRedundancy Enum to indicate type of backup residency
         * 
         * @return builder
         * 
         */
        public Builder backupStorageRedundancy(BackupStorageRedundancy backupStorageRedundancy) {
            return backupStorageRedundancy(Either.ofRight(backupStorageRedundancy));
        }

        public PeriodicModePropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy