Class DatasyncLocationObjectStorageConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.datasync_location_object_storage.DatasyncLocationObjectStorageConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatasyncLocationObjectStorageConfig>
- Enclosing interface:
- DatasyncLocationObjectStorageConfig
@Stability(Stable) public static final class DatasyncLocationObjectStorageConfig.Builder extends Object implements software.amazon.jsii.Builder<DatasyncLocationObjectStorageConfig>
A builder forDatasyncLocationObjectStorageConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
agentArns
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder agentArns(List<String> agentArns)
Sets the value ofDatasyncLocationObjectStorageConfig.getAgentArns()- Parameters:
agentArns- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#agent_arns DatasyncLocationObjectStorage#agent_arns}. This parameter is required.- Returns:
this
-
bucketName
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder bucketName(String bucketName)
Sets the value ofDatasyncLocationObjectStorageConfig.getBucketName()- Parameters:
bucketName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#bucket_name DatasyncLocationObjectStorage#bucket_name}. This parameter is required.- Returns:
this
-
serverHostname
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder serverHostname(String serverHostname)
Sets the value ofDatasyncLocationObjectStorageConfig.getServerHostname()- Parameters:
serverHostname- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#server_hostname DatasyncLocationObjectStorage#server_hostname}. This parameter is required.- Returns:
this
-
accessKey
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder accessKey(String accessKey)
Sets the value ofDatasyncLocationObjectStorageConfig.getAccessKey()- Parameters:
accessKey- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#access_key DatasyncLocationObjectStorage#access_key}.- Returns:
this
-
id
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder id(String id)
Sets the value ofDatasyncLocationObjectStorageConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#id DatasyncLocationObjectStorage#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
-
secretKey
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder secretKey(String secretKey)
Sets the value ofDatasyncLocationObjectStorageConfig.getSecretKey()- Parameters:
secretKey- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#secret_key DatasyncLocationObjectStorage#secret_key}.- Returns:
this
-
serverCertificate
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder serverCertificate(String serverCertificate)
Sets the value ofDatasyncLocationObjectStorageConfig.getServerCertificate()- Parameters:
serverCertificate- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#server_certificate DatasyncLocationObjectStorage#server_certificate}.- Returns:
this
-
serverPort
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder serverPort(Number serverPort)
Sets the value ofDatasyncLocationObjectStorageConfig.getServerPort()- Parameters:
serverPort- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#server_port DatasyncLocationObjectStorage#server_port}.- Returns:
this
-
serverProtocol
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder serverProtocol(String serverProtocol)
Sets the value ofDatasyncLocationObjectStorageConfig.getServerProtocol()- Parameters:
serverProtocol- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#server_protocol DatasyncLocationObjectStorage#server_protocol}.- Returns:
this
-
subdirectory
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder subdirectory(String subdirectory)
Sets the value ofDatasyncLocationObjectStorageConfig.getSubdirectory()- Parameters:
subdirectory- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#subdirectory DatasyncLocationObjectStorage#subdirectory}.- Returns:
this
-
tags
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder tags(Map<String,String> tags)
Sets the value ofDatasyncLocationObjectStorageConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#tags DatasyncLocationObjectStorage#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public DatasyncLocationObjectStorageConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofDatasyncLocationObjectStorageConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_location_object_storage#tags_all DatasyncLocationObjectStorage#tags_all}.- Returns:
this
-
connection
@Stability(Experimental) public DatasyncLocationObjectStorageConfig.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 DatasyncLocationObjectStorageConfig.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 DatasyncLocationObjectStorageConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DatasyncLocationObjectStorageConfig.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 DatasyncLocationObjectStorageConfig.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 DatasyncLocationObjectStorageConfig.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 DatasyncLocationObjectStorageConfig.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 DatasyncLocationObjectStorageConfig.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 DatasyncLocationObjectStorageConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DatasyncLocationObjectStorageConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatasyncLocationObjectStorageConfig>- Returns:
- a new instance of
DatasyncLocationObjectStorageConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-