Class CfnTaskMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.datasync.CfnTaskMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskMixinProps>
- Enclosing interface:
CfnTaskMixinProps
@Stability(Stable)
public static final class CfnTaskMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskMixinProps>
A builder for
CfnTaskMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudWatchLogGroupArn(String cloudWatchLogGroupArn) Sets the value ofCfnTaskMixinProps.getCloudWatchLogGroupArn()cloudWatchLogGroupArn(ILogGroupRef cloudWatchLogGroupArn) Sets the value ofCfnTaskMixinProps.getCloudWatchLogGroupArn()destinationLocationArn(String destinationLocationArn) Sets the value ofCfnTaskMixinProps.getDestinationLocationArn()destinationLocationArn(ILocationEFSRef destinationLocationArn) Sets the value ofCfnTaskMixinProps.getDestinationLocationArn()destinationLocationArn(ILocationS3Ref destinationLocationArn) Sets the value ofCfnTaskMixinProps.getDestinationLocationArn()Sets the value ofCfnTaskMixinProps.getExcludes()excludes(IResolvable excludes) Sets the value ofCfnTaskMixinProps.getExcludes()Sets the value ofCfnTaskMixinProps.getIncludes()includes(IResolvable includes) Sets the value ofCfnTaskMixinProps.getIncludes()manifestConfig(CfnTaskPropsMixin.ManifestConfigProperty manifestConfig) Sets the value ofCfnTaskMixinProps.getManifestConfig()manifestConfig(IResolvable manifestConfig) Sets the value ofCfnTaskMixinProps.getManifestConfig()Sets the value ofCfnTaskMixinProps.getName()options(CfnTaskPropsMixin.OptionsProperty options) Sets the value ofCfnTaskMixinProps.getOptions()options(IResolvable options) Sets the value ofCfnTaskMixinProps.getOptions()Sets the value ofCfnTaskMixinProps.getSchedule()schedule(IResolvable schedule) Sets the value ofCfnTaskMixinProps.getSchedule()sourceLocationArn(String sourceLocationArn) Sets the value ofCfnTaskMixinProps.getSourceLocationArn()sourceLocationArn(ILocationNFSRef sourceLocationArn) Sets the value ofCfnTaskMixinProps.getSourceLocationArn()sourceLocationArn(ILocationS3Ref sourceLocationArn) Sets the value ofCfnTaskMixinProps.getSourceLocationArn()Sets the value ofCfnTaskMixinProps.getTags()Sets the value ofCfnTaskMixinProps.getTaskMode()taskReportConfig(CfnTaskPropsMixin.TaskReportConfigProperty taskReportConfig) Sets the value ofCfnTaskMixinProps.getTaskReportConfig()taskReportConfig(IResolvable taskReportConfig) Sets the value ofCfnTaskMixinProps.getTaskReportConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogGroupArn
@Stability(Stable) public CfnTaskMixinProps.Builder cloudWatchLogGroupArn(String cloudWatchLogGroupArn) Sets the value ofCfnTaskMixinProps.getCloudWatchLogGroupArn()- Parameters:
cloudWatchLogGroupArn- Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. For Enhanced mode tasks, you don't need to specify anything. DataSync automatically sends logs to a CloudWatch log group named/aws/datasync.For more information, see Monitoring data transfers with CloudWatch Logs .
- Returns:
this
-
cloudWatchLogGroupArn
@Stability(Stable) public CfnTaskMixinProps.Builder cloudWatchLogGroupArn(ILogGroupRef cloudWatchLogGroupArn) Sets the value ofCfnTaskMixinProps.getCloudWatchLogGroupArn()- Parameters:
cloudWatchLogGroupArn- Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. For Enhanced mode tasks, you don't need to specify anything. DataSync automatically sends logs to a CloudWatch log group named/aws/datasync.For more information, see Monitoring data transfers with CloudWatch Logs .
- Returns:
this
-
destinationLocationArn
@Stability(Stable) public CfnTaskMixinProps.Builder destinationLocationArn(String destinationLocationArn) Sets the value ofCfnTaskMixinProps.getDestinationLocationArn()- Parameters:
destinationLocationArn- The Amazon Resource Name (ARN) of an AWS storage resource's location.- Returns:
this
-
destinationLocationArn
@Stability(Stable) public CfnTaskMixinProps.Builder destinationLocationArn(ILocationEFSRef destinationLocationArn) Sets the value ofCfnTaskMixinProps.getDestinationLocationArn()- Parameters:
destinationLocationArn- The Amazon Resource Name (ARN) of an AWS storage resource's location.- Returns:
this
-
destinationLocationArn
@Stability(Stable) public CfnTaskMixinProps.Builder destinationLocationArn(ILocationS3Ref destinationLocationArn) Sets the value ofCfnTaskMixinProps.getDestinationLocationArn()- Parameters:
destinationLocationArn- The Amazon Resource Name (ARN) of an AWS storage resource's location.- Returns:
this
-
excludes
Sets the value ofCfnTaskMixinProps.getExcludes()- Parameters:
excludes- Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters .- Returns:
this
-
excludes
Sets the value ofCfnTaskMixinProps.getExcludes()- Parameters:
excludes- Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters .- Returns:
this
-
includes
Sets the value ofCfnTaskMixinProps.getIncludes()- Parameters:
includes- Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters .- Returns:
this
-
includes
Sets the value ofCfnTaskMixinProps.getIncludes()- Parameters:
includes- Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters .- Returns:
this
-
manifestConfig
Sets the value ofCfnTaskMixinProps.getManifestConfig()- Parameters:
manifestConfig- The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see Specifying what DataSync transfers by using a manifest .- Returns:
this
-
manifestConfig
@Stability(Stable) public CfnTaskMixinProps.Builder manifestConfig(CfnTaskPropsMixin.ManifestConfigProperty manifestConfig) Sets the value ofCfnTaskMixinProps.getManifestConfig()- Parameters:
manifestConfig- The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see Specifying what DataSync transfers by using a manifest .- Returns:
this
-
name
Sets the value ofCfnTaskMixinProps.getName()- Parameters:
name- Specifies the name of your task.- Returns:
this
-
options
Sets the value ofCfnTaskMixinProps.getOptions()- Parameters:
options- Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.- Returns:
this
-
options
@Stability(Stable) public CfnTaskMixinProps.Builder options(CfnTaskPropsMixin.OptionsProperty options) Sets the value ofCfnTaskMixinProps.getOptions()- Parameters:
options- Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.- Returns:
this
-
schedule
Sets the value ofCfnTaskMixinProps.getSchedule()- Parameters:
schedule- Specifies a schedule for when you want your task to run. For more information, see Scheduling your task .- Returns:
this
-
schedule
@Stability(Stable) public CfnTaskMixinProps.Builder schedule(CfnTaskPropsMixin.TaskScheduleProperty schedule) Sets the value ofCfnTaskMixinProps.getSchedule()- Parameters:
schedule- Specifies a schedule for when you want your task to run. For more information, see Scheduling your task .- Returns:
this
-
sourceLocationArn
Sets the value ofCfnTaskMixinProps.getSourceLocationArn()- Parameters:
sourceLocationArn- Specifies the ARN of your transfer's source location.- Returns:
this
-
sourceLocationArn
@Stability(Stable) public CfnTaskMixinProps.Builder sourceLocationArn(ILocationNFSRef sourceLocationArn) Sets the value ofCfnTaskMixinProps.getSourceLocationArn()- Parameters:
sourceLocationArn- Specifies the ARN of your transfer's source location.- Returns:
this
-
sourceLocationArn
@Stability(Stable) public CfnTaskMixinProps.Builder sourceLocationArn(ILocationS3Ref sourceLocationArn) Sets the value ofCfnTaskMixinProps.getSourceLocationArn()- Parameters:
sourceLocationArn- Specifies the ARN of your transfer's source location.- Returns:
this
-
tags
Sets the value ofCfnTaskMixinProps.getTags()- Parameters:
tags- Specifies the tags that you want to apply to your task. Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.- Returns:
this
-
taskMode
Sets the value ofCfnTaskMixinProps.getTaskMode()- Parameters:
taskMode- The task mode that you're using. For more information, see Choosing a task mode for your data transfer .- Returns:
this
-
taskReportConfig
Sets the value ofCfnTaskMixinProps.getTaskReportConfig()- Parameters:
taskReportConfig- The configuration of your task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports .- Returns:
this
-
taskReportConfig
@Stability(Stable) public CfnTaskMixinProps.Builder taskReportConfig(CfnTaskPropsMixin.TaskReportConfigProperty taskReportConfig) Sets the value ofCfnTaskMixinProps.getTaskReportConfig()- Parameters:
taskReportConfig- The configuration of your task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskMixinProps>- Returns:
- a new instance of
CfnTaskMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-