com.pulumi.aws.s3.inputs.BucketObjectLockConfigurationV2RuleArgs 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.inputs;
import com.pulumi.aws.s3.inputs.BucketObjectLockConfigurationV2RuleDefaultRetentionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
public final class BucketObjectLockConfigurationV2RuleArgs extends com.pulumi.resources.ResourceArgs {
public static final BucketObjectLockConfigurationV2RuleArgs Empty = new BucketObjectLockConfigurationV2RuleArgs();
/**
* Configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket. See below.
*
*/
@Import(name="defaultRetention", required=true)
private Output defaultRetention;
/**
* @return Configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket. See below.
*
*/
public Output defaultRetention() {
return this.defaultRetention;
}
private BucketObjectLockConfigurationV2RuleArgs() {}
private BucketObjectLockConfigurationV2RuleArgs(BucketObjectLockConfigurationV2RuleArgs $) {
this.defaultRetention = $.defaultRetention;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BucketObjectLockConfigurationV2RuleArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private BucketObjectLockConfigurationV2RuleArgs $;
public Builder() {
$ = new BucketObjectLockConfigurationV2RuleArgs();
}
public Builder(BucketObjectLockConfigurationV2RuleArgs defaults) {
$ = new BucketObjectLockConfigurationV2RuleArgs(Objects.requireNonNull(defaults));
}
/**
* @param defaultRetention Configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket. See below.
*
* @return builder
*
*/
public Builder defaultRetention(Output defaultRetention) {
$.defaultRetention = defaultRetention;
return this;
}
/**
* @param defaultRetention Configuration block for specifying the default Object Lock retention settings for new objects placed in the specified bucket. See below.
*
* @return builder
*
*/
public Builder defaultRetention(BucketObjectLockConfigurationV2RuleDefaultRetentionArgs defaultRetention) {
return defaultRetention(Output.of(defaultRetention));
}
public BucketObjectLockConfigurationV2RuleArgs build() {
if ($.defaultRetention == null) {
throw new MissingRequiredPropertyException("BucketObjectLockConfigurationV2RuleArgs", "defaultRetention");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy