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

com.pulumi.aws.backup.VaultLockConfigurationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
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.aws.backup;

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


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

    public static final VaultLockConfigurationArgs Empty = new VaultLockConfigurationArgs();

    /**
     * Name of the backup vault to add a lock configuration for.
     * 
     */
    @Import(name="backupVaultName", required=true)
    private Output backupVaultName;

    /**
     * @return Name of the backup vault to add a lock configuration for.
     * 
     */
    public Output backupVaultName() {
        return this.backupVaultName;
    }

    /**
     * The number of days before the lock date. If omitted creates a vault lock in `governance` mode, otherwise it will create a vault lock in `compliance` mode.
     * 
     */
    @Import(name="changeableForDays")
    private @Nullable Output changeableForDays;

    /**
     * @return The number of days before the lock date. If omitted creates a vault lock in `governance` mode, otherwise it will create a vault lock in `compliance` mode.
     * 
     */
    public Optional> changeableForDays() {
        return Optional.ofNullable(this.changeableForDays);
    }

    /**
     * The maximum retention period that the vault retains its recovery points.
     * 
     */
    @Import(name="maxRetentionDays")
    private @Nullable Output maxRetentionDays;

    /**
     * @return The maximum retention period that the vault retains its recovery points.
     * 
     */
    public Optional> maxRetentionDays() {
        return Optional.ofNullable(this.maxRetentionDays);
    }

    /**
     * The minimum retention period that the vault retains its recovery points.
     * 
     */
    @Import(name="minRetentionDays")
    private @Nullable Output minRetentionDays;

    /**
     * @return The minimum retention period that the vault retains its recovery points.
     * 
     */
    public Optional> minRetentionDays() {
        return Optional.ofNullable(this.minRetentionDays);
    }

    private VaultLockConfigurationArgs() {}

    private VaultLockConfigurationArgs(VaultLockConfigurationArgs $) {
        this.backupVaultName = $.backupVaultName;
        this.changeableForDays = $.changeableForDays;
        this.maxRetentionDays = $.maxRetentionDays;
        this.minRetentionDays = $.minRetentionDays;
    }

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

    public static final class Builder {
        private VaultLockConfigurationArgs $;

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

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

        /**
         * @param backupVaultName Name of the backup vault to add a lock configuration for.
         * 
         * @return builder
         * 
         */
        public Builder backupVaultName(Output backupVaultName) {
            $.backupVaultName = backupVaultName;
            return this;
        }

        /**
         * @param backupVaultName Name of the backup vault to add a lock configuration for.
         * 
         * @return builder
         * 
         */
        public Builder backupVaultName(String backupVaultName) {
            return backupVaultName(Output.of(backupVaultName));
        }

        /**
         * @param changeableForDays The number of days before the lock date. If omitted creates a vault lock in `governance` mode, otherwise it will create a vault lock in `compliance` mode.
         * 
         * @return builder
         * 
         */
        public Builder changeableForDays(@Nullable Output changeableForDays) {
            $.changeableForDays = changeableForDays;
            return this;
        }

        /**
         * @param changeableForDays The number of days before the lock date. If omitted creates a vault lock in `governance` mode, otherwise it will create a vault lock in `compliance` mode.
         * 
         * @return builder
         * 
         */
        public Builder changeableForDays(Integer changeableForDays) {
            return changeableForDays(Output.of(changeableForDays));
        }

        /**
         * @param maxRetentionDays The maximum retention period that the vault retains its recovery points.
         * 
         * @return builder
         * 
         */
        public Builder maxRetentionDays(@Nullable Output maxRetentionDays) {
            $.maxRetentionDays = maxRetentionDays;
            return this;
        }

        /**
         * @param maxRetentionDays The maximum retention period that the vault retains its recovery points.
         * 
         * @return builder
         * 
         */
        public Builder maxRetentionDays(Integer maxRetentionDays) {
            return maxRetentionDays(Output.of(maxRetentionDays));
        }

        /**
         * @param minRetentionDays The minimum retention period that the vault retains its recovery points.
         * 
         * @return builder
         * 
         */
        public Builder minRetentionDays(@Nullable Output minRetentionDays) {
            $.minRetentionDays = minRetentionDays;
            return this;
        }

        /**
         * @param minRetentionDays The minimum retention period that the vault retains its recovery points.
         * 
         * @return builder
         * 
         */
        public Builder minRetentionDays(Integer minRetentionDays) {
            return minRetentionDays(Output.of(minRetentionDays));
        }

        public VaultLockConfigurationArgs build() {
            if ($.backupVaultName == null) {
                throw new MissingRequiredPropertyException("VaultLockConfigurationArgs", "backupVaultName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy