
com.pulumi.aws.s3.outputs.BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition Maven / Gradle / Ivy
// *** 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.s3.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition {
/**
* @return Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.
*
*/
private @Nullable String newerNoncurrentVersions;
/**
* @return Number of days an object is noncurrent before Amazon S3 can perform the associated action.
*
*/
private @Nullable Integer noncurrentDays;
/**
* @return Class of storage used to store the object. Valid Values: `GLACIER`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `DEEP_ARCHIVE`, `GLACIER_IR`.
*
*/
private String storageClass;
private BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition() {}
/**
* @return Number of noncurrent versions Amazon S3 will retain. Must be a non-zero positive integer.
*
*/
public Optional newerNoncurrentVersions() {
return Optional.ofNullable(this.newerNoncurrentVersions);
}
/**
* @return Number of days an object is noncurrent before Amazon S3 can perform the associated action.
*
*/
public Optional noncurrentDays() {
return Optional.ofNullable(this.noncurrentDays);
}
/**
* @return Class of storage used to store the object. Valid Values: `GLACIER`, `STANDARD_IA`, `ONEZONE_IA`, `INTELLIGENT_TIERING`, `DEEP_ARCHIVE`, `GLACIER_IR`.
*
*/
public String storageClass() {
return this.storageClass;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String newerNoncurrentVersions;
private @Nullable Integer noncurrentDays;
private String storageClass;
public Builder() {}
public Builder(BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition defaults) {
Objects.requireNonNull(defaults);
this.newerNoncurrentVersions = defaults.newerNoncurrentVersions;
this.noncurrentDays = defaults.noncurrentDays;
this.storageClass = defaults.storageClass;
}
@CustomType.Setter
public Builder newerNoncurrentVersions(@Nullable String newerNoncurrentVersions) {
this.newerNoncurrentVersions = newerNoncurrentVersions;
return this;
}
@CustomType.Setter
public Builder noncurrentDays(@Nullable Integer noncurrentDays) {
this.noncurrentDays = noncurrentDays;
return this;
}
@CustomType.Setter
public Builder storageClass(String storageClass) {
if (storageClass == null) {
throw new MissingRequiredPropertyException("BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition", "storageClass");
}
this.storageClass = storageClass;
return this;
}
public BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition build() {
final var _resultValue = new BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition();
_resultValue.newerNoncurrentVersions = newerNoncurrentVersions;
_resultValue.noncurrentDays = noncurrentDays;
_resultValue.storageClass = storageClass;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy