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

com.pulumi.azure.dataprotection.BackupPolicyPostgresqlFlexibleServerArgs 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.dataprotection;

import com.pulumi.azure.dataprotection.inputs.BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleArgs;
import com.pulumi.azure.dataprotection.inputs.BackupPolicyPostgresqlFlexibleServerRetentionRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BackupPolicyPostgresqlFlexibleServerArgs Empty = new BackupPolicyPostgresqlFlexibleServerArgs();

    /**
     * Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval format. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="backupRepeatingTimeIntervals", required=true)
    private Output> backupRepeatingTimeIntervals;

    /**
     * @return Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval format. Changing this forces a new resource to be created.
     * 
     */
    public Output> backupRepeatingTimeIntervals() {
        return this.backupRepeatingTimeIntervals;
    }

    /**
     * A `default_retention_rule` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="defaultRetentionRule", required=true)
    private Output defaultRetentionRule;

    /**
     * @return A `default_retention_rule` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Output defaultRetentionRule() {
        return this.defaultRetentionRule;
    }

    /**
     * Specifies the name of the Backup Policy for the PostgreSQL Flexible Server. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the Backup Policy for the PostgreSQL Flexible Server. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * One or more `retention_rule` blocks as defined below. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="retentionRules")
    private @Nullable Output> retentionRules;

    /**
     * @return One or more `retention_rule` blocks as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Optional>> retentionRules() {
        return Optional.ofNullable(this.retentionRules);
    }

    /**
     * Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="timeZone")
    private @Nullable Output timeZone;

    /**
     * @return Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new resource to be created.
     * 
     */
    public Optional> timeZone() {
        return Optional.ofNullable(this.timeZone);
    }

    /**
     * The ID of the Backup Vault where the Backup Policy PostgreSQL Flexible Server should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="vaultId", required=true)
    private Output vaultId;

    /**
     * @return The ID of the Backup Vault where the Backup Policy PostgreSQL Flexible Server should exist. Changing this forces a new resource to be created.
     * 
     */
    public Output vaultId() {
        return this.vaultId;
    }

    private BackupPolicyPostgresqlFlexibleServerArgs() {}

    private BackupPolicyPostgresqlFlexibleServerArgs(BackupPolicyPostgresqlFlexibleServerArgs $) {
        this.backupRepeatingTimeIntervals = $.backupRepeatingTimeIntervals;
        this.defaultRetentionRule = $.defaultRetentionRule;
        this.name = $.name;
        this.retentionRules = $.retentionRules;
        this.timeZone = $.timeZone;
        this.vaultId = $.vaultId;
    }

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

    public static final class Builder {
        private BackupPolicyPostgresqlFlexibleServerArgs $;

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

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

        /**
         * @param backupRepeatingTimeIntervals Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval format. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder backupRepeatingTimeIntervals(Output> backupRepeatingTimeIntervals) {
            $.backupRepeatingTimeIntervals = backupRepeatingTimeIntervals;
            return this;
        }

        /**
         * @param backupRepeatingTimeIntervals Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval format. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder backupRepeatingTimeIntervals(List backupRepeatingTimeIntervals) {
            return backupRepeatingTimeIntervals(Output.of(backupRepeatingTimeIntervals));
        }

        /**
         * @param backupRepeatingTimeIntervals Specifies a list of repeating time interval. It supports weekly back. It should follow `ISO 8601` repeating time interval format. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder backupRepeatingTimeIntervals(String... backupRepeatingTimeIntervals) {
            return backupRepeatingTimeIntervals(List.of(backupRepeatingTimeIntervals));
        }

        /**
         * @param defaultRetentionRule A `default_retention_rule` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder defaultRetentionRule(Output defaultRetentionRule) {
            $.defaultRetentionRule = defaultRetentionRule;
            return this;
        }

        /**
         * @param defaultRetentionRule A `default_retention_rule` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder defaultRetentionRule(BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleArgs defaultRetentionRule) {
            return defaultRetentionRule(Output.of(defaultRetentionRule));
        }

        /**
         * @param name Specifies the name of the Backup Policy for the PostgreSQL Flexible Server. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Backup Policy for the PostgreSQL Flexible Server. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param retentionRules One or more `retention_rule` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder retentionRules(@Nullable Output> retentionRules) {
            $.retentionRules = retentionRules;
            return this;
        }

        /**
         * @param retentionRules One or more `retention_rule` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder retentionRules(List retentionRules) {
            return retentionRules(Output.of(retentionRules));
        }

        /**
         * @param retentionRules One or more `retention_rule` blocks as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder retentionRules(BackupPolicyPostgresqlFlexibleServerRetentionRuleArgs... retentionRules) {
            return retentionRules(List.of(retentionRules));
        }

        /**
         * @param timeZone Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder timeZone(@Nullable Output timeZone) {
            $.timeZone = timeZone;
            return this;
        }

        /**
         * @param timeZone Specifies the Time Zone which should be used by the backup schedule. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder timeZone(String timeZone) {
            return timeZone(Output.of(timeZone));
        }

        /**
         * @param vaultId The ID of the Backup Vault where the Backup Policy PostgreSQL Flexible Server should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder vaultId(Output vaultId) {
            $.vaultId = vaultId;
            return this;
        }

        /**
         * @param vaultId The ID of the Backup Vault where the Backup Policy PostgreSQL Flexible Server should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder vaultId(String vaultId) {
            return vaultId(Output.of(vaultId));
        }

        public BackupPolicyPostgresqlFlexibleServerArgs build() {
            if ($.backupRepeatingTimeIntervals == null) {
                throw new MissingRequiredPropertyException("BackupPolicyPostgresqlFlexibleServerArgs", "backupRepeatingTimeIntervals");
            }
            if ($.defaultRetentionRule == null) {
                throw new MissingRequiredPropertyException("BackupPolicyPostgresqlFlexibleServerArgs", "defaultRetentionRule");
            }
            if ($.vaultId == null) {
                throw new MissingRequiredPropertyException("BackupPolicyPostgresqlFlexibleServerArgs", "vaultId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy