/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Input to update answer.See Also:
AWS
* API Reference
A list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline const Aws::MapA list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline bool ChoiceUpdatesHasBeenSet() const { return m_choiceUpdatesHasBeenSet; } /** *A list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline void SetChoiceUpdates(const Aws::MapA list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline void SetChoiceUpdates(Aws::MapA list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline UpdateAnswerRequest& WithChoiceUpdates(const Aws::MapA list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline UpdateAnswerRequest& WithChoiceUpdates(Aws::MapA list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline UpdateAnswerRequest& AddChoiceUpdates(const Aws::String& key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, value); return *this; } /** *A list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline UpdateAnswerRequest& AddChoiceUpdates(Aws::String&& key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(std::move(key), value); return *this; } /** *A list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline UpdateAnswerRequest& AddChoiceUpdates(const Aws::String& key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, std::move(value)); return *this; } /** *A list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline UpdateAnswerRequest& AddChoiceUpdates(Aws::String&& key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(std::move(key), std::move(value)); return *this; } /** *A list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline UpdateAnswerRequest& AddChoiceUpdates(const char* key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, std::move(value)); return *this; } /** *A list of choices to update on a question in your workload. The String key * corresponds to the choice ID to be updated.
*/ inline UpdateAnswerRequest& AddChoiceUpdates(const char* key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, value); return *this; } inline const Aws::String& GetNotes() const{ return m_notes; } inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; } inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; } inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); } inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); } inline UpdateAnswerRequest& WithNotes(const Aws::String& value) { SetNotes(value); return *this;} inline UpdateAnswerRequest& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;} inline UpdateAnswerRequest& WithNotes(const char* value) { SetNotes(value); return *this;} inline bool GetIsApplicable() const{ return m_isApplicable; } inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; } inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; } inline UpdateAnswerRequest& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;} /** *The reason why a question is not applicable to your workload.
*/ inline const AnswerReason& GetReason() const{ return m_reason; } /** *The reason why a question is not applicable to your workload.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The reason why a question is not applicable to your workload.
*/ inline void SetReason(const AnswerReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The reason why a question is not applicable to your workload.
*/ inline void SetReason(AnswerReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The reason why a question is not applicable to your workload.
*/ inline UpdateAnswerRequest& WithReason(const AnswerReason& value) { SetReason(value); return *this;} /** *The reason why a question is not applicable to your workload.
*/ inline UpdateAnswerRequest& WithReason(AnswerReason&& value) { SetReason(std::move(value)); return *this;} private: Aws::String m_workloadId; bool m_workloadIdHasBeenSet = false; Aws::String m_lensAlias; bool m_lensAliasHasBeenSet = false; Aws::String m_questionId; bool m_questionIdHasBeenSet = false; Aws::Vector