Class CfnTaskProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotsitewise.CfnTaskProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskProps>
- Enclosing interface:
CfnTaskProps
@Stability(Stable)
public static final class CfnTaskProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskProps>
A builder for
CfnTaskProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnTaskProps.getDescription()Sets the value ofCfnTaskProps.getTags()taskConfiguration(IResolvable taskConfiguration) Sets the value ofCfnTaskProps.getTaskConfiguration()taskConfiguration(CfnTask.TaskConfigurationProperty taskConfiguration) Sets the value ofCfnTaskProps.getTaskConfiguration()Sets the value ofCfnTaskProps.getTaskName()workspaceName(String workspaceName) Sets the value ofCfnTaskProps.getWorkspaceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
taskConfiguration
Sets the value ofCfnTaskProps.getTaskConfiguration()- Parameters:
taskConfiguration- The task execution configuration. This parameter is required.- Returns:
this
-
taskConfiguration
@Stability(Stable) public CfnTaskProps.Builder taskConfiguration(CfnTask.TaskConfigurationProperty taskConfiguration) Sets the value ofCfnTaskProps.getTaskConfiguration()- Parameters:
taskConfiguration- The task execution configuration. This parameter is required.- Returns:
this
-
taskName
Sets the value ofCfnTaskProps.getTaskName()- Parameters:
taskName- The name of the task. This parameter is required. Must be unique within the workspace.- Returns:
this
-
workspaceName
Sets the value ofCfnTaskProps.getWorkspaceName()- Parameters:
workspaceName- The name of the workspace. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnTaskProps.getDescription()- Parameters:
description- A description of the task.- Returns:
this
-
tags
Sets the value ofCfnTaskProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskProps>- Returns:
- a new instance of
CfnTaskProps - Throws:
NullPointerException- if any required attribute was not provided
-