Class StorageBucketLifecycleRuleCondition.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • daysSinceNoncurrentTime

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder daysSinceNoncurrentTime​(Number daysSinceNoncurrentTime)
        Parameters:
        daysSinceNoncurrentTime - Number of days elapsed since the noncurrent timestamp of an object. This condition is relevant only for versioned objects. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#days_since_noncurrent_time StorageBucket#days_since_noncurrent_time}
        Returns:
        this
      • matchesStorageClass

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder matchesStorageClass​(List<String> matchesStorageClass)
        Parameters:
        matchesStorageClass - Storage Class of objects to satisfy this condition. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, DURABLE_REDUCED_AVAILABILITY. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#matches_storage_class StorageBucket#matches_storage_class}
        Returns:
        this
      • noAge

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder noAge​(com.hashicorp.cdktf.IResolvable noAge)
        Parameters:
        noAge - While set true, age value will be omitted.Required to set true when age is unset in the config file. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#no_age StorageBucket#no_age}
        Returns:
        this
      • noncurrentTimeBefore

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder noncurrentTimeBefore​(String noncurrentTimeBefore)
        Parameters:
        noncurrentTimeBefore - Creation date of an object in RFC 3339 (e.g. 2017-06-13) to satisfy this condition. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#noncurrent_time_before StorageBucket#noncurrent_time_before}
        Returns:
        this
      • numNewerVersions

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder numNewerVersions​(Number numNewerVersions)
        Parameters:
        numNewerVersions - Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#num_newer_versions StorageBucket#num_newer_versions}
        Returns:
        this
      • sendAgeIfZero

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder sendAgeIfZero​(Boolean sendAgeIfZero)
        Parameters:
        sendAgeIfZero - While set true, age value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the age field. It can be used alone or together with age. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#send_age_if_zero StorageBucket#send_age_if_zero}
        Returns:
        this
      • sendAgeIfZero

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder sendAgeIfZero​(com.hashicorp.cdktf.IResolvable sendAgeIfZero)
        Parameters:
        sendAgeIfZero - While set true, age value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the age field. It can be used alone or together with age. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#send_age_if_zero StorageBucket#send_age_if_zero}
        Returns:
        this
      • sendDaysSinceCustomTimeIfZero

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder sendDaysSinceCustomTimeIfZero​(Boolean sendDaysSinceCustomTimeIfZero)
        Parameters:
        sendDaysSinceCustomTimeIfZero - While set true, days_since_custom_time value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the days_since_custom_time field. It can be used alone or together with days_since_custom_time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#send_days_since_custom_time_if_zero StorageBucket#send_days_since_custom_time_if_zero}
        Returns:
        this
      • sendDaysSinceCustomTimeIfZero

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder sendDaysSinceCustomTimeIfZero​(com.hashicorp.cdktf.IResolvable sendDaysSinceCustomTimeIfZero)
        Parameters:
        sendDaysSinceCustomTimeIfZero - While set true, days_since_custom_time value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the days_since_custom_time field. It can be used alone or together with days_since_custom_time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#send_days_since_custom_time_if_zero StorageBucket#send_days_since_custom_time_if_zero}
        Returns:
        this
      • sendDaysSinceNoncurrentTimeIfZero

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder sendDaysSinceNoncurrentTimeIfZero​(Boolean sendDaysSinceNoncurrentTimeIfZero)
        Parameters:
        sendDaysSinceNoncurrentTimeIfZero - While set true, days_since_noncurrent_time value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the days_since_noncurrent_time field. It can be used alone or together with days_since_noncurrent_time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#send_days_since_noncurrent_time_if_zero StorageBucket#send_days_since_noncurrent_time_if_zero}
        Returns:
        this
      • sendDaysSinceNoncurrentTimeIfZero

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder sendDaysSinceNoncurrentTimeIfZero​(com.hashicorp.cdktf.IResolvable sendDaysSinceNoncurrentTimeIfZero)
        Parameters:
        sendDaysSinceNoncurrentTimeIfZero - While set true, days_since_noncurrent_time value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the days_since_noncurrent_time field. It can be used alone or together with days_since_noncurrent_time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#send_days_since_noncurrent_time_if_zero StorageBucket#send_days_since_noncurrent_time_if_zero}
        Returns:
        this
      • sendNumNewerVersionsIfZero

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder sendNumNewerVersionsIfZero​(Boolean sendNumNewerVersionsIfZero)
        Parameters:
        sendNumNewerVersionsIfZero - While set true, num_newer_versions value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the num_newer_versions field. It can be used alone or together with num_newer_versions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#send_num_newer_versions_if_zero StorageBucket#send_num_newer_versions_if_zero}
        Returns:
        this
      • sendNumNewerVersionsIfZero

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder sendNumNewerVersionsIfZero​(com.hashicorp.cdktf.IResolvable sendNumNewerVersionsIfZero)
        Parameters:
        sendNumNewerVersionsIfZero - While set true, num_newer_versions value will be sent in the request even for zero value of the field. This field is only useful for setting 0 value to the num_newer_versions field. It can be used alone or together with num_newer_versions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#send_num_newer_versions_if_zero StorageBucket#send_num_newer_versions_if_zero}
        Returns:
        this
      • withState

        @Stability(Stable)
        public StorageBucketLifecycleRuleCondition.Builder withState​(String withState)
        Parameters:
        withState - Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: "LIVE", "ARCHIVED", "ANY". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#with_state StorageBucket#with_state}
        Returns:
        this