AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RevokeEndpointAccessResult.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace Redshift
28{
29namespace Model
30{
39 {
40 public:
44
45
49 inline const Aws::String& GetGrantor() const{ return m_grantor; }
50
54 inline void SetGrantor(const Aws::String& value) { m_grantor = value; }
55
59 inline void SetGrantor(Aws::String&& value) { m_grantor = std::move(value); }
60
64 inline void SetGrantor(const char* value) { m_grantor.assign(value); }
65
69 inline RevokeEndpointAccessResult& WithGrantor(const Aws::String& value) { SetGrantor(value); return *this;}
70
74 inline RevokeEndpointAccessResult& WithGrantor(Aws::String&& value) { SetGrantor(std::move(value)); return *this;}
75
79 inline RevokeEndpointAccessResult& WithGrantor(const char* value) { SetGrantor(value); return *this;}
80
81
85 inline const Aws::String& GetGrantee() const{ return m_grantee; }
86
90 inline void SetGrantee(const Aws::String& value) { m_grantee = value; }
91
95 inline void SetGrantee(Aws::String&& value) { m_grantee = std::move(value); }
96
100 inline void SetGrantee(const char* value) { m_grantee.assign(value); }
101
105 inline RevokeEndpointAccessResult& WithGrantee(const Aws::String& value) { SetGrantee(value); return *this;}
106
110 inline RevokeEndpointAccessResult& WithGrantee(Aws::String&& value) { SetGrantee(std::move(value)); return *this;}
111
115 inline RevokeEndpointAccessResult& WithGrantee(const char* value) { SetGrantee(value); return *this;}
116
117
121 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
122
126 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifier = value; }
127
131 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifier = std::move(value); }
132
136 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifier.assign(value); }
137
142
146 inline RevokeEndpointAccessResult& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
147
151 inline RevokeEndpointAccessResult& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
152
153
157 inline const Aws::Utils::DateTime& GetAuthorizeTime() const{ return m_authorizeTime; }
158
162 inline void SetAuthorizeTime(const Aws::Utils::DateTime& value) { m_authorizeTime = value; }
163
167 inline void SetAuthorizeTime(Aws::Utils::DateTime&& value) { m_authorizeTime = std::move(value); }
168
173
177 inline RevokeEndpointAccessResult& WithAuthorizeTime(Aws::Utils::DateTime&& value) { SetAuthorizeTime(std::move(value)); return *this;}
178
179
183 inline const Aws::String& GetClusterStatus() const{ return m_clusterStatus; }
184
188 inline void SetClusterStatus(const Aws::String& value) { m_clusterStatus = value; }
189
193 inline void SetClusterStatus(Aws::String&& value) { m_clusterStatus = std::move(value); }
194
198 inline void SetClusterStatus(const char* value) { m_clusterStatus.assign(value); }
199
203 inline RevokeEndpointAccessResult& WithClusterStatus(const Aws::String& value) { SetClusterStatus(value); return *this;}
204
208 inline RevokeEndpointAccessResult& WithClusterStatus(Aws::String&& value) { SetClusterStatus(std::move(value)); return *this;}
209
213 inline RevokeEndpointAccessResult& WithClusterStatus(const char* value) { SetClusterStatus(value); return *this;}
214
215
219 inline const AuthorizationStatus& GetStatus() const{ return m_status; }
220
224 inline void SetStatus(const AuthorizationStatus& value) { m_status = value; }
225
229 inline void SetStatus(AuthorizationStatus&& value) { m_status = std::move(value); }
230
234 inline RevokeEndpointAccessResult& WithStatus(const AuthorizationStatus& value) { SetStatus(value); return *this;}
235
239 inline RevokeEndpointAccessResult& WithStatus(AuthorizationStatus&& value) { SetStatus(std::move(value)); return *this;}
240
241
246 inline bool GetAllowedAllVPCs() const{ return m_allowedAllVPCs; }
247
252 inline void SetAllowedAllVPCs(bool value) { m_allowedAllVPCs = value; }
253
258 inline RevokeEndpointAccessResult& WithAllowedAllVPCs(bool value) { SetAllowedAllVPCs(value); return *this;}
259
260
264 inline const Aws::Vector<Aws::String>& GetAllowedVPCs() const{ return m_allowedVPCs; }
265
269 inline void SetAllowedVPCs(const Aws::Vector<Aws::String>& value) { m_allowedVPCs = value; }
270
274 inline void SetAllowedVPCs(Aws::Vector<Aws::String>&& value) { m_allowedVPCs = std::move(value); }
275
280
284 inline RevokeEndpointAccessResult& WithAllowedVPCs(Aws::Vector<Aws::String>&& value) { SetAllowedVPCs(std::move(value)); return *this;}
285
289 inline RevokeEndpointAccessResult& AddAllowedVPCs(const Aws::String& value) { m_allowedVPCs.push_back(value); return *this; }
290
294 inline RevokeEndpointAccessResult& AddAllowedVPCs(Aws::String&& value) { m_allowedVPCs.push_back(std::move(value)); return *this; }
295
299 inline RevokeEndpointAccessResult& AddAllowedVPCs(const char* value) { m_allowedVPCs.push_back(value); return *this; }
300
301
306 inline int GetEndpointCount() const{ return m_endpointCount; }
307
312 inline void SetEndpointCount(int value) { m_endpointCount = value; }
313
318 inline RevokeEndpointAccessResult& WithEndpointCount(int value) { SetEndpointCount(value); return *this;}
319
320
321
322 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
323
324
325 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
326
327
328 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
329
330
332
333
334 inline RevokeEndpointAccessResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
335
336 private:
337
338 Aws::String m_grantor;
339
340 Aws::String m_grantee;
341
342 Aws::String m_clusterIdentifier;
343
344 Aws::Utils::DateTime m_authorizeTime;
345
346 Aws::String m_clusterStatus;
347
348 AuthorizationStatus m_status;
349
350 bool m_allowedAllVPCs;
351
352 Aws::Vector<Aws::String> m_allowedVPCs;
353
354 int m_endpointCount;
355
356 ResponseMetadata m_responseMetadata;
357 };
358
359} // namespace Model
360} // namespace Redshift
361} // namespace Aws
#define AWS_REDSHIFT_API
RevokeEndpointAccessResult & WithGrantor(Aws::String &&value)
RevokeEndpointAccessResult & WithAuthorizeTime(Aws::Utils::DateTime &&value)
RevokeEndpointAccessResult & WithStatus(const AuthorizationStatus &value)
void SetAllowedVPCs(Aws::Vector< Aws::String > &&value)
RevokeEndpointAccessResult & WithClusterIdentifier(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
RevokeEndpointAccessResult & WithAllowedVPCs(const Aws::Vector< Aws::String > &value)
RevokeEndpointAccessResult & WithEndpointCount(int value)
RevokeEndpointAccessResult & WithGrantor(const char *value)
RevokeEndpointAccessResult & WithStatus(AuthorizationStatus &&value)
RevokeEndpointAccessResult & WithResponseMetadata(ResponseMetadata &&value)
AWS_REDSHIFT_API RevokeEndpointAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
RevokeEndpointAccessResult & WithClusterIdentifier(const Aws::String &value)
RevokeEndpointAccessResult & WithAuthorizeTime(const Aws::Utils::DateTime &value)
RevokeEndpointAccessResult & WithGrantee(const Aws::String &value)
RevokeEndpointAccessResult & WithClusterStatus(Aws::String &&value)
RevokeEndpointAccessResult & WithResponseMetadata(const ResponseMetadata &value)
RevokeEndpointAccessResult & WithClusterStatus(const char *value)
RevokeEndpointAccessResult & WithClusterIdentifier(const char *value)
RevokeEndpointAccessResult & WithGrantee(Aws::String &&value)
RevokeEndpointAccessResult & WithAllowedVPCs(Aws::Vector< Aws::String > &&value)
RevokeEndpointAccessResult & AddAllowedVPCs(const Aws::String &value)
void SetAllowedVPCs(const Aws::Vector< Aws::String > &value)
RevokeEndpointAccessResult & AddAllowedVPCs(const char *value)
RevokeEndpointAccessResult & AddAllowedVPCs(Aws::String &&value)
AWS_REDSHIFT_API RevokeEndpointAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
RevokeEndpointAccessResult & WithGrantee(const char *value)
RevokeEndpointAccessResult & WithAllowedAllVPCs(bool value)
void SetAuthorizeTime(const Aws::Utils::DateTime &value)
RevokeEndpointAccessResult & WithGrantor(const Aws::String &value)
RevokeEndpointAccessResult & WithClusterStatus(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector