AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateReviewTemplateAnswerRequest.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/wellarchitected/model/AnswerReason.h>
13#include <aws/wellarchitected/model/ChoiceUpdate.h>
14#include <utility>
15
16namespace Aws
17{
18namespace WellArchitected
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_WELLARCHITECTED_API UpdateReviewTemplateAnswerRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateReviewTemplateAnswer"; }
35
36 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
44 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
45 template<typename TemplateArnT = Aws::String>
46 void SetTemplateArn(TemplateArnT&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::forward<TemplateArnT>(value); }
47 template<typename TemplateArnT = Aws::String>
48 UpdateReviewTemplateAnswerRequest& WithTemplateArn(TemplateArnT&& value) { SetTemplateArn(std::forward<TemplateArnT>(value)); return *this;}
50
52
53 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
54 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
55 template<typename LensAliasT = Aws::String>
56 void SetLensAlias(LensAliasT&& value) { m_lensAliasHasBeenSet = true; m_lensAlias = std::forward<LensAliasT>(value); }
57 template<typename LensAliasT = Aws::String>
58 UpdateReviewTemplateAnswerRequest& WithLensAlias(LensAliasT&& value) { SetLensAlias(std::forward<LensAliasT>(value)); return *this;}
60
62
63 inline const Aws::String& GetQuestionId() const { return m_questionId; }
64 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
65 template<typename QuestionIdT = Aws::String>
66 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
67 template<typename QuestionIdT = Aws::String>
68 UpdateReviewTemplateAnswerRequest& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
70
72
73 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
74 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
75 template<typename SelectedChoicesT = Aws::Vector<Aws::String>>
76 void SetSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::forward<SelectedChoicesT>(value); }
77 template<typename SelectedChoicesT = Aws::Vector<Aws::String>>
78 UpdateReviewTemplateAnswerRequest& WithSelectedChoices(SelectedChoicesT&& value) { SetSelectedChoices(std::forward<SelectedChoicesT>(value)); return *this;}
79 template<typename SelectedChoicesT = Aws::String>
80 UpdateReviewTemplateAnswerRequest& AddSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value)); return *this; }
82
84
87 inline const Aws::Map<Aws::String, ChoiceUpdate>& GetChoiceUpdates() const { return m_choiceUpdates; }
88 inline bool ChoiceUpdatesHasBeenSet() const { return m_choiceUpdatesHasBeenSet; }
89 template<typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
90 void SetChoiceUpdates(ChoiceUpdatesT&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates = std::forward<ChoiceUpdatesT>(value); }
91 template<typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
92 UpdateReviewTemplateAnswerRequest& WithChoiceUpdates(ChoiceUpdatesT&& value) { SetChoiceUpdates(std::forward<ChoiceUpdatesT>(value)); return *this;}
93 template<typename ChoiceUpdatesKeyT = Aws::String, typename ChoiceUpdatesValueT = ChoiceUpdate>
94 UpdateReviewTemplateAnswerRequest& AddChoiceUpdates(ChoiceUpdatesKeyT&& key, ChoiceUpdatesValueT&& value) {
95 m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(std::forward<ChoiceUpdatesKeyT>(key), std::forward<ChoiceUpdatesValueT>(value)); return *this;
96 }
98
100
101 inline const Aws::String& GetNotes() const { return m_notes; }
102 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
103 template<typename NotesT = Aws::String>
104 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
105 template<typename NotesT = Aws::String>
106 UpdateReviewTemplateAnswerRequest& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
108
110
111 inline bool GetIsApplicable() const { return m_isApplicable; }
112 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
113 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
114 inline UpdateReviewTemplateAnswerRequest& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
116
118
121 inline AnswerReason GetReason() const { return m_reason; }
122 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
123 inline void SetReason(AnswerReason value) { m_reasonHasBeenSet = true; m_reason = value; }
126 private:
127
128 Aws::String m_templateArn;
129 bool m_templateArnHasBeenSet = false;
130
131 Aws::String m_lensAlias;
132 bool m_lensAliasHasBeenSet = false;
133
134 Aws::String m_questionId;
135 bool m_questionIdHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_selectedChoices;
138 bool m_selectedChoicesHasBeenSet = false;
139
141 bool m_choiceUpdatesHasBeenSet = false;
142
143 Aws::String m_notes;
144 bool m_notesHasBeenSet = false;
145
146 bool m_isApplicable{false};
147 bool m_isApplicableHasBeenSet = false;
148
150 bool m_reasonHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace WellArchitected
155} // namespace Aws
UpdateReviewTemplateAnswerRequest & WithChoiceUpdates(ChoiceUpdatesT &&value)
UpdateReviewTemplateAnswerRequest & WithTemplateArn(TemplateArnT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateReviewTemplateAnswerRequest & WithSelectedChoices(SelectedChoicesT &&value)
AWS_WELLARCHITECTED_API UpdateReviewTemplateAnswerRequest()=default
const Aws::Map< Aws::String, ChoiceUpdate > & GetChoiceUpdates() const
UpdateReviewTemplateAnswerRequest & WithQuestionId(QuestionIdT &&value)
UpdateReviewTemplateAnswerRequest & WithReason(AnswerReason value)
UpdateReviewTemplateAnswerRequest & AddSelectedChoices(SelectedChoicesT &&value)
UpdateReviewTemplateAnswerRequest & WithLensAlias(LensAliasT &&value)
UpdateReviewTemplateAnswerRequest & AddChoiceUpdates(ChoiceUpdatesKeyT &&key, ChoiceUpdatesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector