Class CfnEvaluationForm.EvaluationFormQuestionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnEvaluationForm.EvaluationFormQuestionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormQuestionProperty>
- Enclosing interface:
- CfnEvaluationForm.EvaluationFormQuestionProperty
@Stability(Stable)
public static final class CfnEvaluationForm.EvaluationFormQuestionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormQuestionProperty>
A builder for
CfnEvaluationForm.EvaluationFormQuestionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instructions(String instructions) Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getInstructions()notApplicableEnabled(Boolean notApplicableEnabled) notApplicableEnabled(IResolvable notApplicableEnabled) questionType(String questionType) Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getQuestionType()questionTypeProperties(IResolvable questionTypeProperties) questionTypeProperties(CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty questionTypeProperties) Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getRefId()Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getTitle()Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
questionType
@Stability(Stable) public CfnEvaluationForm.EvaluationFormQuestionProperty.Builder questionType(String questionType) Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getQuestionType()- Parameters:
questionType- The type of the question. This parameter is required. Allowed values :NUMERIC|SINGLESELECT|TEXT- Returns:
this
-
refId
@Stability(Stable) public CfnEvaluationForm.EvaluationFormQuestionProperty.Builder refId(String refId) Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getRefId()- Parameters:
refId- The identifier of the question. 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.EvaluationFormQuestionProperty.Builder title(String title) Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getTitle()- Parameters:
title- The title of the question. This parameter is required. Length Constraints : Minimum length of 1. Maximum length of 350.- Returns:
this
-
instructions
@Stability(Stable) public CfnEvaluationForm.EvaluationFormQuestionProperty.Builder instructions(String instructions) Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getInstructions()- Parameters:
instructions- The instructions of the section. Length Constraints : Minimum length of 0. Maximum length of 1024.- Returns:
this
-
notApplicableEnabled
@Stability(Stable) public CfnEvaluationForm.EvaluationFormQuestionProperty.Builder notApplicableEnabled(Boolean notApplicableEnabled) - Parameters:
notApplicableEnabled- The flag to enable not applicable answers to the question.- Returns:
this
-
notApplicableEnabled
@Stability(Stable) public CfnEvaluationForm.EvaluationFormQuestionProperty.Builder notApplicableEnabled(IResolvable notApplicableEnabled) - Parameters:
notApplicableEnabled- The flag to enable not applicable answers to the question.- Returns:
this
-
questionTypeProperties
@Stability(Stable) public CfnEvaluationForm.EvaluationFormQuestionProperty.Builder questionTypeProperties(IResolvable questionTypeProperties) - Parameters:
questionTypeProperties- The properties of the type of question. Text questions do not have to define question type properties.- Returns:
this
-
questionTypeProperties
@Stability(Stable) public CfnEvaluationForm.EvaluationFormQuestionProperty.Builder questionTypeProperties(CfnEvaluationForm.EvaluationFormQuestionTypePropertiesProperty questionTypeProperties) - Parameters:
questionTypeProperties- The properties of the type of question. Text questions do not have to define question type properties.- Returns:
this
-
weight
@Stability(Stable) public CfnEvaluationForm.EvaluationFormQuestionProperty.Builder weight(Number weight) Sets the value ofCfnEvaluationForm.EvaluationFormQuestionProperty.getWeight()- Parameters:
weight- The scoring weight of the section. Minimum : 0Maximum : 100
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEvaluationForm.EvaluationFormQuestionProperty>- Returns:
- a new instance of
CfnEvaluationForm.EvaluationFormQuestionProperty - Throws:
NullPointerException- if any required attribute was not provided
-