/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a question from an evaluation form.See
* Also:
AWS
* API Reference
The title of the question.
*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *The title of the question.
*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *The title of the question.
*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *The title of the question.
*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *The title of the question.
*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *The title of the question.
*/ inline EvaluationFormQuestion& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *The title of the question.
*/ inline EvaluationFormQuestion& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *The title of the question.
*/ inline EvaluationFormQuestion& WithTitle(const char* value) { SetTitle(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 EvaluationFormQuestion& WithInstructions(const Aws::String& value) { SetInstructions(value); return *this;} /** *The instructions of the section.
*/ inline EvaluationFormQuestion& WithInstructions(Aws::String&& value) { SetInstructions(std::move(value)); return *this;} /** *The instructions of the section.
*/ inline EvaluationFormQuestion& WithInstructions(const char* value) { SetInstructions(value); return *this;} /** *The identifier of the question. An identifier must be unique within the * evaluation form.
*/ inline const Aws::String& GetRefId() const{ return m_refId; } /** *The identifier of the question. An identifier must be unique within the * evaluation form.
*/ inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; } /** *The identifier of the question. 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 question. 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 question. 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 question. An identifier must be unique within the * evaluation form.
*/ inline EvaluationFormQuestion& WithRefId(const Aws::String& value) { SetRefId(value); return *this;} /** *The identifier of the question. An identifier must be unique within the * evaluation form.
*/ inline EvaluationFormQuestion& WithRefId(Aws::String&& value) { SetRefId(std::move(value)); return *this;} /** *The identifier of the question. An identifier must be unique within the * evaluation form.
*/ inline EvaluationFormQuestion& WithRefId(const char* value) { SetRefId(value); return *this;} /** *The flag to enable not applicable answers to the question.
*/ inline bool GetNotApplicableEnabled() const{ return m_notApplicableEnabled; } /** *The flag to enable not applicable answers to the question.
*/ inline bool NotApplicableEnabledHasBeenSet() const { return m_notApplicableEnabledHasBeenSet; } /** *The flag to enable not applicable answers to the question.
*/ inline void SetNotApplicableEnabled(bool value) { m_notApplicableEnabledHasBeenSet = true; m_notApplicableEnabled = value; } /** *The flag to enable not applicable answers to the question.
*/ inline EvaluationFormQuestion& WithNotApplicableEnabled(bool value) { SetNotApplicableEnabled(value); return *this;} /** *The type of the question.
*/ inline const EvaluationFormQuestionType& GetQuestionType() const{ return m_questionType; } /** *The type of the question.
*/ inline bool QuestionTypeHasBeenSet() const { return m_questionTypeHasBeenSet; } /** *The type of the question.
*/ inline void SetQuestionType(const EvaluationFormQuestionType& value) { m_questionTypeHasBeenSet = true; m_questionType = value; } /** *The type of the question.
*/ inline void SetQuestionType(EvaluationFormQuestionType&& value) { m_questionTypeHasBeenSet = true; m_questionType = std::move(value); } /** *The type of the question.
*/ inline EvaluationFormQuestion& WithQuestionType(const EvaluationFormQuestionType& value) { SetQuestionType(value); return *this;} /** *The type of the question.
*/ inline EvaluationFormQuestion& WithQuestionType(EvaluationFormQuestionType&& value) { SetQuestionType(std::move(value)); return *this;} /** *The properties of the type of question. Text questions do not have to define * question type properties.
*/ inline const EvaluationFormQuestionTypeProperties& GetQuestionTypeProperties() const{ return m_questionTypeProperties; } /** *The properties of the type of question. Text questions do not have to define * question type properties.
*/ inline bool QuestionTypePropertiesHasBeenSet() const { return m_questionTypePropertiesHasBeenSet; } /** *The properties of the type of question. Text questions do not have to define * question type properties.
*/ inline void SetQuestionTypeProperties(const EvaluationFormQuestionTypeProperties& value) { m_questionTypePropertiesHasBeenSet = true; m_questionTypeProperties = value; } /** *The properties of the type of question. Text questions do not have to define * question type properties.
*/ inline void SetQuestionTypeProperties(EvaluationFormQuestionTypeProperties&& value) { m_questionTypePropertiesHasBeenSet = true; m_questionTypeProperties = std::move(value); } /** *The properties of the type of question. Text questions do not have to define * question type properties.
*/ inline EvaluationFormQuestion& WithQuestionTypeProperties(const EvaluationFormQuestionTypeProperties& value) { SetQuestionTypeProperties(value); return *this;} /** *The properties of the type of question. Text questions do not have to define * question type properties.
*/ inline EvaluationFormQuestion& WithQuestionTypeProperties(EvaluationFormQuestionTypeProperties&& value) { SetQuestionTypeProperties(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 EvaluationFormQuestion& WithWeight(double value) { SetWeight(value); return *this;} private: Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_instructions; bool m_instructionsHasBeenSet = false; Aws::String m_refId; bool m_refIdHasBeenSet = false; bool m_notApplicableEnabled; bool m_notApplicableEnabledHasBeenSet = false; EvaluationFormQuestionType m_questionType; bool m_questionTypeHasBeenSet = false; EvaluationFormQuestionTypeProperties m_questionTypeProperties; bool m_questionTypePropertiesHasBeenSet = false; double m_weight; bool m_weightHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws