com.pulumi.aws.dlm.outputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
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.dlm.outputs;
import com.pulumi.aws.dlm.outputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule;
import com.pulumi.aws.dlm.outputs.LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule {
private @Nullable String cmkArn;
private @Nullable Boolean copyTags;
private @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule deprecateRule;
private Boolean encrypted;
private @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule retainRule;
private String target;
private LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule() {}
public Optional cmkArn() {
return Optional.ofNullable(this.cmkArn);
}
public Optional copyTags() {
return Optional.ofNullable(this.copyTags);
}
public Optional deprecateRule() {
return Optional.ofNullable(this.deprecateRule);
}
public Boolean encrypted() {
return this.encrypted;
}
public Optional retainRule() {
return Optional.ofNullable(this.retainRule);
}
public String target() {
return this.target;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String cmkArn;
private @Nullable Boolean copyTags;
private @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule deprecateRule;
private Boolean encrypted;
private @Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule retainRule;
private String target;
public Builder() {}
public Builder(LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule defaults) {
Objects.requireNonNull(defaults);
this.cmkArn = defaults.cmkArn;
this.copyTags = defaults.copyTags;
this.deprecateRule = defaults.deprecateRule;
this.encrypted = defaults.encrypted;
this.retainRule = defaults.retainRule;
this.target = defaults.target;
}
@CustomType.Setter
public Builder cmkArn(@Nullable String cmkArn) {
this.cmkArn = cmkArn;
return this;
}
@CustomType.Setter
public Builder copyTags(@Nullable Boolean copyTags) {
this.copyTags = copyTags;
return this;
}
@CustomType.Setter
public Builder deprecateRule(@Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleDeprecateRule deprecateRule) {
this.deprecateRule = deprecateRule;
return this;
}
@CustomType.Setter
public Builder encrypted(Boolean encrypted) {
if (encrypted == null) {
throw new MissingRequiredPropertyException("LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule", "encrypted");
}
this.encrypted = encrypted;
return this;
}
@CustomType.Setter
public Builder retainRule(@Nullable LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRuleRetainRule retainRule) {
this.retainRule = retainRule;
return this;
}
@CustomType.Setter
public Builder target(String target) {
if (target == null) {
throw new MissingRequiredPropertyException("LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule", "target");
}
this.target = target;
return this;
}
public LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule build() {
final var _resultValue = new LifecyclePolicyPolicyDetailsScheduleCrossRegionCopyRule();
_resultValue.cmkArn = cmkArn;
_resultValue.copyTags = copyTags;
_resultValue.deprecateRule = deprecateRule;
_resultValue.encrypted = encrypted;
_resultValue.retainRule = retainRule;
_resultValue.target = target;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy