Class BucketRetentionPolicyArgs.Builder

  • Enclosing class:
    BucketRetentionPolicyArgs

    public static final class BucketRetentionPolicyArgs.Builder
    extends java.lang.Object
    • 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