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

com.pulumi.azure.mssql.inputs.VirtualMachineAutoBackupArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.mssql.inputs;

import com.pulumi.azure.mssql.inputs.VirtualMachineAutoBackupManualScheduleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualMachineAutoBackupArgs Empty = new VirtualMachineAutoBackupArgs();

    /**
     * Enable or disable encryption for backups. Defaults to `false`.
     * 
     */
    @Import(name="encryptionEnabled")
    private @Nullable Output encryptionEnabled;

    /**
     * @return Enable or disable encryption for backups. Defaults to `false`.
     * 
     */
    public Optional> encryptionEnabled() {
        return Optional.ofNullable(this.encryptionEnabled);
    }

    /**
     * Encryption password to use. Must be specified when encryption is enabled.
     * 
     */
    @Import(name="encryptionPassword")
    private @Nullable Output encryptionPassword;

    /**
     * @return Encryption password to use. Must be specified when encryption is enabled.
     * 
     */
    public Optional> encryptionPassword() {
        return Optional.ofNullable(this.encryptionPassword);
    }

    /**
     * A `manual_schedule` block as documented below. When this block is present, the schedule type is set to `Manual`. Without this block, the schedule type is set to `Automated`.
     * 
     */
    @Import(name="manualSchedule")
    private @Nullable Output manualSchedule;

    /**
     * @return A `manual_schedule` block as documented below. When this block is present, the schedule type is set to `Manual`. Without this block, the schedule type is set to `Automated`.
     * 
     */
    public Optional> manualSchedule() {
        return Optional.ofNullable(this.manualSchedule);
    }

    /**
     * Retention period of backups, in days. Valid values are from `1` to `30`.
     * 
     */
    @Import(name="retentionPeriodInDays", required=true)
    private Output retentionPeriodInDays;

    /**
     * @return Retention period of backups, in days. Valid values are from `1` to `30`.
     * 
     */
    public Output retentionPeriodInDays() {
        return this.retentionPeriodInDays;
    }

    /**
     * Access key for the storage account where backups will be kept.
     * 
     */
    @Import(name="storageAccountAccessKey", required=true)
    private Output storageAccountAccessKey;

    /**
     * @return Access key for the storage account where backups will be kept.
     * 
     */
    public Output storageAccountAccessKey() {
        return this.storageAccountAccessKey;
    }

    /**
     * Blob endpoint for the storage account where backups will be kept.
     * 
     */
    @Import(name="storageBlobEndpoint", required=true)
    private Output storageBlobEndpoint;

    /**
     * @return Blob endpoint for the storage account where backups will be kept.
     * 
     */
    public Output storageBlobEndpoint() {
        return this.storageBlobEndpoint;
    }

    /**
     * Include or exclude system databases from auto backup.
     * 
     */
    @Import(name="systemDatabasesBackupEnabled")
    private @Nullable Output systemDatabasesBackupEnabled;

    /**
     * @return Include or exclude system databases from auto backup.
     * 
     */
    public Optional> systemDatabasesBackupEnabled() {
        return Optional.ofNullable(this.systemDatabasesBackupEnabled);
    }

    private VirtualMachineAutoBackupArgs() {}

    private VirtualMachineAutoBackupArgs(VirtualMachineAutoBackupArgs $) {
        this.encryptionEnabled = $.encryptionEnabled;
        this.encryptionPassword = $.encryptionPassword;
        this.manualSchedule = $.manualSchedule;
        this.retentionPeriodInDays = $.retentionPeriodInDays;
        this.storageAccountAccessKey = $.storageAccountAccessKey;
        this.storageBlobEndpoint = $.storageBlobEndpoint;
        this.systemDatabasesBackupEnabled = $.systemDatabasesBackupEnabled;
    }

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

    public static final class Builder {
        private VirtualMachineAutoBackupArgs $;

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

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

        /**
         * @param encryptionEnabled Enable or disable encryption for backups. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder encryptionEnabled(@Nullable Output encryptionEnabled) {
            $.encryptionEnabled = encryptionEnabled;
            return this;
        }

        /**
         * @param encryptionEnabled Enable or disable encryption for backups. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder encryptionEnabled(Boolean encryptionEnabled) {
            return encryptionEnabled(Output.of(encryptionEnabled));
        }

        /**
         * @param encryptionPassword Encryption password to use. Must be specified when encryption is enabled.
         * 
         * @return builder
         * 
         */
        public Builder encryptionPassword(@Nullable Output encryptionPassword) {
            $.encryptionPassword = encryptionPassword;
            return this;
        }

        /**
         * @param encryptionPassword Encryption password to use. Must be specified when encryption is enabled.
         * 
         * @return builder
         * 
         */
        public Builder encryptionPassword(String encryptionPassword) {
            return encryptionPassword(Output.of(encryptionPassword));
        }

        /**
         * @param manualSchedule A `manual_schedule` block as documented below. When this block is present, the schedule type is set to `Manual`. Without this block, the schedule type is set to `Automated`.
         * 
         * @return builder
         * 
         */
        public Builder manualSchedule(@Nullable Output manualSchedule) {
            $.manualSchedule = manualSchedule;
            return this;
        }

        /**
         * @param manualSchedule A `manual_schedule` block as documented below. When this block is present, the schedule type is set to `Manual`. Without this block, the schedule type is set to `Automated`.
         * 
         * @return builder
         * 
         */
        public Builder manualSchedule(VirtualMachineAutoBackupManualScheduleArgs manualSchedule) {
            return manualSchedule(Output.of(manualSchedule));
        }

        /**
         * @param retentionPeriodInDays Retention period of backups, in days. Valid values are from `1` to `30`.
         * 
         * @return builder
         * 
         */
        public Builder retentionPeriodInDays(Output retentionPeriodInDays) {
            $.retentionPeriodInDays = retentionPeriodInDays;
            return this;
        }

        /**
         * @param retentionPeriodInDays Retention period of backups, in days. Valid values are from `1` to `30`.
         * 
         * @return builder
         * 
         */
        public Builder retentionPeriodInDays(Integer retentionPeriodInDays) {
            return retentionPeriodInDays(Output.of(retentionPeriodInDays));
        }

        /**
         * @param storageAccountAccessKey Access key for the storage account where backups will be kept.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountAccessKey(Output storageAccountAccessKey) {
            $.storageAccountAccessKey = storageAccountAccessKey;
            return this;
        }

        /**
         * @param storageAccountAccessKey Access key for the storage account where backups will be kept.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountAccessKey(String storageAccountAccessKey) {
            return storageAccountAccessKey(Output.of(storageAccountAccessKey));
        }

        /**
         * @param storageBlobEndpoint Blob endpoint for the storage account where backups will be kept.
         * 
         * @return builder
         * 
         */
        public Builder storageBlobEndpoint(Output storageBlobEndpoint) {
            $.storageBlobEndpoint = storageBlobEndpoint;
            return this;
        }

        /**
         * @param storageBlobEndpoint Blob endpoint for the storage account where backups will be kept.
         * 
         * @return builder
         * 
         */
        public Builder storageBlobEndpoint(String storageBlobEndpoint) {
            return storageBlobEndpoint(Output.of(storageBlobEndpoint));
        }

        /**
         * @param systemDatabasesBackupEnabled Include or exclude system databases from auto backup.
         * 
         * @return builder
         * 
         */
        public Builder systemDatabasesBackupEnabled(@Nullable Output systemDatabasesBackupEnabled) {
            $.systemDatabasesBackupEnabled = systemDatabasesBackupEnabled;
            return this;
        }

        /**
         * @param systemDatabasesBackupEnabled Include or exclude system databases from auto backup.
         * 
         * @return builder
         * 
         */
        public Builder systemDatabasesBackupEnabled(Boolean systemDatabasesBackupEnabled) {
            return systemDatabasesBackupEnabled(Output.of(systemDatabasesBackupEnabled));
        }

        public VirtualMachineAutoBackupArgs build() {
            if ($.retentionPeriodInDays == null) {
                throw new MissingRequiredPropertyException("VirtualMachineAutoBackupArgs", "retentionPeriodInDays");
            }
            if ($.storageAccountAccessKey == null) {
                throw new MissingRequiredPropertyException("VirtualMachineAutoBackupArgs", "storageAccountAccessKey");
            }
            if ($.storageBlobEndpoint == null) {
                throw new MissingRequiredPropertyException("VirtualMachineAutoBackupArgs", "storageBlobEndpoint");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy