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

com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleArgs 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.60.0-alpha.1731982519
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.dlm.inputs;

import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs;
import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs;
import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleDeprecateRuleArgs;
import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleFastRestoreRuleArgs;
import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleRetainRuleArgs;
import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsScheduleShareRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final LifecyclePolicyPolicyDetailsScheduleArgs Empty = new LifecyclePolicyPolicyDetailsScheduleArgs();

    @Import(name="copyTags")
    private @Nullable Output copyTags;

    public Optional> copyTags() {
        return Optional.ofNullable(this.copyTags);
    }

    /**
     * See the `create_rule` block. Max of 1 per schedule.
     * 
     */
    @Import(name="createRule", required=true)
    private Output createRule;

    /**
     * @return See the `create_rule` block. Max of 1 per schedule.
     * 
     */
    public Output createRule() {
        return this.createRule;
    }

    /**
     * See the `cross_region_copy_rule` block. Max of 3 per schedule.
     * 
     */
    @Import(name="crossRegionCopyRules")
    private @Nullable Output> crossRegionCopyRules;

    /**
     * @return See the `cross_region_copy_rule` block. Max of 3 per schedule.
     * 
     */
    public Optional>> crossRegionCopyRules() {
        return Optional.ofNullable(this.crossRegionCopyRules);
    }

    @Import(name="deprecateRule")
    private @Nullable Output deprecateRule;

    public Optional> deprecateRule() {
        return Optional.ofNullable(this.deprecateRule);
    }

    /**
     * See the `fast_restore_rule` block. Max of 1 per schedule.
     * 
     */
    @Import(name="fastRestoreRule")
    private @Nullable Output fastRestoreRule;

    /**
     * @return See the `fast_restore_rule` block. Max of 1 per schedule.
     * 
     */
    public Optional> fastRestoreRule() {
        return Optional.ofNullable(this.fastRestoreRule);
    }

    @Import(name="name", required=true)
    private Output name;

    public Output name() {
        return this.name;
    }

    @Import(name="retainRule", required=true)
    private Output retainRule;

    public Output retainRule() {
        return this.retainRule;
    }

    /**
     * See the `share_rule` block. Max of 1 per schedule.
     * 
     */
    @Import(name="shareRule")
    private @Nullable Output shareRule;

    /**
     * @return See the `share_rule` block. Max of 1 per schedule.
     * 
     */
    public Optional> shareRule() {
        return Optional.ofNullable(this.shareRule);
    }

    /**
     * A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
     * 
     */
    @Import(name="tagsToAdd")
    private @Nullable Output> tagsToAdd;

    /**
     * @return A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
     * 
     */
    public Optional>> tagsToAdd() {
        return Optional.ofNullable(this.tagsToAdd);
    }

    /**
     * A map of tag keys and variable values, where the values are determined when the policy is executed. Only `$(instance-id)` or `$(timestamp)` are valid values. Can only be used when `resource_types` is `INSTANCE`.
     * 
     */
    @Import(name="variableTags")
    private @Nullable Output> variableTags;

    /**
     * @return A map of tag keys and variable values, where the values are determined when the policy is executed. Only `$(instance-id)` or `$(timestamp)` are valid values. Can only be used when `resource_types` is `INSTANCE`.
     * 
     */
    public Optional>> variableTags() {
        return Optional.ofNullable(this.variableTags);
    }

    private LifecyclePolicyPolicyDetailsScheduleArgs() {}

    private LifecyclePolicyPolicyDetailsScheduleArgs(LifecyclePolicyPolicyDetailsScheduleArgs $) {
        this.copyTags = $.copyTags;
        this.createRule = $.createRule;
        this.crossRegionCopyRules = $.crossRegionCopyRules;
        this.deprecateRule = $.deprecateRule;
        this.fastRestoreRule = $.fastRestoreRule;
        this.name = $.name;
        this.retainRule = $.retainRule;
        this.shareRule = $.shareRule;
        this.tagsToAdd = $.tagsToAdd;
        this.variableTags = $.variableTags;
    }

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

    public static final class Builder {
        private LifecyclePolicyPolicyDetailsScheduleArgs $;

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

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

        public Builder copyTags(@Nullable Output copyTags) {
            $.copyTags = copyTags;
            return this;
        }

        public Builder copyTags(Boolean copyTags) {
            return copyTags(Output.of(copyTags));
        }

        /**
         * @param createRule See the `create_rule` block. Max of 1 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder createRule(Output createRule) {
            $.createRule = createRule;
            return this;
        }

        /**
         * @param createRule See the `create_rule` block. Max of 1 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder createRule(LifecyclePolicyPolicyDetailsScheduleCreateRuleArgs createRule) {
            return createRule(Output.of(createRule));
        }

        /**
         * @param crossRegionCopyRules See the `cross_region_copy_rule` block. Max of 3 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder crossRegionCopyRules(@Nullable Output> crossRegionCopyRules) {
            $.crossRegionCopyRules = crossRegionCopyRules;
            return this;
        }

        /**
         * @param crossRegionCopyRules See the `cross_region_copy_rule` block. Max of 3 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder crossRegionCopyRules(List crossRegionCopyRules) {
            return crossRegionCopyRules(Output.of(crossRegionCopyRules));
        }

        /**
         * @param crossRegionCopyRules See the `cross_region_copy_rule` block. Max of 3 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder crossRegionCopyRules(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleArgs... crossRegionCopyRules) {
            return crossRegionCopyRules(List.of(crossRegionCopyRules));
        }

        public Builder deprecateRule(@Nullable Output deprecateRule) {
            $.deprecateRule = deprecateRule;
            return this;
        }

        public Builder deprecateRule(LifecyclePolicyPolicyDetailsScheduleDeprecateRuleArgs deprecateRule) {
            return deprecateRule(Output.of(deprecateRule));
        }

        /**
         * @param fastRestoreRule See the `fast_restore_rule` block. Max of 1 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder fastRestoreRule(@Nullable Output fastRestoreRule) {
            $.fastRestoreRule = fastRestoreRule;
            return this;
        }

        /**
         * @param fastRestoreRule See the `fast_restore_rule` block. Max of 1 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder fastRestoreRule(LifecyclePolicyPolicyDetailsScheduleFastRestoreRuleArgs fastRestoreRule) {
            return fastRestoreRule(Output.of(fastRestoreRule));
        }

        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        public Builder name(String name) {
            return name(Output.of(name));
        }

        public Builder retainRule(Output retainRule) {
            $.retainRule = retainRule;
            return this;
        }

        public Builder retainRule(LifecyclePolicyPolicyDetailsScheduleRetainRuleArgs retainRule) {
            return retainRule(Output.of(retainRule));
        }

        /**
         * @param shareRule See the `share_rule` block. Max of 1 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder shareRule(@Nullable Output shareRule) {
            $.shareRule = shareRule;
            return this;
        }

        /**
         * @param shareRule See the `share_rule` block. Max of 1 per schedule.
         * 
         * @return builder
         * 
         */
        public Builder shareRule(LifecyclePolicyPolicyDetailsScheduleShareRuleArgs shareRule) {
            return shareRule(Output.of(shareRule));
        }

        /**
         * @param tagsToAdd A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
         * 
         * @return builder
         * 
         */
        public Builder tagsToAdd(@Nullable Output> tagsToAdd) {
            $.tagsToAdd = tagsToAdd;
            return this;
        }

        /**
         * @param tagsToAdd A map of tag keys and their values. DLM lifecycle policies will already tag the snapshot with the tags on the volume. This configuration adds extra tags on top of these.
         * 
         * @return builder
         * 
         */
        public Builder tagsToAdd(Map tagsToAdd) {
            return tagsToAdd(Output.of(tagsToAdd));
        }

        /**
         * @param variableTags A map of tag keys and variable values, where the values are determined when the policy is executed. Only `$(instance-id)` or `$(timestamp)` are valid values. Can only be used when `resource_types` is `INSTANCE`.
         * 
         * @return builder
         * 
         */
        public Builder variableTags(@Nullable Output> variableTags) {
            $.variableTags = variableTags;
            return this;
        }

        /**
         * @param variableTags A map of tag keys and variable values, where the values are determined when the policy is executed. Only `$(instance-id)` or `$(timestamp)` are valid values. Can only be used when `resource_types` is `INSTANCE`.
         * 
         * @return builder
         * 
         */
        public Builder variableTags(Map variableTags) {
            return variableTags(Output.of(variableTags));
        }

        public LifecyclePolicyPolicyDetailsScheduleArgs build() {
            if ($.createRule == null) {
                throw new MissingRequiredPropertyException("LifecyclePolicyPolicyDetailsScheduleArgs", "createRule");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("LifecyclePolicyPolicyDetailsScheduleArgs", "name");
            }
            if ($.retainRule == null) {
                throw new MissingRequiredPropertyException("LifecyclePolicyPolicyDetailsScheduleArgs", "retainRule");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy