AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTemplateArn(const Aws::String& value) { m_templateArnHasBeenSet = true; m_templateArn = value; }
46 inline void SetTemplateArn(Aws::String&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::move(value); }
47 inline void SetTemplateArn(const char* value) { m_templateArnHasBeenSet = true; m_templateArn.assign(value); }
48 inline UpdateReviewTemplateAnswerRequest& WithTemplateArn(const Aws::String& value) { SetTemplateArn(value); return *this;}
49 inline UpdateReviewTemplateAnswerRequest& WithTemplateArn(Aws::String&& value) { SetTemplateArn(std::move(value)); return *this;}
50 inline UpdateReviewTemplateAnswerRequest& WithTemplateArn(const char* value) { SetTemplateArn(value); return *this;}
52
54
55 inline const Aws::String& GetLensAlias() const{ return m_lensAlias; }
56 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
57 inline void SetLensAlias(const Aws::String& value) { m_lensAliasHasBeenSet = true; m_lensAlias = value; }
58 inline void SetLensAlias(Aws::String&& value) { m_lensAliasHasBeenSet = true; m_lensAlias = std::move(value); }
59 inline void SetLensAlias(const char* value) { m_lensAliasHasBeenSet = true; m_lensAlias.assign(value); }
60 inline UpdateReviewTemplateAnswerRequest& WithLensAlias(const Aws::String& value) { SetLensAlias(value); return *this;}
61 inline UpdateReviewTemplateAnswerRequest& WithLensAlias(Aws::String&& value) { SetLensAlias(std::move(value)); return *this;}
62 inline UpdateReviewTemplateAnswerRequest& WithLensAlias(const char* value) { SetLensAlias(value); return *this;}
64
66
67 inline const Aws::String& GetQuestionId() const{ return m_questionId; }
68 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
69 inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
70 inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
71 inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
72 inline UpdateReviewTemplateAnswerRequest& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
73 inline UpdateReviewTemplateAnswerRequest& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
74 inline UpdateReviewTemplateAnswerRequest& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
76
78
79 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const{ return m_selectedChoices; }
80 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
81 inline void SetSelectedChoices(const Aws::Vector<Aws::String>& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = value; }
82 inline void SetSelectedChoices(Aws::Vector<Aws::String>&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::move(value); }
85 inline UpdateReviewTemplateAnswerRequest& AddSelectedChoices(const Aws::String& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
86 inline UpdateReviewTemplateAnswerRequest& AddSelectedChoices(Aws::String&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(std::move(value)); return *this; }
87 inline UpdateReviewTemplateAnswerRequest& AddSelectedChoices(const char* value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
89
91
94 inline const Aws::Map<Aws::String, ChoiceUpdate>& GetChoiceUpdates() const{ return m_choiceUpdates; }
95 inline bool ChoiceUpdatesHasBeenSet() const { return m_choiceUpdatesHasBeenSet; }
96 inline void SetChoiceUpdates(const Aws::Map<Aws::String, ChoiceUpdate>& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates = value; }
97 inline void SetChoiceUpdates(Aws::Map<Aws::String, ChoiceUpdate>&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates = std::move(value); }
100 inline UpdateReviewTemplateAnswerRequest& AddChoiceUpdates(const Aws::String& key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, value); return *this; }
101 inline UpdateReviewTemplateAnswerRequest& AddChoiceUpdates(Aws::String&& key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(std::move(key), value); return *this; }
102 inline UpdateReviewTemplateAnswerRequest& AddChoiceUpdates(const Aws::String& key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, std::move(value)); return *this; }
103 inline UpdateReviewTemplateAnswerRequest& AddChoiceUpdates(Aws::String&& key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(std::move(key), std::move(value)); return *this; }
104 inline UpdateReviewTemplateAnswerRequest& AddChoiceUpdates(const char* key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, std::move(value)); return *this; }
105 inline UpdateReviewTemplateAnswerRequest& AddChoiceUpdates(const char* key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, value); return *this; }
107
109
110 inline const Aws::String& GetNotes() const{ return m_notes; }
111 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
112 inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
113 inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
114 inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
115 inline UpdateReviewTemplateAnswerRequest& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
116 inline UpdateReviewTemplateAnswerRequest& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
117 inline UpdateReviewTemplateAnswerRequest& WithNotes(const char* value) { SetNotes(value); return *this;}
119
121
122 inline bool GetIsApplicable() const{ return m_isApplicable; }
123 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
124 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
125 inline UpdateReviewTemplateAnswerRequest& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
127
129
132 inline const AnswerReason& GetReason() const{ return m_reason; }
133 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
134 inline void SetReason(const AnswerReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
135 inline void SetReason(AnswerReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
136 inline UpdateReviewTemplateAnswerRequest& WithReason(const AnswerReason& value) { SetReason(value); return *this;}
137 inline UpdateReviewTemplateAnswerRequest& WithReason(AnswerReason&& value) { SetReason(std::move(value)); return *this;}
139 private:
140
141 Aws::String m_templateArn;
142 bool m_templateArnHasBeenSet = false;
143
144 Aws::String m_lensAlias;
145 bool m_lensAliasHasBeenSet = false;
146
147 Aws::String m_questionId;
148 bool m_questionIdHasBeenSet = false;
149
150 Aws::Vector<Aws::String> m_selectedChoices;
151 bool m_selectedChoicesHasBeenSet = false;
152
154 bool m_choiceUpdatesHasBeenSet = false;
155
156 Aws::String m_notes;
157 bool m_notesHasBeenSet = false;
158
159 bool m_isApplicable;
160 bool m_isApplicableHasBeenSet = false;
161
162 AnswerReason m_reason;
163 bool m_reasonHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace WellArchitected
168} // namespace Aws
UpdateReviewTemplateAnswerRequest & AddChoiceUpdates(const Aws::String &key, const ChoiceUpdate &value)
UpdateReviewTemplateAnswerRequest & WithQuestionId(const char *value)
UpdateReviewTemplateAnswerRequest & WithLensAlias(const Aws::String &value)
void SetChoiceUpdates(Aws::Map< Aws::String, ChoiceUpdate > &&value)
UpdateReviewTemplateAnswerRequest & WithChoiceUpdates(Aws::Map< Aws::String, ChoiceUpdate > &&value)
UpdateReviewTemplateAnswerRequest & WithSelectedChoices(Aws::Vector< Aws::String > &&value)
UpdateReviewTemplateAnswerRequest & WithReason(AnswerReason &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateReviewTemplateAnswerRequest & AddSelectedChoices(Aws::String &&value)
UpdateReviewTemplateAnswerRequest & AddChoiceUpdates(const char *key, ChoiceUpdate &&value)
UpdateReviewTemplateAnswerRequest & AddChoiceUpdates(Aws::String &&key, ChoiceUpdate &&value)
UpdateReviewTemplateAnswerRequest & AddChoiceUpdates(const char *key, const ChoiceUpdate &value)
UpdateReviewTemplateAnswerRequest & WithNotes(const Aws::String &value)
UpdateReviewTemplateAnswerRequest & AddChoiceUpdates(Aws::String &&key, const ChoiceUpdate &value)
UpdateReviewTemplateAnswerRequest & WithTemplateArn(const Aws::String &value)
UpdateReviewTemplateAnswerRequest & WithLensAlias(Aws::String &&value)
UpdateReviewTemplateAnswerRequest & WithNotes(Aws::String &&value)
UpdateReviewTemplateAnswerRequest & AddSelectedChoices(const char *value)
UpdateReviewTemplateAnswerRequest & WithLensAlias(const char *value)
UpdateReviewTemplateAnswerRequest & WithQuestionId(const Aws::String &value)
UpdateReviewTemplateAnswerRequest & AddSelectedChoices(const Aws::String &value)
const Aws::Map< Aws::String, ChoiceUpdate > & GetChoiceUpdates() const
UpdateReviewTemplateAnswerRequest & WithNotes(const char *value)
UpdateReviewTemplateAnswerRequest & WithReason(const AnswerReason &value)
UpdateReviewTemplateAnswerRequest & AddChoiceUpdates(const Aws::String &key, ChoiceUpdate &&value)
UpdateReviewTemplateAnswerRequest & WithSelectedChoices(const Aws::Vector< Aws::String > &value)
void SetChoiceUpdates(const Aws::Map< Aws::String, ChoiceUpdate > &value)
UpdateReviewTemplateAnswerRequest & WithChoiceUpdates(const Aws::Map< Aws::String, ChoiceUpdate > &value)
UpdateReviewTemplateAnswerRequest & WithTemplateArn(const char *value)
UpdateReviewTemplateAnswerRequest & WithTemplateArn(Aws::String &&value)
UpdateReviewTemplateAnswerRequest & WithQuestionId(Aws::String &&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