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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs Empty = new BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs();

    /**
     * The type of data store. The only possible value is `VaultStore`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="dataStoreType", required=true)
    private Output dataStoreType;

    /**
     * @return The type of data store. The only possible value is `VaultStore`. Changing this forces a new resource to be created.
     * 
     */
    public Output dataStoreType() {
        return this.dataStoreType;
    }

    /**
     * The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="duration", required=true)
    private Output duration;

    /**
     * @return The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
     * 
     */
    public Output duration() {
        return this.duration;
    }

    private BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs() {}

    private BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs(BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs $) {
        this.dataStoreType = $.dataStoreType;
        this.duration = $.duration;
    }

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

    public static final class Builder {
        private BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs $;

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

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

        /**
         * @param dataStoreType The type of data store. The only possible value is `VaultStore`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder dataStoreType(Output dataStoreType) {
            $.dataStoreType = dataStoreType;
            return this;
        }

        /**
         * @param dataStoreType The type of data store. The only possible value is `VaultStore`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder dataStoreType(String dataStoreType) {
            return dataStoreType(Output.of(dataStoreType));
        }

        /**
         * @param duration The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder duration(Output duration) {
            $.duration = duration;
            return this;
        }

        /**
         * @param duration The retention duration up to which the backups are to be retained in the data stores. It should follow `ISO 8601` duration format. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder duration(String duration) {
            return duration(Output.of(duration));
        }

        public BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs build() {
            if ($.dataStoreType == null) {
                throw new MissingRequiredPropertyException("BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs", "dataStoreType");
            }
            if ($.duration == null) {
                throw new MissingRequiredPropertyException("BackupPolicyPostgresqlFlexibleServerDefaultRetentionRuleLifeCycleArgs", "duration");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy