AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAnswerRequest.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
29 {
30 public:
31 AWS_WELLARCHITECTED_API UpdateAnswerRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateAnswer"; }
38
39 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
40
41
43
44 inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
45 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
46 inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
47 inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
48 inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
49 inline UpdateAnswerRequest& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
50 inline UpdateAnswerRequest& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
51 inline UpdateAnswerRequest& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
53
55
56 inline const Aws::String& GetLensAlias() const{ return m_lensAlias; }
57 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
58 inline void SetLensAlias(const Aws::String& value) { m_lensAliasHasBeenSet = true; m_lensAlias = value; }
59 inline void SetLensAlias(Aws::String&& value) { m_lensAliasHasBeenSet = true; m_lensAlias = std::move(value); }
60 inline void SetLensAlias(const char* value) { m_lensAliasHasBeenSet = true; m_lensAlias.assign(value); }
61 inline UpdateAnswerRequest& WithLensAlias(const Aws::String& value) { SetLensAlias(value); return *this;}
62 inline UpdateAnswerRequest& WithLensAlias(Aws::String&& value) { SetLensAlias(std::move(value)); return *this;}
63 inline UpdateAnswerRequest& WithLensAlias(const char* value) { SetLensAlias(value); return *this;}
65
67
68 inline const Aws::String& GetQuestionId() const{ return m_questionId; }
69 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
70 inline void SetQuestionId(const Aws::String& value) { m_questionIdHasBeenSet = true; m_questionId = value; }
71 inline void SetQuestionId(Aws::String&& value) { m_questionIdHasBeenSet = true; m_questionId = std::move(value); }
72 inline void SetQuestionId(const char* value) { m_questionIdHasBeenSet = true; m_questionId.assign(value); }
73 inline UpdateAnswerRequest& WithQuestionId(const Aws::String& value) { SetQuestionId(value); return *this;}
74 inline UpdateAnswerRequest& WithQuestionId(Aws::String&& value) { SetQuestionId(std::move(value)); return *this;}
75 inline UpdateAnswerRequest& WithQuestionId(const char* value) { SetQuestionId(value); return *this;}
77
79
80 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const{ return m_selectedChoices; }
81 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
82 inline void SetSelectedChoices(const Aws::Vector<Aws::String>& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = value; }
83 inline void SetSelectedChoices(Aws::Vector<Aws::String>&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::move(value); }
85 inline UpdateAnswerRequest& WithSelectedChoices(Aws::Vector<Aws::String>&& value) { SetSelectedChoices(std::move(value)); return *this;}
86 inline UpdateAnswerRequest& AddSelectedChoices(const Aws::String& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
87 inline UpdateAnswerRequest& AddSelectedChoices(Aws::String&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(std::move(value)); return *this; }
88 inline UpdateAnswerRequest& AddSelectedChoices(const char* value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.push_back(value); return *this; }
90
92
96 inline const Aws::Map<Aws::String, ChoiceUpdate>& GetChoiceUpdates() const{ return m_choiceUpdates; }
97 inline bool ChoiceUpdatesHasBeenSet() const { return m_choiceUpdatesHasBeenSet; }
98 inline void SetChoiceUpdates(const Aws::Map<Aws::String, ChoiceUpdate>& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates = value; }
99 inline void SetChoiceUpdates(Aws::Map<Aws::String, ChoiceUpdate>&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates = std::move(value); }
102 inline UpdateAnswerRequest& AddChoiceUpdates(const Aws::String& key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, value); return *this; }
103 inline UpdateAnswerRequest& AddChoiceUpdates(Aws::String&& key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(std::move(key), value); return *this; }
104 inline UpdateAnswerRequest& AddChoiceUpdates(const Aws::String& key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, std::move(value)); return *this; }
105 inline UpdateAnswerRequest& AddChoiceUpdates(Aws::String&& key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(std::move(key), std::move(value)); return *this; }
106 inline UpdateAnswerRequest& AddChoiceUpdates(const char* key, ChoiceUpdate&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, std::move(value)); return *this; }
107 inline UpdateAnswerRequest& AddChoiceUpdates(const char* key, const ChoiceUpdate& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(key, value); return *this; }
109
111
112 inline const Aws::String& GetNotes() const{ return m_notes; }
113 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
114 inline void SetNotes(const Aws::String& value) { m_notesHasBeenSet = true; m_notes = value; }
115 inline void SetNotes(Aws::String&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); }
116 inline void SetNotes(const char* value) { m_notesHasBeenSet = true; m_notes.assign(value); }
117 inline UpdateAnswerRequest& WithNotes(const Aws::String& value) { SetNotes(value); return *this;}
118 inline UpdateAnswerRequest& WithNotes(Aws::String&& value) { SetNotes(std::move(value)); return *this;}
119 inline UpdateAnswerRequest& WithNotes(const char* value) { SetNotes(value); return *this;}
121
123
124 inline bool GetIsApplicable() const{ return m_isApplicable; }
125 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
126 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
127 inline UpdateAnswerRequest& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
129
131
134 inline const AnswerReason& GetReason() const{ return m_reason; }
135 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
136 inline void SetReason(const AnswerReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
137 inline void SetReason(AnswerReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
138 inline UpdateAnswerRequest& WithReason(const AnswerReason& value) { SetReason(value); return *this;}
139 inline UpdateAnswerRequest& WithReason(AnswerReason&& value) { SetReason(std::move(value)); return *this;}
141 private:
142
143 Aws::String m_workloadId;
144 bool m_workloadIdHasBeenSet = false;
145
146 Aws::String m_lensAlias;
147 bool m_lensAliasHasBeenSet = false;
148
149 Aws::String m_questionId;
150 bool m_questionIdHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_selectedChoices;
153 bool m_selectedChoicesHasBeenSet = false;
154
156 bool m_choiceUpdatesHasBeenSet = false;
157
158 Aws::String m_notes;
159 bool m_notesHasBeenSet = false;
160
161 bool m_isApplicable;
162 bool m_isApplicableHasBeenSet = false;
163
164 AnswerReason m_reason;
165 bool m_reasonHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace WellArchitected
170} // namespace Aws
UpdateAnswerRequest & AddSelectedChoices(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSelectedChoices() const
UpdateAnswerRequest & WithQuestionId(Aws::String &&value)
void SetChoiceUpdates(const Aws::Map< Aws::String, ChoiceUpdate > &value)
UpdateAnswerRequest & WithSelectedChoices(Aws::Vector< Aws::String > &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateAnswerRequest & AddSelectedChoices(const char *value)
UpdateAnswerRequest & WithLensAlias(const Aws::String &value)
UpdateAnswerRequest & WithWorkloadId(const Aws::String &value)
UpdateAnswerRequest & WithQuestionId(const char *value)
UpdateAnswerRequest & AddChoiceUpdates(Aws::String &&key, const ChoiceUpdate &value)
UpdateAnswerRequest & WithQuestionId(const Aws::String &value)
UpdateAnswerRequest & AddChoiceUpdates(const char *key, ChoiceUpdate &&value)
UpdateAnswerRequest & WithChoiceUpdates(Aws::Map< Aws::String, ChoiceUpdate > &&value)
void SetChoiceUpdates(Aws::Map< Aws::String, ChoiceUpdate > &&value)
UpdateAnswerRequest & WithNotes(Aws::String &&value)
UpdateAnswerRequest & WithWorkloadId(const char *value)
void SetSelectedChoices(Aws::Vector< Aws::String > &&value)
UpdateAnswerRequest & WithWorkloadId(Aws::String &&value)
UpdateAnswerRequest & WithNotes(const Aws::String &value)
UpdateAnswerRequest & WithReason(const AnswerReason &value)
UpdateAnswerRequest & WithNotes(const char *value)
UpdateAnswerRequest & WithReason(AnswerReason &&value)
UpdateAnswerRequest & AddChoiceUpdates(const char *key, const ChoiceUpdate &value)
UpdateAnswerRequest & WithIsApplicable(bool value)
UpdateAnswerRequest & WithChoiceUpdates(const Aws::Map< Aws::String, ChoiceUpdate > &value)
UpdateAnswerRequest & AddChoiceUpdates(Aws::String &&key, ChoiceUpdate &&value)
UpdateAnswerRequest & AddSelectedChoices(Aws::String &&value)
UpdateAnswerRequest & WithLensAlias(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateAnswerRequest & AddChoiceUpdates(const Aws::String &key, const ChoiceUpdate &value)
void SetSelectedChoices(const Aws::Vector< Aws::String > &value)
UpdateAnswerRequest & WithLensAlias(const char *value)
const Aws::Map< Aws::String, ChoiceUpdate > & GetChoiceUpdates() const
UpdateAnswerRequest & AddChoiceUpdates(const Aws::String &key, ChoiceUpdate &&value)
UpdateAnswerRequest & WithSelectedChoices(const Aws::Vector< 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