AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ListAppsRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/ResilienceHubRequest.h>
10#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace ResilienceHub {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUB_API ListAppsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListApps"; }
32
33 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
34
35 AWS_RESILIENCEHUB_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
47 inline const Aws::String& GetAppArn() const { return m_appArn; }
48 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
49 template <typename AppArnT = Aws::String>
50 void SetAppArn(AppArnT&& value) {
51 m_appArnHasBeenSet = true;
52 m_appArn = std::forward<AppArnT>(value);
53 }
54 template <typename AppArnT = Aws::String>
55 ListAppsRequest& WithAppArn(AppArnT&& value) {
56 SetAppArn(std::forward<AppArnT>(value));
57 return *this;
58 }
60
62
69 inline const Aws::String& GetAwsApplicationArn() const { return m_awsApplicationArn; }
70 inline bool AwsApplicationArnHasBeenSet() const { return m_awsApplicationArnHasBeenSet; }
71 template <typename AwsApplicationArnT = Aws::String>
72 void SetAwsApplicationArn(AwsApplicationArnT&& value) {
73 m_awsApplicationArnHasBeenSet = true;
74 m_awsApplicationArn = std::forward<AwsApplicationArnT>(value);
75 }
76 template <typename AwsApplicationArnT = Aws::String>
77 ListAppsRequest& WithAwsApplicationArn(AwsApplicationArnT&& value) {
78 SetAwsApplicationArn(std::forward<AwsApplicationArnT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::Utils::DateTime& GetFromLastAssessmentTime() const { return m_fromLastAssessmentTime; }
89 inline bool FromLastAssessmentTimeHasBeenSet() const { return m_fromLastAssessmentTimeHasBeenSet; }
90 template <typename FromLastAssessmentTimeT = Aws::Utils::DateTime>
91 void SetFromLastAssessmentTime(FromLastAssessmentTimeT&& value) {
92 m_fromLastAssessmentTimeHasBeenSet = true;
93 m_fromLastAssessmentTime = std::forward<FromLastAssessmentTimeT>(value);
94 }
95 template <typename FromLastAssessmentTimeT = Aws::Utils::DateTime>
96 ListAppsRequest& WithFromLastAssessmentTime(FromLastAssessmentTimeT&& value) {
97 SetFromLastAssessmentTime(std::forward<FromLastAssessmentTimeT>(value));
98 return *this;
99 }
101
103
108 inline int GetMaxResults() const { return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) {
111 m_maxResultsHasBeenSet = true;
112 m_maxResults = value;
113 }
114 inline ListAppsRequest& WithMaxResults(int value) {
115 SetMaxResults(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetName() const { return m_name; }
125 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
126 template <typename NameT = Aws::String>
127 void SetName(NameT&& value) {
128 m_nameHasBeenSet = true;
129 m_name = std::forward<NameT>(value);
130 }
131 template <typename NameT = Aws::String>
132 ListAppsRequest& WithName(NameT&& value) {
133 SetName(std::forward<NameT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetNextToken() const { return m_nextToken; }
143 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
144 template <typename NextTokenT = Aws::String>
145 void SetNextToken(NextTokenT&& value) {
146 m_nextTokenHasBeenSet = true;
147 m_nextToken = std::forward<NextTokenT>(value);
148 }
149 template <typename NextTokenT = Aws::String>
150 ListAppsRequest& WithNextToken(NextTokenT&& value) {
151 SetNextToken(std::forward<NextTokenT>(value));
152 return *this;
153 }
155
157
163 inline bool GetReverseOrder() const { return m_reverseOrder; }
164 inline bool ReverseOrderHasBeenSet() const { return m_reverseOrderHasBeenSet; }
165 inline void SetReverseOrder(bool value) {
166 m_reverseOrderHasBeenSet = true;
167 m_reverseOrder = value;
168 }
169 inline ListAppsRequest& WithReverseOrder(bool value) {
170 SetReverseOrder(value);
171 return *this;
172 }
174
176
180 inline const Aws::Utils::DateTime& GetToLastAssessmentTime() const { return m_toLastAssessmentTime; }
181 inline bool ToLastAssessmentTimeHasBeenSet() const { return m_toLastAssessmentTimeHasBeenSet; }
182 template <typename ToLastAssessmentTimeT = Aws::Utils::DateTime>
183 void SetToLastAssessmentTime(ToLastAssessmentTimeT&& value) {
184 m_toLastAssessmentTimeHasBeenSet = true;
185 m_toLastAssessmentTime = std::forward<ToLastAssessmentTimeT>(value);
186 }
187 template <typename ToLastAssessmentTimeT = Aws::Utils::DateTime>
188 ListAppsRequest& WithToLastAssessmentTime(ToLastAssessmentTimeT&& value) {
189 SetToLastAssessmentTime(std::forward<ToLastAssessmentTimeT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_appArn;
195
196 Aws::String m_awsApplicationArn;
197
198 Aws::Utils::DateTime m_fromLastAssessmentTime{};
199
200 int m_maxResults{0};
201
202 Aws::String m_name;
203
204 Aws::String m_nextToken;
205
206 bool m_reverseOrder{false};
207
208 Aws::Utils::DateTime m_toLastAssessmentTime{};
209 bool m_appArnHasBeenSet = false;
210 bool m_awsApplicationArnHasBeenSet = false;
211 bool m_fromLastAssessmentTimeHasBeenSet = false;
212 bool m_maxResultsHasBeenSet = false;
213 bool m_nameHasBeenSet = false;
214 bool m_nextTokenHasBeenSet = false;
215 bool m_reverseOrderHasBeenSet = false;
216 bool m_toLastAssessmentTimeHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace ResilienceHub
221} // namespace Aws
ListAppsRequest & WithAppArn(AppArnT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetFromLastAssessmentTime() const
ListAppsRequest & WithFromLastAssessmentTime(FromLastAssessmentTimeT &&value)
const Aws::Utils::DateTime & GetToLastAssessmentTime() const
const Aws::String & GetAwsApplicationArn() const
ListAppsRequest & WithMaxResults(int value)
ListAppsRequest & WithNextToken(NextTokenT &&value)
void SetFromLastAssessmentTime(FromLastAssessmentTimeT &&value)
virtual const char * GetServiceRequestName() const override
AWS_RESILIENCEHUB_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAppsRequest & WithReverseOrder(bool value)
void SetAwsApplicationArn(AwsApplicationArnT &&value)
void SetToLastAssessmentTime(ToLastAssessmentTimeT &&value)
ListAppsRequest & WithAwsApplicationArn(AwsApplicationArnT &&value)
AWS_RESILIENCEHUB_API ListAppsRequest()=default
ListAppsRequest & WithToLastAssessmentTime(ToLastAssessmentTimeT &&value)
ListAppsRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String