// *** 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.LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs;
import com.pulumi.aws.dlm.inputs.LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs Empty = new LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs();

    /**
     * The encryption settings for the copied snapshot. See the `encryption_configuration` block. Max of 1 per action.
     * 
     */
    @Import(name="encryptionConfiguration", required=true)
    private Output<LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs> encryptionConfiguration;

    /**
     * @return The encryption settings for the copied snapshot. See the `encryption_configuration` block. Max of 1 per action.
     * 
     */
    public Output<LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs> encryptionConfiguration() {
        return this.encryptionConfiguration;
    }

    /**
     * Specifies the retention rule for cross-Region snapshot copies. See the `retain_rule` block. Max of 1 per action.
     * 
     */
    @Import(name="retainRule")
    private @Nullable Output<LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs> retainRule;

    /**
     * @return Specifies the retention rule for cross-Region snapshot copies. See the `retain_rule` block. Max of 1 per action.
     * 
     */
    public Optional<Output<LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs>> retainRule() {
        return Optional.ofNullable(this.retainRule);
    }

    /**
     * The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
     * 
     */
    @Import(name="target", required=true)
    private Output<String> target;

    /**
     * @return The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
     * 
     */
    public Output<String> target() {
        return this.target;
    }

    private LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs() {}

    private LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs(LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs $) {
        this.encryptionConfiguration = $.encryptionConfiguration;
        this.retainRule = $.retainRule;
        this.target = $.target;
    }

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

    public static final class Builder {
        private LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs $;

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

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

        /**
         * @param encryptionConfiguration The encryption settings for the copied snapshot. See the `encryption_configuration` block. Max of 1 per action.
         * 
         * @return builder
         * 
         */
        public Builder encryptionConfiguration(Output<LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs> encryptionConfiguration) {
            $.encryptionConfiguration = encryptionConfiguration;
            return this;
        }

        /**
         * @param encryptionConfiguration The encryption settings for the copied snapshot. See the `encryption_configuration` block. Max of 1 per action.
         * 
         * @return builder
         * 
         */
        public Builder encryptionConfiguration(LifecyclePolicyPolicyDetailsActionCrossRegionCopyEncryptionConfigurationArgs encryptionConfiguration) {
            return encryptionConfiguration(Output.of(encryptionConfiguration));
        }

        /**
         * @param retainRule Specifies the retention rule for cross-Region snapshot copies. See the `retain_rule` block. Max of 1 per action.
         * 
         * @return builder
         * 
         */
        public Builder retainRule(@Nullable Output<LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs> retainRule) {
            $.retainRule = retainRule;
            return this;
        }

        /**
         * @param retainRule Specifies the retention rule for cross-Region snapshot copies. See the `retain_rule` block. Max of 1 per action.
         * 
         * @return builder
         * 
         */
        public Builder retainRule(LifecyclePolicyPolicyDetailsActionCrossRegionCopyRetainRuleArgs retainRule) {
            return retainRule(Output.of(retainRule));
        }

        /**
         * @param target The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
         * 
         * @return builder
         * 
         */
        public Builder target(Output<String> target) {
            $.target = target;
            return this;
        }

        /**
         * @param target The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
         * 
         * @return builder
         * 
         */
        public Builder target(String target) {
            return target(Output.of(target));
        }

        public LifecyclePolicyPolicyDetailsActionCrossRegionCopyArgs build() {
            $.encryptionConfiguration = Objects.requireNonNull($.encryptionConfiguration, "expected parameter 'encryptionConfiguration' to be non-null");
            $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null");
            return $;
        }
    }

}
