AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename WorkloadIdT = Aws::String>
47 void SetWorkloadId(WorkloadIdT&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::forward<WorkloadIdT>(value); }
48 template<typename WorkloadIdT = Aws::String>
49 UpdateAnswerRequest& WithWorkloadId(WorkloadIdT&& value) { SetWorkloadId(std::forward<WorkloadIdT>(value)); return *this;}
51
53
54 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
55 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
56 template<typename LensAliasT = Aws::String>
57 void SetLensAlias(LensAliasT&& value) { m_lensAliasHasBeenSet = true; m_lensAlias = std::forward<LensAliasT>(value); }
58 template<typename LensAliasT = Aws::String>
59 UpdateAnswerRequest& WithLensAlias(LensAliasT&& value) { SetLensAlias(std::forward<LensAliasT>(value)); return *this;}
61
63
64 inline const Aws::String& GetQuestionId() const { return m_questionId; }
65 inline bool QuestionIdHasBeenSet() const { return m_questionIdHasBeenSet; }
66 template<typename QuestionIdT = Aws::String>
67 void SetQuestionId(QuestionIdT&& value) { m_questionIdHasBeenSet = true; m_questionId = std::forward<QuestionIdT>(value); }
68 template<typename QuestionIdT = Aws::String>
69 UpdateAnswerRequest& WithQuestionId(QuestionIdT&& value) { SetQuestionId(std::forward<QuestionIdT>(value)); return *this;}
71
73
74 inline const Aws::Vector<Aws::String>& GetSelectedChoices() const { return m_selectedChoices; }
75 inline bool SelectedChoicesHasBeenSet() const { return m_selectedChoicesHasBeenSet; }
76 template<typename SelectedChoicesT = Aws::Vector<Aws::String>>
77 void SetSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices = std::forward<SelectedChoicesT>(value); }
78 template<typename SelectedChoicesT = Aws::Vector<Aws::String>>
79 UpdateAnswerRequest& WithSelectedChoices(SelectedChoicesT&& value) { SetSelectedChoices(std::forward<SelectedChoicesT>(value)); return *this;}
80 template<typename SelectedChoicesT = Aws::String>
81 UpdateAnswerRequest& AddSelectedChoices(SelectedChoicesT&& value) { m_selectedChoicesHasBeenSet = true; m_selectedChoices.emplace_back(std::forward<SelectedChoicesT>(value)); return *this; }
83
85
89 inline const Aws::Map<Aws::String, ChoiceUpdate>& GetChoiceUpdates() const { return m_choiceUpdates; }
90 inline bool ChoiceUpdatesHasBeenSet() const { return m_choiceUpdatesHasBeenSet; }
91 template<typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
92 void SetChoiceUpdates(ChoiceUpdatesT&& value) { m_choiceUpdatesHasBeenSet = true; m_choiceUpdates = std::forward<ChoiceUpdatesT>(value); }
93 template<typename ChoiceUpdatesT = Aws::Map<Aws::String, ChoiceUpdate>>
94 UpdateAnswerRequest& WithChoiceUpdates(ChoiceUpdatesT&& value) { SetChoiceUpdates(std::forward<ChoiceUpdatesT>(value)); return *this;}
95 template<typename ChoiceUpdatesKeyT = Aws::String, typename ChoiceUpdatesValueT = ChoiceUpdate>
96 UpdateAnswerRequest& AddChoiceUpdates(ChoiceUpdatesKeyT&& key, ChoiceUpdatesValueT&& value) {
97 m_choiceUpdatesHasBeenSet = true; m_choiceUpdates.emplace(std::forward<ChoiceUpdatesKeyT>(key), std::forward<ChoiceUpdatesValueT>(value)); return *this;
98 }
100
102
103 inline const Aws::String& GetNotes() const { return m_notes; }
104 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
105 template<typename NotesT = Aws::String>
106 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
107 template<typename NotesT = Aws::String>
108 UpdateAnswerRequest& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
110
112
113 inline bool GetIsApplicable() const { return m_isApplicable; }
114 inline bool IsApplicableHasBeenSet() const { return m_isApplicableHasBeenSet; }
115 inline void SetIsApplicable(bool value) { m_isApplicableHasBeenSet = true; m_isApplicable = value; }
116 inline UpdateAnswerRequest& WithIsApplicable(bool value) { SetIsApplicable(value); return *this;}
118
120
123 inline AnswerReason GetReason() const { return m_reason; }
124 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
125 inline void SetReason(AnswerReason value) { m_reasonHasBeenSet = true; m_reason = value; }
126 inline UpdateAnswerRequest& WithReason(AnswerReason value) { SetReason(value); return *this;}
128 private:
129
130 Aws::String m_workloadId;
131 bool m_workloadIdHasBeenSet = false;
132
133 Aws::String m_lensAlias;
134 bool m_lensAliasHasBeenSet = false;
135
136 Aws::String m_questionId;
137 bool m_questionIdHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_selectedChoices;
140 bool m_selectedChoicesHasBeenSet = false;
141
143 bool m_choiceUpdatesHasBeenSet = false;
144
145 Aws::String m_notes;
146 bool m_notesHasBeenSet = false;
147
148 bool m_isApplicable{false};
149 bool m_isApplicableHasBeenSet = false;
150
152 bool m_reasonHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace WellArchitected
157} // namespace Aws
const Aws::Vector< Aws::String > & GetSelectedChoices() const
UpdateAnswerRequest & WithReason(AnswerReason value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateAnswerRequest & WithSelectedChoices(SelectedChoicesT &&value)
UpdateAnswerRequest & WithChoiceUpdates(ChoiceUpdatesT &&value)
UpdateAnswerRequest & AddSelectedChoices(SelectedChoicesT &&value)
AWS_WELLARCHITECTED_API UpdateAnswerRequest()=default
UpdateAnswerRequest & WithQuestionId(QuestionIdT &&value)
UpdateAnswerRequest & WithWorkloadId(WorkloadIdT &&value)
UpdateAnswerRequest & AddChoiceUpdates(ChoiceUpdatesKeyT &&key, ChoiceUpdatesValueT &&value)
UpdateAnswerRequest & WithIsApplicable(bool value)
UpdateAnswerRequest & WithLensAlias(LensAliasT &&value)
UpdateAnswerRequest & WithNotes(NotesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, ChoiceUpdate > & GetChoiceUpdates() const
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