com.pulumi.aws.s3control.outputs.BucketLifecycleConfigurationRule 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.
// *** 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.s3control.outputs;
import com.pulumi.aws.s3control.outputs.BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload;
import com.pulumi.aws.s3control.outputs.BucketLifecycleConfigurationRuleExpiration;
import com.pulumi.aws.s3control.outputs.BucketLifecycleConfigurationRuleFilter;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BucketLifecycleConfigurationRule {
/**
* @return Configuration block containing settings for abort incomplete multipart upload.
*
*/
private @Nullable BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload;
/**
* @return Configuration block containing settings for expiration of objects.
*
*/
private @Nullable BucketLifecycleConfigurationRuleExpiration expiration;
/**
* @return Configuration block containing settings for filtering.
*
*/
private @Nullable BucketLifecycleConfigurationRuleFilter filter;
/**
* @return Unique identifier for the rule.
*
*/
private String id;
/**
* @return Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`.
*
*/
private @Nullable String status;
private BucketLifecycleConfigurationRule() {}
/**
* @return Configuration block containing settings for abort incomplete multipart upload.
*
*/
public Optional abortIncompleteMultipartUpload() {
return Optional.ofNullable(this.abortIncompleteMultipartUpload);
}
/**
* @return Configuration block containing settings for expiration of objects.
*
*/
public Optional expiration() {
return Optional.ofNullable(this.expiration);
}
/**
* @return Configuration block containing settings for filtering.
*
*/
public Optional filter() {
return Optional.ofNullable(this.filter);
}
/**
* @return Unique identifier for the rule.
*
*/
public String id() {
return this.id;
}
/**
* @return Status of the rule. Valid values: `Enabled` and `Disabled`. Defaults to `Enabled`.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BucketLifecycleConfigurationRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload;
private @Nullable BucketLifecycleConfigurationRuleExpiration expiration;
private @Nullable BucketLifecycleConfigurationRuleFilter filter;
private String id;
private @Nullable String status;
public Builder() {}
public Builder(BucketLifecycleConfigurationRule defaults) {
Objects.requireNonNull(defaults);
this.abortIncompleteMultipartUpload = defaults.abortIncompleteMultipartUpload;
this.expiration = defaults.expiration;
this.filter = defaults.filter;
this.id = defaults.id;
this.status = defaults.status;
}
@CustomType.Setter
public Builder abortIncompleteMultipartUpload(@Nullable BucketLifecycleConfigurationRuleAbortIncompleteMultipartUpload abortIncompleteMultipartUpload) {
this.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload;
return this;
}
@CustomType.Setter
public Builder expiration(@Nullable BucketLifecycleConfigurationRuleExpiration expiration) {
this.expiration = expiration;
return this;
}
@CustomType.Setter
public Builder filter(@Nullable BucketLifecycleConfigurationRuleFilter filter) {
this.filter = filter;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("BucketLifecycleConfigurationRule", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public BucketLifecycleConfigurationRule build() {
final var _resultValue = new BucketLifecycleConfigurationRule();
_resultValue.abortIncompleteMultipartUpload = abortIncompleteMultipartUpload;
_resultValue.expiration = expiration;
_resultValue.filter = filter;
_resultValue.id = id;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy