Class StorageBucketObjectConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bucket

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

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder name​(String name)
        Parameters:
        name - The name of the object. If you're interpolating the name of this object, see output_name instead. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#name StorageBucketObject#name}
        Returns:
        this
      • cacheControl

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder cacheControl​(String cacheControl)
        Parameters:
        cacheControl - Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600 Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#cache_control StorageBucketObject#cache_control}
        Returns:
        this
      • content

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder content​(String content)
        Parameters:
        content - Data as string to be uploaded. Must be defined if source is not. Note: The content field is marked as sensitive. To view the raw contents of the object, please define an output. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#content StorageBucketObject#content}
        Returns:
        this
      • contentDisposition

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder contentDisposition​(String contentDisposition)
        Parameters:
        contentDisposition - Content-Disposition of the object data. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#content_disposition StorageBucketObject#content_disposition}
        Returns:
        this
      • contentEncoding

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder contentEncoding​(String contentEncoding)
        Parameters:
        contentEncoding - Content-Encoding of the object data. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#content_encoding StorageBucketObject#content_encoding}
        Returns:
        this
      • contentLanguage

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder contentLanguage​(String contentLanguage)
        Parameters:
        contentLanguage - Content-Language of the object data. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#content_language StorageBucketObject#content_language}
        Returns:
        this
      • contentType

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder contentType​(String contentType)
        Parameters:
        contentType - Content-Type of the object data. Defaults to "application/octet-stream" or "text/plain; charset=utf-8". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#content_type StorageBucketObject#content_type}
        Returns:
        this
      • eventBasedHold

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder eventBasedHold​(Boolean eventBasedHold)
        Parameters:
        eventBasedHold - Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#event_based_hold StorageBucketObject#event_based_hold}
        Returns:
        this
      • eventBasedHold

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder eventBasedHold​(com.hashicorp.cdktf.IResolvable eventBasedHold)
        Parameters:
        eventBasedHold - Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold's release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#event_based_hold StorageBucketObject#event_based_hold}
        Returns:
        this
      • id

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#id StorageBucketObject#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
      • kmsKeyName

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder kmsKeyName​(String kmsKeyName)
        Parameters:
        kmsKeyName - Resource name of the Cloud KMS key that will be used to encrypt the object. Overrides the object metadata's kmsKeyName value, if any. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#kms_key_name StorageBucketObject#kms_key_name}
        Returns:
        this
      • source

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder source​(String source)
        Parameters:
        source - A path to the data you want to upload. Must be defined if content is not. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#source StorageBucketObject#source}
        Returns:
        this
      • storageClass

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder storageClass​(String storageClass)
        Parameters:
        storageClass - The StorageClass of the new bucket object. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE. If not provided, this defaults to the bucket's default storage class or to a standard class. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#storage_class StorageBucketObject#storage_class}
        Returns:
        this
      • temporaryHold

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder temporaryHold​(Boolean temporaryHold)
        Parameters:
        temporaryHold - Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#temporary_hold StorageBucketObject#temporary_hold}
        Returns:
        this
      • temporaryHold

        @Stability(Stable)
        public StorageBucketObjectConfig.Builder temporaryHold​(com.hashicorp.cdktf.IResolvable temporaryHold)
        Parameters:
        temporaryHold - Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#temporary_hold StorageBucketObject#temporary_hold}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public StorageBucketObjectConfig.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 StorageBucketObjectConfig.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 StorageBucketObjectConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

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