Class DatasyncTaskConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.datasync_task.DatasyncTaskConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatasyncTaskConfig>
- Enclosing interface:
- DatasyncTaskConfig
@Stability(Stable) public static final class DatasyncTaskConfig.Builder extends Object implements software.amazon.jsii.Builder<DatasyncTaskConfig>
A builder forDatasyncTaskConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatasyncTaskConfigbuild()Builds the configured instance.DatasyncTaskConfig.BuildercloudwatchLogGroupArn(String cloudwatchLogGroupArn)Sets the value ofDatasyncTaskConfig.getCloudwatchLogGroupArn()DatasyncTaskConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DatasyncTaskConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()DatasyncTaskConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()DatasyncTaskConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()DatasyncTaskConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()DatasyncTaskConfig.BuilderdestinationLocationArn(String destinationLocationArn)Sets the value ofDatasyncTaskConfig.getDestinationLocationArn()DatasyncTaskConfig.Builderexcludes(DatasyncTaskExcludes excludes)Sets the value ofDatasyncTaskConfig.getExcludes()DatasyncTaskConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()DatasyncTaskConfig.Builderid(String id)Sets the value ofDatasyncTaskConfig.getId()DatasyncTaskConfig.Builderincludes(DatasyncTaskIncludes includes)Sets the value ofDatasyncTaskConfig.getIncludes()DatasyncTaskConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()DatasyncTaskConfig.Buildername(String name)Sets the value ofDatasyncTaskConfig.getName()DatasyncTaskConfig.Builderoptions(DatasyncTaskOptions options)Sets the value ofDatasyncTaskConfig.getOptions()DatasyncTaskConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()DatasyncTaskConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()DatasyncTaskConfig.Builderschedule(DatasyncTaskSchedule schedule)Sets the value ofDatasyncTaskConfig.getSchedule()DatasyncTaskConfig.BuildersourceLocationArn(String sourceLocationArn)Sets the value ofDatasyncTaskConfig.getSourceLocationArn()DatasyncTaskConfig.Buildertags(Map<String,String> tags)Sets the value ofDatasyncTaskConfig.getTags()DatasyncTaskConfig.BuildertagsAll(Map<String,String> tagsAll)Sets the value ofDatasyncTaskConfig.getTagsAll()DatasyncTaskConfig.Buildertimeouts(DatasyncTaskTimeouts timeouts)Sets the value ofDatasyncTaskConfig.getTimeouts()
-
-
-
Method Detail
-
destinationLocationArn
@Stability(Stable) public DatasyncTaskConfig.Builder destinationLocationArn(String destinationLocationArn)
Sets the value ofDatasyncTaskConfig.getDestinationLocationArn()- Parameters:
destinationLocationArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#destination_location_arn DatasyncTask#destination_location_arn}. This parameter is required.- Returns:
this
-
sourceLocationArn
@Stability(Stable) public DatasyncTaskConfig.Builder sourceLocationArn(String sourceLocationArn)
Sets the value ofDatasyncTaskConfig.getSourceLocationArn()- Parameters:
sourceLocationArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#source_location_arn DatasyncTask#source_location_arn}. This parameter is required.- Returns:
this
-
cloudwatchLogGroupArn
@Stability(Stable) public DatasyncTaskConfig.Builder cloudwatchLogGroupArn(String cloudwatchLogGroupArn)
Sets the value ofDatasyncTaskConfig.getCloudwatchLogGroupArn()- Parameters:
cloudwatchLogGroupArn- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#cloudwatch_log_group_arn DatasyncTask#cloudwatch_log_group_arn}.- Returns:
this
-
excludes
@Stability(Stable) public DatasyncTaskConfig.Builder excludes(DatasyncTaskExcludes excludes)
Sets the value ofDatasyncTaskConfig.getExcludes()- Parameters:
excludes- excludes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#excludes DatasyncTask#excludes}- Returns:
this
-
id
@Stability(Stable) public DatasyncTaskConfig.Builder id(String id)
Sets the value ofDatasyncTaskConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#id DatasyncTask#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
-
includes
@Stability(Stable) public DatasyncTaskConfig.Builder includes(DatasyncTaskIncludes includes)
Sets the value ofDatasyncTaskConfig.getIncludes()- Parameters:
includes- includes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#includes DatasyncTask#includes}- Returns:
this
-
name
@Stability(Stable) public DatasyncTaskConfig.Builder name(String name)
Sets the value ofDatasyncTaskConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#name DatasyncTask#name}.- Returns:
this
-
options
@Stability(Stable) public DatasyncTaskConfig.Builder options(DatasyncTaskOptions options)
Sets the value ofDatasyncTaskConfig.getOptions()- Parameters:
options- options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#options DatasyncTask#options}- Returns:
this
-
schedule
@Stability(Stable) public DatasyncTaskConfig.Builder schedule(DatasyncTaskSchedule schedule)
Sets the value ofDatasyncTaskConfig.getSchedule()- Parameters:
schedule- schedule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#schedule DatasyncTask#schedule}- Returns:
this
-
tags
@Stability(Stable) public DatasyncTaskConfig.Builder tags(Map<String,String> tags)
Sets the value ofDatasyncTaskConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#tags DatasyncTask#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public DatasyncTaskConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofDatasyncTaskConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#tags_all DatasyncTask#tags_all}.- Returns:
this
-
timeouts
@Stability(Stable) public DatasyncTaskConfig.Builder timeouts(DatasyncTaskTimeouts timeouts)
Sets the value ofDatasyncTaskConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/datasync_task#timeouts DatasyncTask#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DatasyncTaskConfig.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 DatasyncTaskConfig.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 DatasyncTaskConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DatasyncTaskConfig.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 DatasyncTaskConfig.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 DatasyncTaskConfig.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 DatasyncTaskConfig.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 DatasyncTaskConfig.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 DatasyncTaskConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DatasyncTaskConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatasyncTaskConfig>- Returns:
- a new instance of
DatasyncTaskConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-