AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EndpointAuthorization.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace Redshift
26{
27namespace Model
28{
29
38 {
39 public:
43
44 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
51 inline const Aws::String& GetGrantor() const{ return m_grantor; }
52
56 inline bool GrantorHasBeenSet() const { return m_grantorHasBeenSet; }
57
61 inline void SetGrantor(const Aws::String& value) { m_grantorHasBeenSet = true; m_grantor = value; }
62
66 inline void SetGrantor(Aws::String&& value) { m_grantorHasBeenSet = true; m_grantor = std::move(value); }
67
71 inline void SetGrantor(const char* value) { m_grantorHasBeenSet = true; m_grantor.assign(value); }
72
76 inline EndpointAuthorization& WithGrantor(const Aws::String& value) { SetGrantor(value); return *this;}
77
81 inline EndpointAuthorization& WithGrantor(Aws::String&& value) { SetGrantor(std::move(value)); return *this;}
82
86 inline EndpointAuthorization& WithGrantor(const char* value) { SetGrantor(value); return *this;}
87
88
92 inline const Aws::String& GetGrantee() const{ return m_grantee; }
93
97 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
98
102 inline void SetGrantee(const Aws::String& value) { m_granteeHasBeenSet = true; m_grantee = value; }
103
107 inline void SetGrantee(Aws::String&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
108
112 inline void SetGrantee(const char* value) { m_granteeHasBeenSet = true; m_grantee.assign(value); }
113
117 inline EndpointAuthorization& WithGrantee(const Aws::String& value) { SetGrantee(value); return *this;}
118
122 inline EndpointAuthorization& WithGrantee(Aws::String&& value) { SetGrantee(std::move(value)); return *this;}
123
127 inline EndpointAuthorization& WithGrantee(const char* value) { SetGrantee(value); return *this;}
128
129
133 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
134
138 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
139
143 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
144
148 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
149
153 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
154
159
163 inline EndpointAuthorization& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
164
168 inline EndpointAuthorization& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
169
170
174 inline const Aws::Utils::DateTime& GetAuthorizeTime() const{ return m_authorizeTime; }
175
179 inline bool AuthorizeTimeHasBeenSet() const { return m_authorizeTimeHasBeenSet; }
180
184 inline void SetAuthorizeTime(const Aws::Utils::DateTime& value) { m_authorizeTimeHasBeenSet = true; m_authorizeTime = value; }
185
189 inline void SetAuthorizeTime(Aws::Utils::DateTime&& value) { m_authorizeTimeHasBeenSet = true; m_authorizeTime = std::move(value); }
190
195
199 inline EndpointAuthorization& WithAuthorizeTime(Aws::Utils::DateTime&& value) { SetAuthorizeTime(std::move(value)); return *this;}
200
201
205 inline const Aws::String& GetClusterStatus() const{ return m_clusterStatus; }
206
210 inline bool ClusterStatusHasBeenSet() const { return m_clusterStatusHasBeenSet; }
211
215 inline void SetClusterStatus(const Aws::String& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = value; }
216
220 inline void SetClusterStatus(Aws::String&& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = std::move(value); }
221
225 inline void SetClusterStatus(const char* value) { m_clusterStatusHasBeenSet = true; m_clusterStatus.assign(value); }
226
230 inline EndpointAuthorization& WithClusterStatus(const Aws::String& value) { SetClusterStatus(value); return *this;}
231
235 inline EndpointAuthorization& WithClusterStatus(Aws::String&& value) { SetClusterStatus(std::move(value)); return *this;}
236
240 inline EndpointAuthorization& WithClusterStatus(const char* value) { SetClusterStatus(value); return *this;}
241
242
246 inline const AuthorizationStatus& GetStatus() const{ return m_status; }
247
251 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
252
256 inline void SetStatus(const AuthorizationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
257
261 inline void SetStatus(AuthorizationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
262
266 inline EndpointAuthorization& WithStatus(const AuthorizationStatus& value) { SetStatus(value); return *this;}
267
271 inline EndpointAuthorization& WithStatus(AuthorizationStatus&& value) { SetStatus(std::move(value)); return *this;}
272
273
278 inline bool GetAllowedAllVPCs() const{ return m_allowedAllVPCs; }
279
284 inline bool AllowedAllVPCsHasBeenSet() const { return m_allowedAllVPCsHasBeenSet; }
285
290 inline void SetAllowedAllVPCs(bool value) { m_allowedAllVPCsHasBeenSet = true; m_allowedAllVPCs = value; }
291
296 inline EndpointAuthorization& WithAllowedAllVPCs(bool value) { SetAllowedAllVPCs(value); return *this;}
297
298
302 inline const Aws::Vector<Aws::String>& GetAllowedVPCs() const{ return m_allowedVPCs; }
303
307 inline bool AllowedVPCsHasBeenSet() const { return m_allowedVPCsHasBeenSet; }
308
312 inline void SetAllowedVPCs(const Aws::Vector<Aws::String>& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs = value; }
313
317 inline void SetAllowedVPCs(Aws::Vector<Aws::String>&& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs = std::move(value); }
318
323
327 inline EndpointAuthorization& WithAllowedVPCs(Aws::Vector<Aws::String>&& value) { SetAllowedVPCs(std::move(value)); return *this;}
328
332 inline EndpointAuthorization& AddAllowedVPCs(const Aws::String& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs.push_back(value); return *this; }
333
337 inline EndpointAuthorization& AddAllowedVPCs(Aws::String&& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs.push_back(std::move(value)); return *this; }
338
342 inline EndpointAuthorization& AddAllowedVPCs(const char* value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs.push_back(value); return *this; }
343
344
349 inline int GetEndpointCount() const{ return m_endpointCount; }
350
355 inline bool EndpointCountHasBeenSet() const { return m_endpointCountHasBeenSet; }
356
361 inline void SetEndpointCount(int value) { m_endpointCountHasBeenSet = true; m_endpointCount = value; }
362
367 inline EndpointAuthorization& WithEndpointCount(int value) { SetEndpointCount(value); return *this;}
368
369
370
371 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
372
373
374 inline bool ResponseMetadataHasBeenSet() const { return m_responseMetadataHasBeenSet; }
375
376
377 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = value; }
378
379
380 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::move(value); }
381
382
384
385
386 inline EndpointAuthorization& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
387
388 private:
389
390 Aws::String m_grantor;
391 bool m_grantorHasBeenSet = false;
392
393 Aws::String m_grantee;
394 bool m_granteeHasBeenSet = false;
395
396 Aws::String m_clusterIdentifier;
397 bool m_clusterIdentifierHasBeenSet = false;
398
399 Aws::Utils::DateTime m_authorizeTime;
400 bool m_authorizeTimeHasBeenSet = false;
401
402 Aws::String m_clusterStatus;
403 bool m_clusterStatusHasBeenSet = false;
404
405 AuthorizationStatus m_status;
406 bool m_statusHasBeenSet = false;
407
408 bool m_allowedAllVPCs;
409 bool m_allowedAllVPCsHasBeenSet = false;
410
411 Aws::Vector<Aws::String> m_allowedVPCs;
412 bool m_allowedVPCsHasBeenSet = false;
413
414 int m_endpointCount;
415 bool m_endpointCountHasBeenSet = false;
416
417 ResponseMetadata m_responseMetadata;
418 bool m_responseMetadataHasBeenSet = false;
419 };
420
421} // namespace Model
422} // namespace Redshift
423} // namespace Aws
#define AWS_REDSHIFT_API
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
EndpointAuthorization & WithAuthorizeTime(const Aws::Utils::DateTime &value)
EndpointAuthorization & WithClusterIdentifier(Aws::String &&value)
EndpointAuthorization & WithAllowedAllVPCs(bool value)
EndpointAuthorization & WithClusterStatus(Aws::String &&value)
void SetAuthorizeTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetAuthorizeTime() const
EndpointAuthorization & WithResponseMetadata(ResponseMetadata &&value)
const AuthorizationStatus & GetStatus() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EndpointAuthorization & WithClusterIdentifier(const char *value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetAuthorizeTime(Aws::Utils::DateTime &&value)
EndpointAuthorization & WithClusterStatus(const Aws::String &value)
EndpointAuthorization & WithAllowedVPCs(const Aws::Vector< Aws::String > &value)
EndpointAuthorization & WithGrantee(Aws::String &&value)
EndpointAuthorization & AddAllowedVPCs(const char *value)
EndpointAuthorization & WithGrantor(const char *value)
void SetStatus(AuthorizationStatus &&value)
EndpointAuthorization & WithStatus(AuthorizationStatus &&value)
EndpointAuthorization & WithAllowedVPCs(Aws::Vector< Aws::String > &&value)
EndpointAuthorization & WithClusterStatus(const char *value)
AWS_REDSHIFT_API EndpointAuthorization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EndpointAuthorization & WithStatus(const AuthorizationStatus &value)
EndpointAuthorization & WithClusterIdentifier(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
EndpointAuthorization & WithGrantee(const Aws::String &value)
AWS_REDSHIFT_API EndpointAuthorization(const Aws::Utils::Xml::XmlNode &xmlNode)
EndpointAuthorization & WithEndpointCount(int value)
void SetStatus(const AuthorizationStatus &value)
EndpointAuthorization & AddAllowedVPCs(Aws::String &&value)
EndpointAuthorization & AddAllowedVPCs(const Aws::String &value)
EndpointAuthorization & WithGrantee(const char *value)
EndpointAuthorization & WithGrantor(Aws::String &&value)
void SetClusterIdentifier(const Aws::String &value)
EndpointAuthorization & WithGrantor(const Aws::String &value)
EndpointAuthorization & WithAuthorizeTime(Aws::Utils::DateTime &&value)
void SetAllowedVPCs(Aws::Vector< Aws::String > &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAllowedVPCs(const Aws::Vector< Aws::String > &value)
EndpointAuthorization & WithResponseMetadata(const ResponseMetadata &value)
void SetClusterStatus(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream