Package com.pulumi.gcp.storage.inputs
Class BucketRetentionPolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.storage.inputs.BucketRetentionPolicyArgs.Builder
-
- Enclosing class:
- BucketRetentionPolicyArgs
public static final class BucketRetentionPolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(BucketRetentionPolicyArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BucketRetentionPolicyArgs
build()
BucketRetentionPolicyArgs.Builder
isLocked(com.pulumi.core.Output<java.lang.Boolean> isLocked)
BucketRetentionPolicyArgs.Builder
isLocked(java.lang.Boolean isLocked)
BucketRetentionPolicyArgs.Builder
retentionPeriod(com.pulumi.core.Output<java.lang.Integer> retentionPeriod)
BucketRetentionPolicyArgs.Builder
retentionPeriod(java.lang.Integer retentionPeriod)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(BucketRetentionPolicyArgs defaults)
-
-
Method Detail
-
isLocked
public BucketRetentionPolicyArgs.Builder isLocked(@Nullable com.pulumi.core.Output<java.lang.Boolean> isLocked)
- Parameters:
isLocked
- If set to `true`, the bucket will be [locked](https://cloud.google.com/storage/docs/using-bucket-lock#lock-bucket) and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action.- Returns:
- builder
-
isLocked
public BucketRetentionPolicyArgs.Builder isLocked(java.lang.Boolean isLocked)
- Parameters:
isLocked
- If set to `true`, the bucket will be [locked](https://cloud.google.com/storage/docs/using-bucket-lock#lock-bucket) and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action.- Returns:
- builder
-
retentionPeriod
public BucketRetentionPolicyArgs.Builder retentionPeriod(com.pulumi.core.Output<java.lang.Integer> retentionPeriod)
- Parameters:
retentionPeriod
- The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. The value must be less than 2,147,483,647 seconds.- Returns:
- builder
-
retentionPeriod
public BucketRetentionPolicyArgs.Builder retentionPeriod(java.lang.Integer retentionPeriod)
- Parameters:
retentionPeriod
- The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. The value must be less than 2,147,483,647 seconds.- Returns:
- builder
-
build
public BucketRetentionPolicyArgs build()
-
-