/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the automation configuration in single select
* questions.See Also:
AWS
* API Reference
The identifier of the answer option. An identifier must be unique within the * question.
*/ inline const Aws::String& GetRefId() const{ return m_refId; } /** *The identifier of the answer option. An identifier must be unique within the * question.
*/ inline bool RefIdHasBeenSet() const { return m_refIdHasBeenSet; } /** *The identifier of the answer option. An identifier must be unique within the * question.
*/ inline void SetRefId(const Aws::String& value) { m_refIdHasBeenSet = true; m_refId = value; } /** *The identifier of the answer option. An identifier must be unique within the * question.
*/ inline void SetRefId(Aws::String&& value) { m_refIdHasBeenSet = true; m_refId = std::move(value); } /** *The identifier of the answer option. An identifier must be unique within the * question.
*/ inline void SetRefId(const char* value) { m_refIdHasBeenSet = true; m_refId.assign(value); } /** *The identifier of the answer option. An identifier must be unique within the * question.
*/ inline EvaluationFormSingleSelectQuestionOption& WithRefId(const Aws::String& value) { SetRefId(value); return *this;} /** *The identifier of the answer option. An identifier must be unique within the * question.
*/ inline EvaluationFormSingleSelectQuestionOption& WithRefId(Aws::String&& value) { SetRefId(std::move(value)); return *this;} /** *The identifier of the answer option. An identifier must be unique within the * question.
*/ inline EvaluationFormSingleSelectQuestionOption& WithRefId(const char* value) { SetRefId(value); return *this;} /** *The title of the answer option.
*/ inline const Aws::String& GetText() const{ return m_text; } /** *The title of the answer option.
*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *The title of the answer option.
*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *The title of the answer option.
*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *The title of the answer option.
*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *The title of the answer option.
*/ inline EvaluationFormSingleSelectQuestionOption& WithText(const Aws::String& value) { SetText(value); return *this;} /** *The title of the answer option.
*/ inline EvaluationFormSingleSelectQuestionOption& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *The title of the answer option.
*/ inline EvaluationFormSingleSelectQuestionOption& WithText(const char* value) { SetText(value); return *this;} /** *The score assigned to the answer option.
*/ inline int GetScore() const{ return m_score; } /** *The score assigned to the answer option.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The score assigned to the answer option.
*/ inline void SetScore(int value) { m_scoreHasBeenSet = true; m_score = value; } /** *The score assigned to the answer option.
*/ inline EvaluationFormSingleSelectQuestionOption& WithScore(int value) { SetScore(value); return *this;} /** *The flag to mark the option as automatic fail. If an automatic fail answer is * provided, the overall evaluation gets a score of 0.
*/ inline bool GetAutomaticFail() const{ return m_automaticFail; } /** *The flag to mark the option as automatic fail. If an automatic fail answer is * provided, the overall evaluation gets a score of 0.
*/ inline bool AutomaticFailHasBeenSet() const { return m_automaticFailHasBeenSet; } /** *The flag to mark the option as automatic fail. If an automatic fail answer is * provided, the overall evaluation gets a score of 0.
*/ inline void SetAutomaticFail(bool value) { m_automaticFailHasBeenSet = true; m_automaticFail = value; } /** *The flag to mark the option as automatic fail. If an automatic fail answer is * provided, the overall evaluation gets a score of 0.
*/ inline EvaluationFormSingleSelectQuestionOption& WithAutomaticFail(bool value) { SetAutomaticFail(value); return *this;} private: Aws::String m_refId; bool m_refIdHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; int m_score; bool m_scoreHasBeenSet = false; bool m_automaticFail; bool m_automaticFailHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws