Class CfnEvaluationForm.EvaluationFormSectionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormSectionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormSectionProperty>
- Enclosing interface:
CfnEvaluationForm.EvaluationFormSectionProperty
@Stability(Stable)
public static final class CfnEvaluationForm.EvaluationFormSectionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormSectionProperty>
A builder for
CfnEvaluationForm.EvaluationFormSectionProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instructions
(String instructions) Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getInstructions()
Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getItems()
items
(IResolvable items) Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getItems()
Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getRefId()
Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getTitle()
Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
refId
@Stability(Stable) public CfnEvaluationForm.EvaluationFormSectionProperty.Builder refId(String refId) Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getRefId()
- Parameters:
refId
- The identifier of the section. An identifier must be unique within the evaluation form. This parameter is required. Length Constraints : Minimum length of 1. Maximum length of 40.- Returns:
this
-
title
@Stability(Stable) public CfnEvaluationForm.EvaluationFormSectionProperty.Builder title(String title) Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getTitle()
- Parameters:
title
- The title of the section. This parameter is required. Length Constraints : Minimum length of 1. Maximum length of 128.- Returns:
this
-
instructions
@Stability(Stable) public CfnEvaluationForm.EvaluationFormSectionProperty.Builder instructions(String instructions) Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getInstructions()
- Parameters:
instructions
- The instructions of the section.- Returns:
this
-
items
@Stability(Stable) public CfnEvaluationForm.EvaluationFormSectionProperty.Builder items(IResolvable items) Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getItems()
- Parameters:
items
- The items of the section. Minimum : 1- Returns:
this
-
items
@Stability(Stable) public CfnEvaluationForm.EvaluationFormSectionProperty.Builder items(List<? extends Object> items) Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getItems()
- Parameters:
items
- The items of the section. Minimum : 1- Returns:
this
-
weight
@Stability(Stable) public CfnEvaluationForm.EvaluationFormSectionProperty.Builder weight(Number weight) Sets the value ofCfnEvaluationForm.EvaluationFormSectionProperty.getWeight()
- Parameters:
weight
- The scoring weight of the section. Minimum : 0Maximum : 100
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormSectionProperty>
- Returns:
- a new instance of
CfnEvaluationForm.EvaluationFormSectionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-