AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ListAnswersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10#include <aws/wellarchitected/model/QuestionPriority.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace WellArchitected {
19namespace Model {
20
27 public:
28 AWS_WELLARCHITECTED_API ListAnswersRequest() = 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 "ListAnswers"; }
35
36 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
37
38 AWS_WELLARCHITECTED_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
42 inline const Aws::String& GetWorkloadId() const { return m_workloadId; }
43 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
44 template <typename WorkloadIdT = Aws::String>
45 void SetWorkloadId(WorkloadIdT&& value) {
46 m_workloadIdHasBeenSet = true;
47 m_workloadId = std::forward<WorkloadIdT>(value);
48 }
49 template <typename WorkloadIdT = Aws::String>
50 ListAnswersRequest& WithWorkloadId(WorkloadIdT&& value) {
51 SetWorkloadId(std::forward<WorkloadIdT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
59 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
60 template <typename LensAliasT = Aws::String>
61 void SetLensAlias(LensAliasT&& value) {
62 m_lensAliasHasBeenSet = true;
63 m_lensAlias = std::forward<LensAliasT>(value);
64 }
65 template <typename LensAliasT = Aws::String>
66 ListAnswersRequest& WithLensAlias(LensAliasT&& value) {
67 SetLensAlias(std::forward<LensAliasT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetPillarId() const { return m_pillarId; }
75 inline bool PillarIdHasBeenSet() const { return m_pillarIdHasBeenSet; }
76 template <typename PillarIdT = Aws::String>
77 void SetPillarId(PillarIdT&& value) {
78 m_pillarIdHasBeenSet = true;
79 m_pillarId = std::forward<PillarIdT>(value);
80 }
81 template <typename PillarIdT = Aws::String>
82 ListAnswersRequest& WithPillarId(PillarIdT&& value) {
83 SetPillarId(std::forward<PillarIdT>(value));
84 return *this;
85 }
87
89
90 inline int GetMilestoneNumber() const { return m_milestoneNumber; }
91 inline bool MilestoneNumberHasBeenSet() const { return m_milestoneNumberHasBeenSet; }
92 inline void SetMilestoneNumber(int value) {
93 m_milestoneNumberHasBeenSet = true;
94 m_milestoneNumber = value;
95 }
97 SetMilestoneNumber(value);
98 return *this;
99 }
101
103
104 inline const Aws::String& GetNextToken() const { return m_nextToken; }
105 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
106 template <typename NextTokenT = Aws::String>
107 void SetNextToken(NextTokenT&& value) {
108 m_nextTokenHasBeenSet = true;
109 m_nextToken = std::forward<NextTokenT>(value);
110 }
111 template <typename NextTokenT = Aws::String>
112 ListAnswersRequest& WithNextToken(NextTokenT&& value) {
113 SetNextToken(std::forward<NextTokenT>(value));
114 return *this;
115 }
117
119
122 inline int GetMaxResults() const { return m_maxResults; }
123 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
124 inline void SetMaxResults(int value) {
125 m_maxResultsHasBeenSet = true;
126 m_maxResults = value;
127 }
129 SetMaxResults(value);
130 return *this;
131 }
133
135
138 inline QuestionPriority GetQuestionPriority() const { return m_questionPriority; }
139 inline bool QuestionPriorityHasBeenSet() const { return m_questionPriorityHasBeenSet; }
141 m_questionPriorityHasBeenSet = true;
142 m_questionPriority = value;
143 }
145 SetQuestionPriority(value);
146 return *this;
147 }
149 private:
150 Aws::String m_workloadId;
151 bool m_workloadIdHasBeenSet = false;
152
153 Aws::String m_lensAlias;
154 bool m_lensAliasHasBeenSet = false;
155
156 Aws::String m_pillarId;
157 bool m_pillarIdHasBeenSet = false;
158
159 int m_milestoneNumber{0};
160 bool m_milestoneNumberHasBeenSet = false;
161
162 Aws::String m_nextToken;
163 bool m_nextTokenHasBeenSet = false;
164
165 int m_maxResults{0};
166 bool m_maxResultsHasBeenSet = false;
167
169 bool m_questionPriorityHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace WellArchitected
174} // namespace Aws
ListAnswersRequest & WithQuestionPriority(QuestionPriority value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
ListAnswersRequest & WithNextToken(NextTokenT &&value)
AWS_WELLARCHITECTED_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAnswersRequest & WithWorkloadId(WorkloadIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_WELLARCHITECTED_API ListAnswersRequest()=default
ListAnswersRequest & WithLensAlias(LensAliasT &&value)
ListAnswersRequest & WithPillarId(PillarIdT &&value)
ListAnswersRequest & WithMilestoneNumber(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String