Class S3ObjectConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.s3_object.S3ObjectConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3ObjectConfig>
- Enclosing interface:
- S3ObjectConfig
@Stability(Stable) public static final class S3ObjectConfig.Builder extends Object implements software.amazon.jsii.Builder<S3ObjectConfig>
A builder forS3ObjectConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
bucket
@Stability(Stable) public S3ObjectConfig.Builder bucket(String bucket)
Sets the value ofS3ObjectConfig.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 ofS3ObjectConfig.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 ofS3ObjectConfig.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)
Sets the value ofS3ObjectConfig.getBucketKeyEnabled()- 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)
Sets the value ofS3ObjectConfig.getBucketKeyEnabled()- 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)
Sets the value ofS3ObjectConfig.getCacheControl()- 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 ofS3ObjectConfig.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)
Sets the value ofS3ObjectConfig.getContentBase64()- 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)
Sets the value ofS3ObjectConfig.getContentDisposition()- 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)
Sets the value ofS3ObjectConfig.getContentEncoding()- 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)
Sets the value ofS3ObjectConfig.getContentLanguage()- 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)
Sets the value ofS3ObjectConfig.getContentType()- 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 ofS3ObjectConfig.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)
Sets the value ofS3ObjectConfig.getForceDestroy()- 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)
Sets the value ofS3ObjectConfig.getForceDestroy()- 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 ofS3ObjectConfig.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)
Sets the value ofS3ObjectConfig.getKmsKeyId()- 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)
Sets the value ofS3ObjectConfig.getMetadata()- 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)
Sets the value ofS3ObjectConfig.getObjectLockLegalHoldStatus()- 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)
Sets the value ofS3ObjectConfig.getObjectLockMode()- 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)
Sets the value ofS3ObjectConfig.getObjectLockRetainUntilDate()- 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)
Sets the value ofS3ObjectConfig.getServerSideEncryption()- 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 ofS3ObjectConfig.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)
Sets the value ofS3ObjectConfig.getSourceHash()- 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)
Sets the value ofS3ObjectConfig.getStorageClass()- 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 ofS3ObjectConfig.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 ofS3ObjectConfig.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)
Sets the value ofS3ObjectConfig.getWebsiteRedirect()- 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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public S3ObjectConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public S3ObjectConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public S3ObjectConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3ObjectConfig>- Returns:
- a new instance of
S3ObjectConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-