Class CfnTaskTemplate.FieldProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnTaskTemplate.FieldProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskTemplate.FieldProperty>
- Enclosing interface:
CfnTaskTemplate.FieldProperty
@Stability(Stable)
public static final class CfnTaskTemplate.FieldProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskTemplate.FieldProperty>
A builder for
CfnTaskTemplate.FieldProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnTaskTemplate.FieldProperty.getDescription()id(IResolvable id) Sets the value ofCfnTaskTemplate.FieldProperty.getId()Sets the value ofCfnTaskTemplate.FieldProperty.getId()singleSelectOptions(List<String> singleSelectOptions) Sets the value ofCfnTaskTemplate.FieldProperty.getSingleSelectOptions()Sets the value ofCfnTaskTemplate.FieldProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnTaskTemplate.FieldProperty.getId()- Parameters:
id- The unique identifier for the field. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public CfnTaskTemplate.FieldProperty.Builder id(CfnTaskTemplate.FieldIdentifierProperty id) Sets the value ofCfnTaskTemplate.FieldProperty.getId()- Parameters:
id- The unique identifier for the field. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnTaskTemplate.FieldProperty.getType()- Parameters:
type- Indicates the type of field. This parameter is required. Following are the valid field types:NAMEDESCRIPTION|SCHEDULED_TIME|QUICK_CONNECT|URL|NUMBER|TEXT|TEXT_AREA|DATE_TIME|BOOLEAN|SINGLE_SELECT|EMAIL- Returns:
this
-
description
Sets the value ofCfnTaskTemplate.FieldProperty.getDescription()- Parameters:
description- The description of the field.- Returns:
this
-
singleSelectOptions
@Stability(Stable) public CfnTaskTemplate.FieldProperty.Builder singleSelectOptions(List<String> singleSelectOptions) Sets the value ofCfnTaskTemplate.FieldProperty.getSingleSelectOptions()- Parameters:
singleSelectOptions- A list of options for a single select field.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskTemplate.FieldProperty>- Returns:
- a new instance of
CfnTaskTemplate.FieldProperty - Throws:
NullPointerException- if any required attribute was not provided
-