com.pulumi.aws.dlm.outputs.LifecyclePolicyPolicyDetailsScheduleFastRestoreRule 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LifecyclePolicyPolicyDetailsScheduleFastRestoreRule {
/**
* @return The Availability Zones in which to enable fast snapshot restore.
*
*/
private List availabilityZones;
private @Nullable Integer count;
private @Nullable Integer interval;
private @Nullable String intervalUnit;
private LifecyclePolicyPolicyDetailsScheduleFastRestoreRule() {}
/**
* @return The Availability Zones in which to enable fast snapshot restore.
*
*/
public List availabilityZones() {
return this.availabilityZones;
}
public Optional count() {
return Optional.ofNullable(this.count);
}
public Optional interval() {
return Optional.ofNullable(this.interval);
}
public Optional intervalUnit() {
return Optional.ofNullable(this.intervalUnit);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LifecyclePolicyPolicyDetailsScheduleFastRestoreRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List availabilityZones;
private @Nullable Integer count;
private @Nullable Integer interval;
private @Nullable String intervalUnit;
public Builder() {}
public Builder(LifecyclePolicyPolicyDetailsScheduleFastRestoreRule defaults) {
Objects.requireNonNull(defaults);
this.availabilityZones = defaults.availabilityZones;
this.count = defaults.count;
this.interval = defaults.interval;
this.intervalUnit = defaults.intervalUnit;
}
@CustomType.Setter
public Builder availabilityZones(List availabilityZones) {
if (availabilityZones == null) {
throw new MissingRequiredPropertyException("LifecyclePolicyPolicyDetailsScheduleFastRestoreRule", "availabilityZones");
}
this.availabilityZones = availabilityZones;
return this;
}
public Builder availabilityZones(String... availabilityZones) {
return availabilityZones(List.of(availabilityZones));
}
@CustomType.Setter
public Builder count(@Nullable Integer count) {
this.count = count;
return this;
}
@CustomType.Setter
public Builder interval(@Nullable Integer interval) {
this.interval = interval;
return this;
}
@CustomType.Setter
public Builder intervalUnit(@Nullable String intervalUnit) {
this.intervalUnit = intervalUnit;
return this;
}
public LifecyclePolicyPolicyDetailsScheduleFastRestoreRule build() {
final var _resultValue = new LifecyclePolicyPolicyDetailsScheduleFastRestoreRule();
_resultValue.availabilityZones = availabilityZones;
_resultValue.count = count;
_resultValue.interval = interval;
_resultValue.intervalUnit = intervalUnit;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy