/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Connect { namespace Model { class EvaluationFormItem; /** *

Information about a section from an evaluation form. A section can contain * sections and/or questions. Evaluation forms can only contain sections and * subsections (two level nesting).

See Also:

AWS * API Reference

*/ class EvaluationFormSection { public: AWS_CONNECT_API EvaluationFormSection(); AWS_CONNECT_API EvaluationFormSection(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API EvaluationFormSection& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The title of the section.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The title of the section.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The title of the section.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The title of the section.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The title of the section.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The title of the section.

*/ inline EvaluationFormSection& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The title of the section.

*/ inline EvaluationFormSection& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The title of the section.

*/ inline EvaluationFormSection& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

The identifier of the section. An identifier must be unique within the * evaluation form.

*/ inline const Aws::String& GetRefId() const{ return m_refId; } /** *

The identifier of the section. An identifier must be unique within the * evaluation form.

*/ inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; } /** *

The identifier of the section. An identifier must be unique within the * evaluation form.

*/ inline void SetRefId(const Aws::String& value) { m_refIdHasBeenSet = true; m_refId = value; } /** *

The identifier of the section. An identifier must be unique within the * evaluation form.

*/ inline void SetRefId(Aws::String&& value) { m_refIdHasBeenSet = true; m_refId = std::move(value); } /** *

The identifier of the section. An identifier must be unique within the * evaluation form.

*/ inline void SetRefId(const char* value) { m_refIdHasBeenSet = true; m_refId.assign(value); } /** *

The identifier of the section. An identifier must be unique within the * evaluation form.

*/ inline EvaluationFormSection& WithRefId(const Aws::String& value) { SetRefId(value); return *this;} /** *

The identifier of the section. An identifier must be unique within the * evaluation form.

*/ inline EvaluationFormSection& WithRefId(Aws::String&& value) { SetRefId(std::move(value)); return *this;} /** *

The identifier of the section. An identifier must be unique within the * evaluation form.

*/ inline EvaluationFormSection& WithRefId(const char* value) { SetRefId(value); return *this;} /** *

The instructions of the section.

*/ inline const Aws::String& GetInstructions() const{ return m_instructions; } /** *

The instructions of the section.

*/ inline bool InstructionsHasBeenSet() const { return m_instructionsHasBeenSet; } /** *

The instructions of the section.

*/ inline void SetInstructions(const Aws::String& value) { m_instructionsHasBeenSet = true; m_instructions = value; } /** *

The instructions of the section.

*/ inline void SetInstructions(Aws::String&& value) { m_instructionsHasBeenSet = true; m_instructions = std::move(value); } /** *

The instructions of the section.

*/ inline void SetInstructions(const char* value) { m_instructionsHasBeenSet = true; m_instructions.assign(value); } /** *

The instructions of the section.

*/ inline EvaluationFormSection& WithInstructions(const Aws::String& value) { SetInstructions(value); return *this;} /** *

The instructions of the section.

*/ inline EvaluationFormSection& WithInstructions(Aws::String&& value) { SetInstructions(std::move(value)); return *this;} /** *

The instructions of the section.

*/ inline EvaluationFormSection& WithInstructions(const char* value) { SetInstructions(value); return *this;} /** *

The items of the section.

*/ inline const Aws::Vector& GetItems() const{ return m_items; } /** *

The items of the section.

*/ inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; } /** *

The items of the section.

*/ inline void SetItems(const Aws::Vector& value) { m_itemsHasBeenSet = true; m_items = value; } /** *

The items of the section.

*/ inline void SetItems(Aws::Vector&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); } /** *

The items of the section.

*/ inline EvaluationFormSection& WithItems(const Aws::Vector& value) { SetItems(value); return *this;} /** *

The items of the section.

*/ inline EvaluationFormSection& WithItems(Aws::Vector&& value) { SetItems(std::move(value)); return *this;} /** *

The items of the section.

*/ inline EvaluationFormSection& AddItems(const EvaluationFormItem& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; } /** *

The items of the section.

*/ inline EvaluationFormSection& AddItems(EvaluationFormItem&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; } /** *

The scoring weight of the section.

*/ inline double GetWeight() const{ return m_weight; } /** *

The scoring weight of the section.

*/ inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; } /** *

The scoring weight of the section.

*/ inline void SetWeight(double value) { m_weightHasBeenSet = true; m_weight = value; } /** *

The scoring weight of the section.

*/ inline EvaluationFormSection& WithWeight(double value) { SetWeight(value); return *this;} private: Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_refId; bool m_refIdHasBeenSet = false; Aws::String m_instructions; bool m_instructionsHasBeenSet = false; Aws::Vector m_items; bool m_itemsHasBeenSet = false; double m_weight; bool m_weightHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws