Class StorageBucketConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • location

        @Stability(Stable)
        public StorageBucketConfig.Builder location​(String location)
        Parameters:
        location - The Google Cloud Storage location. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#location StorageBucket#location}
        Returns:
        this
      • name

        @Stability(Stable)
        public StorageBucketConfig.Builder name​(String name)
        Parameters:
        name - The name of the bucket. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#name StorageBucket#name}
        Returns:
        this
      • cors

        @Stability(Stable)
        public StorageBucketConfig.Builder cors​(com.hashicorp.cdktf.IResolvable cors)
        Parameters:
        cors - cors block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#cors StorageBucket#cors}
        Returns:
        this
      • defaultEventBasedHold

        @Stability(Stable)
        public StorageBucketConfig.Builder defaultEventBasedHold​(Boolean defaultEventBasedHold)
        Parameters:
        defaultEventBasedHold - Whether or not to automatically apply an eventBasedHold to new objects added to the bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#default_event_based_hold StorageBucket#default_event_based_hold}
        Returns:
        this
      • defaultEventBasedHold

        @Stability(Stable)
        public StorageBucketConfig.Builder defaultEventBasedHold​(com.hashicorp.cdktf.IResolvable defaultEventBasedHold)
        Parameters:
        defaultEventBasedHold - Whether or not to automatically apply an eventBasedHold to new objects added to the bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#default_event_based_hold StorageBucket#default_event_based_hold}
        Returns:
        this
      • enableObjectRetention

        @Stability(Stable)
        public StorageBucketConfig.Builder enableObjectRetention​(Boolean enableObjectRetention)
        Parameters:
        enableObjectRetention - Enables each object in the bucket to have its own retention policy, which prevents deletion until stored for a specific length of time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#enable_object_retention StorageBucket#enable_object_retention}
        Returns:
        this
      • enableObjectRetention

        @Stability(Stable)
        public StorageBucketConfig.Builder enableObjectRetention​(com.hashicorp.cdktf.IResolvable enableObjectRetention)
        Parameters:
        enableObjectRetention - Enables each object in the bucket to have its own retention policy, which prevents deletion until stored for a specific length of time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#enable_object_retention StorageBucket#enable_object_retention}
        Returns:
        this
      • forceDestroy

        @Stability(Stable)
        public StorageBucketConfig.Builder forceDestroy​(Boolean forceDestroy)
        Parameters:
        forceDestroy - When deleting a bucket, this boolean option will delete all contained objects. If you try to delete a bucket that contains objects, Terraform will fail that run. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#force_destroy StorageBucket#force_destroy}
        Returns:
        this
      • forceDestroy

        @Stability(Stable)
        public StorageBucketConfig.Builder forceDestroy​(com.hashicorp.cdktf.IResolvable forceDestroy)
        Parameters:
        forceDestroy - When deleting a bucket, this boolean option will delete all contained objects. If you try to delete a bucket that contains objects, Terraform will fail that run. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#force_destroy StorageBucket#force_destroy}
        Returns:
        this
      • id

        @Stability(Stable)
        public StorageBucketConfig.Builder id​(String id)
        Sets the value of StorageBucketConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#id StorageBucket#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
        Returns:
        this
      • labels

        @Stability(Stable)
        public StorageBucketConfig.Builder labels​(Map<String,​String> labels)
        Parameters:
        labels - A set of key/value label pairs to assign to the bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#labels StorageBucket#labels}
        Returns:
        this
      • lifecycleRule

        @Stability(Stable)
        public StorageBucketConfig.Builder lifecycleRule​(com.hashicorp.cdktf.IResolvable lifecycleRule)
        Parameters:
        lifecycleRule - lifecycle_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#lifecycle_rule StorageBucket#lifecycle_rule}
        Returns:
        this
      • project

        @Stability(Stable)
        public StorageBucketConfig.Builder project​(String project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#project StorageBucket#project}
        Returns:
        this
      • publicAccessPrevention

        @Stability(Stable)
        public StorageBucketConfig.Builder publicAccessPrevention​(String publicAccessPrevention)
        Parameters:
        publicAccessPrevention - Prevents public access to a bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#public_access_prevention StorageBucket#public_access_prevention}
        Returns:
        this
      • requesterPays

        @Stability(Stable)
        public StorageBucketConfig.Builder requesterPays​(Boolean requesterPays)
        Parameters:
        requesterPays - Enables Requester Pays on a storage bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#requester_pays StorageBucket#requester_pays}
        Returns:
        this
      • requesterPays

        @Stability(Stable)
        public StorageBucketConfig.Builder requesterPays​(com.hashicorp.cdktf.IResolvable requesterPays)
        Parameters:
        requesterPays - Enables Requester Pays on a storage bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#requester_pays StorageBucket#requester_pays}
        Returns:
        this
      • rpo

        @Stability(Stable)
        public StorageBucketConfig.Builder rpo​(String rpo)
        Parameters:
        rpo - Specifies the RPO setting of bucket. If set 'ASYNC_TURBO', The Turbo Replication will be enabled for the dual-region bucket. Value 'DEFAULT' will set RPO setting to default. Turbo Replication is only for buckets in dual-regions.See the docs for more details. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#rpo StorageBucket#rpo}
        Returns:
        this
      • storageClass

        @Stability(Stable)
        public StorageBucketConfig.Builder storageClass​(String storageClass)
        Parameters:
        storageClass - The Storage Class of the new bucket. Supported values include: STANDARD, MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#storage_class StorageBucket#storage_class}
        Returns:
        this
      • uniformBucketLevelAccess

        @Stability(Stable)
        public StorageBucketConfig.Builder uniformBucketLevelAccess​(Boolean uniformBucketLevelAccess)
        Parameters:
        uniformBucketLevelAccess - Enables uniform bucket-level access on a bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#uniform_bucket_level_access StorageBucket#uniform_bucket_level_access}
        Returns:
        this
      • uniformBucketLevelAccess

        @Stability(Stable)
        public StorageBucketConfig.Builder uniformBucketLevelAccess​(com.hashicorp.cdktf.IResolvable uniformBucketLevelAccess)
        Parameters:
        uniformBucketLevelAccess - Enables uniform bucket-level access on a bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#uniform_bucket_level_access StorageBucket#uniform_bucket_level_access}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public StorageBucketConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public StorageBucketConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public StorageBucketConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public StorageBucketConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public StorageBucketConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public StorageBucketConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public StorageBucketConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public StorageBucketConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public StorageBucketConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this