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

com.pulumi.aws.backup.inputs.PlanRuleLifecycleArgs Maven / Gradle / Ivy

Go to download

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

The 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.inputs;

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


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

    public static final PlanRuleLifecycleArgs Empty = new PlanRuleLifecycleArgs();

    /**
     * Specifies the number of days after creation that a recovery point is moved to cold storage.
     * 
     */
    @Import(name="coldStorageAfter")
    private @Nullable Output coldStorageAfter;

    /**
     * @return Specifies the number of days after creation that a recovery point is moved to cold storage.
     * 
     */
    public Optional> coldStorageAfter() {
        return Optional.ofNullable(this.coldStorageAfter);
    }

    /**
     * Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
     * 
     */
    @Import(name="deleteAfter")
    private @Nullable Output deleteAfter;

    /**
     * @return Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
     * 
     */
    public Optional> deleteAfter() {
        return Optional.ofNullable(this.deleteAfter);
    }

    /**
     * This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
     * 
     */
    @Import(name="optInToArchiveForSupportedResources")
    private @Nullable Output optInToArchiveForSupportedResources;

    /**
     * @return This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
     * 
     */
    public Optional> optInToArchiveForSupportedResources() {
        return Optional.ofNullable(this.optInToArchiveForSupportedResources);
    }

    private PlanRuleLifecycleArgs() {}

    private PlanRuleLifecycleArgs(PlanRuleLifecycleArgs $) {
        this.coldStorageAfter = $.coldStorageAfter;
        this.deleteAfter = $.deleteAfter;
        this.optInToArchiveForSupportedResources = $.optInToArchiveForSupportedResources;
    }

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

    public static final class Builder {
        private PlanRuleLifecycleArgs $;

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

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

        /**
         * @param coldStorageAfter Specifies the number of days after creation that a recovery point is moved to cold storage.
         * 
         * @return builder
         * 
         */
        public Builder coldStorageAfter(@Nullable Output coldStorageAfter) {
            $.coldStorageAfter = coldStorageAfter;
            return this;
        }

        /**
         * @param coldStorageAfter Specifies the number of days after creation that a recovery point is moved to cold storage.
         * 
         * @return builder
         * 
         */
        public Builder coldStorageAfter(Integer coldStorageAfter) {
            return coldStorageAfter(Output.of(coldStorageAfter));
        }

        /**
         * @param deleteAfter Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
         * 
         * @return builder
         * 
         */
        public Builder deleteAfter(@Nullable Output deleteAfter) {
            $.deleteAfter = deleteAfter;
            return this;
        }

        /**
         * @param deleteAfter Specifies the number of days after creation that a recovery point is deleted. Must be 90 days greater than `cold_storage_after`.
         * 
         * @return builder
         * 
         */
        public Builder deleteAfter(Integer deleteAfter) {
            return deleteAfter(Output.of(deleteAfter));
        }

        /**
         * @param optInToArchiveForSupportedResources This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
         * 
         * @return builder
         * 
         */
        public Builder optInToArchiveForSupportedResources(@Nullable Output optInToArchiveForSupportedResources) {
            $.optInToArchiveForSupportedResources = optInToArchiveForSupportedResources;
            return this;
        }

        /**
         * @param optInToArchiveForSupportedResources This setting will instruct your backup plan to transition supported resources to archive (cold) storage tier in accordance with your lifecycle settings.
         * 
         * @return builder
         * 
         */
        public Builder optInToArchiveForSupportedResources(Boolean optInToArchiveForSupportedResources) {
            return optInToArchiveForSupportedResources(Output.of(optInToArchiveForSupportedResources));
        }

        public PlanRuleLifecycleArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy