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

com.pulumi.azurenative.documentdb.inputs.PeriodicModeBackupPolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.documentdb.inputs;

import com.pulumi.azurenative.documentdb.inputs.BackupPolicyMigrationStateArgs;
import com.pulumi.azurenative.documentdb.inputs.PeriodicModePropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The object representing periodic mode backup policy.
 * 
 */
public final class PeriodicModeBackupPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final PeriodicModeBackupPolicyArgs Empty = new PeriodicModeBackupPolicyArgs();

    /**
     * The object representing the state of the migration between the backup policies.
     * 
     */
    @Import(name="migrationState")
    private @Nullable Output migrationState;

    /**
     * @return The object representing the state of the migration between the backup policies.
     * 
     */
    public Optional> migrationState() {
        return Optional.ofNullable(this.migrationState);
    }

    /**
     * Configuration values for periodic mode backup
     * 
     */
    @Import(name="periodicModeProperties")
    private @Nullable Output periodicModeProperties;

    /**
     * @return Configuration values for periodic mode backup
     * 
     */
    public Optional> periodicModeProperties() {
        return Optional.ofNullable(this.periodicModeProperties);
    }

    /**
     * Describes the mode of backups.
     * Expected value is 'Periodic'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Describes the mode of backups.
     * Expected value is 'Periodic'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private PeriodicModeBackupPolicyArgs() {}

    private PeriodicModeBackupPolicyArgs(PeriodicModeBackupPolicyArgs $) {
        this.migrationState = $.migrationState;
        this.periodicModeProperties = $.periodicModeProperties;
        this.type = $.type;
    }

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

    public static final class Builder {
        private PeriodicModeBackupPolicyArgs $;

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

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

        /**
         * @param migrationState The object representing the state of the migration between the backup policies.
         * 
         * @return builder
         * 
         */
        public Builder migrationState(@Nullable Output migrationState) {
            $.migrationState = migrationState;
            return this;
        }

        /**
         * @param migrationState The object representing the state of the migration between the backup policies.
         * 
         * @return builder
         * 
         */
        public Builder migrationState(BackupPolicyMigrationStateArgs migrationState) {
            return migrationState(Output.of(migrationState));
        }

        /**
         * @param periodicModeProperties Configuration values for periodic mode backup
         * 
         * @return builder
         * 
         */
        public Builder periodicModeProperties(@Nullable Output periodicModeProperties) {
            $.periodicModeProperties = periodicModeProperties;
            return this;
        }

        /**
         * @param periodicModeProperties Configuration values for periodic mode backup
         * 
         * @return builder
         * 
         */
        public Builder periodicModeProperties(PeriodicModePropertiesArgs periodicModeProperties) {
            return periodicModeProperties(Output.of(periodicModeProperties));
        }

        /**
         * @param type Describes the mode of backups.
         * Expected value is 'Periodic'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Describes the mode of backups.
         * Expected value is 'Periodic'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public PeriodicModeBackupPolicyArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy