Class S3ObjectConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bucket

        @Stability(Stable)
        public S3ObjectConfig.Builder bucket​(String bucket)
        Sets the value of S3ObjectConfig.getBucket()
        Parameters:
        bucket - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#bucket S3Object#bucket}. This parameter is required.
        Returns:
        this
      • key

        @Stability(Stable)
        public S3ObjectConfig.Builder key​(String key)
        Sets the value of S3ObjectConfig.getKey()
        Parameters:
        key - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#key S3Object#key}. This parameter is required.
        Returns:
        this
      • acl

        @Stability(Stable)
        public S3ObjectConfig.Builder acl​(String acl)
        Sets the value of S3ObjectConfig.getAcl()
        Parameters:
        acl - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#acl S3Object#acl}.
        Returns:
        this
      • bucketKeyEnabled

        @Stability(Stable)
        public S3ObjectConfig.Builder bucketKeyEnabled​(Boolean bucketKeyEnabled)
        Parameters:
        bucketKeyEnabled - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#bucket_key_enabled S3Object#bucket_key_enabled}.
        Returns:
        this
      • bucketKeyEnabled

        @Stability(Stable)
        public S3ObjectConfig.Builder bucketKeyEnabled​(com.hashicorp.cdktf.IResolvable bucketKeyEnabled)
        Parameters:
        bucketKeyEnabled - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#bucket_key_enabled S3Object#bucket_key_enabled}.
        Returns:
        this
      • cacheControl

        @Stability(Stable)
        public S3ObjectConfig.Builder cacheControl​(String cacheControl)
        Parameters:
        cacheControl - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#cache_control S3Object#cache_control}.
        Returns:
        this
      • content

        @Stability(Stable)
        public S3ObjectConfig.Builder content​(String content)
        Sets the value of S3ObjectConfig.getContent()
        Parameters:
        content - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#content S3Object#content}.
        Returns:
        this
      • contentBase64

        @Stability(Stable)
        public S3ObjectConfig.Builder contentBase64​(String contentBase64)
        Parameters:
        contentBase64 - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#content_base64 S3Object#content_base64}.
        Returns:
        this
      • contentDisposition

        @Stability(Stable)
        public S3ObjectConfig.Builder contentDisposition​(String contentDisposition)
        Parameters:
        contentDisposition - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#content_disposition S3Object#content_disposition}.
        Returns:
        this
      • contentEncoding

        @Stability(Stable)
        public S3ObjectConfig.Builder contentEncoding​(String contentEncoding)
        Parameters:
        contentEncoding - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#content_encoding S3Object#content_encoding}.
        Returns:
        this
      • contentLanguage

        @Stability(Stable)
        public S3ObjectConfig.Builder contentLanguage​(String contentLanguage)
        Parameters:
        contentLanguage - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#content_language S3Object#content_language}.
        Returns:
        this
      • contentType

        @Stability(Stable)
        public S3ObjectConfig.Builder contentType​(String contentType)
        Parameters:
        contentType - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#content_type S3Object#content_type}.
        Returns:
        this
      • etag

        @Stability(Stable)
        public S3ObjectConfig.Builder etag​(String etag)
        Sets the value of S3ObjectConfig.getEtag()
        Parameters:
        etag - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#etag S3Object#etag}.
        Returns:
        this
      • forceDestroy

        @Stability(Stable)
        public S3ObjectConfig.Builder forceDestroy​(Boolean forceDestroy)
        Parameters:
        forceDestroy - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#force_destroy S3Object#force_destroy}.
        Returns:
        this
      • forceDestroy

        @Stability(Stable)
        public S3ObjectConfig.Builder forceDestroy​(com.hashicorp.cdktf.IResolvable forceDestroy)
        Parameters:
        forceDestroy - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#force_destroy S3Object#force_destroy}.
        Returns:
        this
      • id

        @Stability(Stable)
        public S3ObjectConfig.Builder id​(String id)
        Sets the value of S3ObjectConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#id S3Object#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
      • kmsKeyId

        @Stability(Stable)
        public S3ObjectConfig.Builder kmsKeyId​(String kmsKeyId)
        Parameters:
        kmsKeyId - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#kms_key_id S3Object#kms_key_id}.
        Returns:
        this
      • metadata

        @Stability(Stable)
        public S3ObjectConfig.Builder metadata​(Map<String,​String> metadata)
        Parameters:
        metadata - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#metadata S3Object#metadata}.
        Returns:
        this
      • objectLockLegalHoldStatus

        @Stability(Stable)
        public S3ObjectConfig.Builder objectLockLegalHoldStatus​(String objectLockLegalHoldStatus)
        Parameters:
        objectLockLegalHoldStatus - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#object_lock_legal_hold_status S3Object#object_lock_legal_hold_status}.
        Returns:
        this
      • objectLockMode

        @Stability(Stable)
        public S3ObjectConfig.Builder objectLockMode​(String objectLockMode)
        Parameters:
        objectLockMode - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#object_lock_mode S3Object#object_lock_mode}.
        Returns:
        this
      • objectLockRetainUntilDate

        @Stability(Stable)
        public S3ObjectConfig.Builder objectLockRetainUntilDate​(String objectLockRetainUntilDate)
        Parameters:
        objectLockRetainUntilDate - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#object_lock_retain_until_date S3Object#object_lock_retain_until_date}.
        Returns:
        this
      • serverSideEncryption

        @Stability(Stable)
        public S3ObjectConfig.Builder serverSideEncryption​(String serverSideEncryption)
        Parameters:
        serverSideEncryption - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#server_side_encryption S3Object#server_side_encryption}.
        Returns:
        this
      • source

        @Stability(Stable)
        public S3ObjectConfig.Builder source​(String source)
        Sets the value of S3ObjectConfig.getSource()
        Parameters:
        source - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#source S3Object#source}.
        Returns:
        this
      • sourceHash

        @Stability(Stable)
        public S3ObjectConfig.Builder sourceHash​(String sourceHash)
        Parameters:
        sourceHash - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#source_hash S3Object#source_hash}.
        Returns:
        this
      • storageClass

        @Stability(Stable)
        public S3ObjectConfig.Builder storageClass​(String storageClass)
        Parameters:
        storageClass - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#storage_class S3Object#storage_class}.
        Returns:
        this
      • tags

        @Stability(Stable)
        public S3ObjectConfig.Builder tags​(Map<String,​String> tags)
        Sets the value of S3ObjectConfig.getTags()
        Parameters:
        tags - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#tags S3Object#tags}.
        Returns:
        this
      • tagsAll

        @Stability(Stable)
        public S3ObjectConfig.Builder tagsAll​(Map<String,​String> tagsAll)
        Sets the value of S3ObjectConfig.getTagsAll()
        Parameters:
        tagsAll - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#tags_all S3Object#tags_all}.
        Returns:
        this
      • websiteRedirect

        @Stability(Stable)
        public S3ObjectConfig.Builder websiteRedirect​(String websiteRedirect)
        Parameters:
        websiteRedirect - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/s3_object#website_redirect S3Object#website_redirect}.
        Returns:
        this
      • connection

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

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