Class StorageBucketRetentionPolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • retentionPeriod

        @Stability(Stable)
        public StorageBucketRetentionPolicy.Builder retentionPeriod​(Number retentionPeriod)
        Parameters:
        retentionPeriod - The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. This parameter is required. The value must be less than 3,155,760,000 seconds. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#retention_period StorageBucket#retention_period}
        Returns:
        this
      • isLocked

        @Stability(Stable)
        public StorageBucketRetentionPolicy.Builder isLocked​(Boolean isLocked)
        Parameters:
        isLocked - If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#is_locked StorageBucket#is_locked}
        Returns:
        this
      • isLocked

        @Stability(Stable)
        public StorageBucketRetentionPolicy.Builder isLocked​(com.hashicorp.cdktf.IResolvable isLocked)
        Parameters:
        isLocked - If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#is_locked StorageBucket#is_locked}
        Returns:
        this