Class StorageBucketLifecycleRuleCondition.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_bucket.StorageBucketLifecycleRuleCondition.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageBucketLifecycleRuleCondition>
- Enclosing interface:
- StorageBucketLifecycleRuleCondition
@Stability(Stable) public static final class StorageBucketLifecycleRuleCondition.Builder extends Object implements software.amazon.jsii.Builder<StorageBucketLifecycleRuleCondition>
A builder forStorageBucketLifecycleRuleCondition
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
age
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder age(Number age)
Sets the value ofStorageBucketLifecycleRuleCondition.getAge()- Parameters:
age- Minimum age of an object in days to satisfy this condition. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#age StorageBucket#age}- Returns:
this
-
createdBefore
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder createdBefore(String createdBefore)
Sets the value ofStorageBucketLifecycleRuleCondition.getCreatedBefore()- Parameters:
createdBefore- 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#created_before StorageBucket#created_before}- Returns:
this
-
customTimeBefore
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder customTimeBefore(String customTimeBefore)
Sets the value ofStorageBucketLifecycleRuleCondition.getCustomTimeBefore()- Parameters:
customTimeBefore- 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#custom_time_before StorageBucket#custom_time_before}- Returns:
this
-
daysSinceCustomTime
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder daysSinceCustomTime(Number daysSinceCustomTime)
Sets the value ofStorageBucketLifecycleRuleCondition.getDaysSinceCustomTime()- Parameters:
daysSinceCustomTime- Number of days elapsed since the user-specified timestamp set on an object. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#days_since_custom_time StorageBucket#days_since_custom_time}- Returns:
this
-
daysSinceNoncurrentTime
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder daysSinceNoncurrentTime(Number daysSinceNoncurrentTime)
Sets the value ofStorageBucketLifecycleRuleCondition.getDaysSinceNoncurrentTime()- 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
-
matchesPrefix
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder matchesPrefix(List<String> matchesPrefix)
Sets the value ofStorageBucketLifecycleRuleCondition.getMatchesPrefix()- Parameters:
matchesPrefix- One or more matching name prefixes to satisfy this condition. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#matches_prefix StorageBucket#matches_prefix}- Returns:
this
-
matchesStorageClass
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder matchesStorageClass(List<String> matchesStorageClass)
Sets the value ofStorageBucketLifecycleRuleCondition.getMatchesStorageClass()- 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
-
matchesSuffix
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder matchesSuffix(List<String> matchesSuffix)
Sets the value ofStorageBucketLifecycleRuleCondition.getMatchesSuffix()- Parameters:
matchesSuffix- One or more matching name suffixes to satisfy this condition. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#matches_suffix StorageBucket#matches_suffix}- Returns:
this
-
noAge
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder noAge(Boolean noAge)
Sets the value ofStorageBucketLifecycleRuleCondition.getNoAge()- 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
-
noAge
@Stability(Stable) public StorageBucketLifecycleRuleCondition.Builder noAge(com.hashicorp.cdktf.IResolvable noAge)
Sets the value ofStorageBucketLifecycleRuleCondition.getNoAge()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getNoncurrentTimeBefore()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getNumNewerVersions()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getSendAgeIfZero()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getSendAgeIfZero()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getSendDaysSinceCustomTimeIfZero()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getSendDaysSinceCustomTimeIfZero()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getSendNumNewerVersionsIfZero()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getSendNumNewerVersionsIfZero()- 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)
Sets the value ofStorageBucketLifecycleRuleCondition.getWithState()- 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
-
build
@Stability(Stable) public StorageBucketLifecycleRuleCondition build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageBucketLifecycleRuleCondition>- Returns:
- a new instance of
StorageBucketLifecycleRuleCondition - Throws:
NullPointerException- if any required attribute was not provided
-
-