Class CfnEvaluationForm

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:12:55.524Z") @Stability(Stable) public class CfnEvaluationForm extends CfnResource implements IInspectable, ITaggable
Creates an evaluation form for the specified Amazon Connect instance.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.connect.*;
 EvaluationFormSectionProperty evaluationFormSectionProperty_;
 CfnEvaluationForm cfnEvaluationForm = CfnEvaluationForm.Builder.create(this, "MyCfnEvaluationForm")
         .instanceArn("instanceArn")
         .items(List.of(EvaluationFormBaseItemProperty.builder()
                 .section(EvaluationFormSectionProperty.builder()
                         .refId("refId")
                         .title("title")
                         // the properties below are optional
                         .instructions("instructions")
                         .items(List.of(EvaluationFormItemProperty.builder()
                                 .question(EvaluationFormQuestionProperty.builder()
                                         .questionType("questionType")
                                         .refId("refId")
                                         .title("title")
                                         // the properties below are optional
                                         .instructions("instructions")
                                         .notApplicableEnabled(false)
                                         .questionTypeProperties(EvaluationFormQuestionTypePropertiesProperty.builder()
                                                 .numeric(EvaluationFormNumericQuestionPropertiesProperty.builder()
                                                         .maxValue(123)
                                                         .minValue(123)
                                                         // the properties below are optional
                                                         .automation(EvaluationFormNumericQuestionAutomationProperty.builder()
                                                                 .propertyValue(NumericQuestionPropertyValueAutomationProperty.builder()
                                                                         .label("label")
                                                                         .build())
                                                                 .build())
                                                         .options(List.of(EvaluationFormNumericQuestionOptionProperty.builder()
                                                                 .maxValue(123)
                                                                 .minValue(123)
                                                                 // the properties below are optional
                                                                 .automaticFail(false)
                                                                 .score(123)
                                                                 .build()))
                                                         .build())
                                                 .singleSelect(EvaluationFormSingleSelectQuestionPropertiesProperty.builder()
                                                         .options(List.of(EvaluationFormSingleSelectQuestionOptionProperty.builder()
                                                                 .refId("refId")
                                                                 .text("text")
                                                                 // the properties below are optional
                                                                 .automaticFail(false)
                                                                 .score(123)
                                                                 .build()))
                                                         // the properties below are optional
                                                         .automation(EvaluationFormSingleSelectQuestionAutomationProperty.builder()
                                                                 .options(List.of(EvaluationFormSingleSelectQuestionAutomationOptionProperty.builder()
                                                                         .ruleCategory(SingleSelectQuestionRuleCategoryAutomationProperty.builder()
                                                                                 .category("category")
                                                                                 .condition("condition")
                                                                                 .optionRefId("optionRefId")
                                                                                 .build())
                                                                         .build()))
                                                                 // the properties below are optional
                                                                 .defaultOptionRefId("defaultOptionRefId")
                                                                 .build())
                                                         .displayAs("displayAs")
                                                         .build())
                                                 .build())
                                         .weight(123)
                                         .build())
                                 .section(evaluationFormSectionProperty_)
                                 .build()))
                         .weight(123)
                         .build())
                 .build()))
         .status("status")
         .title("title")
         // the properties below are optional
         .description("description")
         .scoringStrategy(ScoringStrategyProperty.builder()
                 .mode("mode")
                 .status("status")
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnEvaluationForm

      protected CfnEvaluationForm(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnEvaluationForm

      protected CfnEvaluationForm(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnEvaluationForm

      @Stability(Stable) public CfnEvaluationForm(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEvaluationFormProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrEvaluationFormArn

      @Stability(Stable) @NotNull public String getAttrEvaluationFormArn()
      The Amazon Resource Name (ARN) of the evaluation form.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getInstanceArn

      @Stability(Stable) @NotNull public String getInstanceArn()
      The identifier of the Amazon Connect instance.
    • setInstanceArn

      @Stability(Stable) public void setInstanceArn(@NotNull String value)
      The identifier of the Amazon Connect instance.
    • getItems

      @Stability(Stable) @NotNull public Object getItems()
      Items that are part of the evaluation form.
    • setItems

      @Stability(Stable) public void setItems(@NotNull IResolvable value)
      Items that are part of the evaluation form.
    • setItems

      @Stability(Stable) public void setItems(@NotNull List<Object> value)
      Items that are part of the evaluation form.
    • getStatus

      @Stability(Stable) @NotNull public String getStatus()
      The status of the evaluation form.
    • setStatus

      @Stability(Stable) public void setStatus(@NotNull String value)
      The status of the evaluation form.
    • getTitle

      @Stability(Stable) @NotNull public String getTitle()
      A title of the evaluation form.
    • setTitle

      @Stability(Stable) public void setTitle(@NotNull String value)
      A title of the evaluation form.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the evaluation form.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the evaluation form.
    • getScoringStrategy

      @Stability(Stable) @Nullable public Object getScoringStrategy()
      A scoring strategy of the evaluation form.
    • setScoringStrategy

      @Stability(Stable) public void setScoringStrategy(@Nullable IResolvable value)
      A scoring strategy of the evaluation form.
    • setScoringStrategy

      @Stability(Stable) public void setScoringStrategy(@Nullable CfnEvaluationForm.ScoringStrategyProperty value)
      A scoring strategy of the evaluation form.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags used to organize, track, or control access for this resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags used to organize, track, or control access for this resource.