AWS SDK for C++  1.9.153
AWS SDK for C++
EndpointAuthorization.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlNode;
23 } // namespace Xml
24 } // namespace Utils
25 namespace Redshift
26 {
27 namespace Model
28 {
29 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  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 
158  inline EndpointAuthorization& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
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 
194  inline EndpointAuthorization& WithAuthorizeTime(const Aws::Utils::DateTime& value) { SetAuthorizeTime(value); return *this;}
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 
322  inline EndpointAuthorization& WithAllowedVPCs(const Aws::Vector<Aws::String>& value) { SetAllowedVPCs(value); return *this;}
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 
383  inline EndpointAuthorization& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
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;
392 
393  Aws::String m_grantee;
394  bool m_granteeHasBeenSet;
395 
396  Aws::String m_clusterIdentifier;
397  bool m_clusterIdentifierHasBeenSet;
398 
399  Aws::Utils::DateTime m_authorizeTime;
400  bool m_authorizeTimeHasBeenSet;
401 
402  Aws::String m_clusterStatus;
403  bool m_clusterStatusHasBeenSet;
404 
405  AuthorizationStatus m_status;
406  bool m_statusHasBeenSet;
407 
408  bool m_allowedAllVPCs;
409  bool m_allowedAllVPCsHasBeenSet;
410 
411  Aws::Vector<Aws::String> m_allowedVPCs;
412  bool m_allowedVPCsHasBeenSet;
413 
414  int m_endpointCount;
415  bool m_endpointCountHasBeenSet;
416 
417  ResponseMetadata m_responseMetadata;
418  bool m_responseMetadataHasBeenSet;
419  };
420 
421 } // namespace Model
422 } // namespace Redshift
423 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::EndpointAuthorization::SetGrantor
void SetGrantor(Aws::String &&value)
Definition: EndpointAuthorization.h:66
Aws::Redshift::Model::EndpointAuthorization::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: EndpointAuthorization.h:371
Aws::Redshift::Model::EndpointAuthorization::WithClusterIdentifier
EndpointAuthorization & WithClusterIdentifier(Aws::String &&value)
Definition: EndpointAuthorization.h:163
Aws::Redshift::Model::EndpointAuthorization::GetStatus
const AuthorizationStatus & GetStatus() const
Definition: EndpointAuthorization.h:246
Aws::Redshift::Model::EndpointAuthorization::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: EndpointAuthorization.h:138
Aws::Redshift::Model::EndpointAuthorization::ClusterStatusHasBeenSet
bool ClusterStatusHasBeenSet() const
Definition: EndpointAuthorization.h:210
Aws::Redshift::Model::EndpointAuthorization::GetAllowedVPCs
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
Definition: EndpointAuthorization.h:302
Aws::Redshift::Model::EndpointAuthorization::WithGrantor
EndpointAuthorization & WithGrantor(const char *value)
Definition: EndpointAuthorization.h:86
Aws::Redshift::Model::EndpointAuthorization::AuthorizeTimeHasBeenSet
bool AuthorizeTimeHasBeenSet() const
Definition: EndpointAuthorization.h:179
Aws::Redshift::Model::EndpointAuthorization::SetGrantee
void SetGrantee(const char *value)
Definition: EndpointAuthorization.h:112
AuthorizationStatus.h
Aws::Redshift::Model::EndpointAuthorization::SetStatus
void SetStatus(AuthorizationStatus &&value)
Definition: EndpointAuthorization.h:261
Aws::Redshift::Model::EndpointAuthorization::SetStatus
void SetStatus(const AuthorizationStatus &value)
Definition: EndpointAuthorization.h:256
Aws::Redshift::Model::EndpointAuthorization::WithGrantor
EndpointAuthorization & WithGrantor(const Aws::String &value)
Definition: EndpointAuthorization.h:76
DateTime.h
Aws::Redshift::Model::EndpointAuthorization::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: EndpointAuthorization.h:377
Aws::Redshift::Model::EndpointAuthorization::operator=
EndpointAuthorization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::EndpointAuthorization::WithAuthorizeTime
EndpointAuthorization & WithAuthorizeTime(const Aws::Utils::DateTime &value)
Definition: EndpointAuthorization.h:194
Aws::Redshift::Model::EndpointAuthorization::SetAllowedAllVPCs
void SetAllowedAllVPCs(bool value)
Definition: EndpointAuthorization.h:290
Aws::Redshift::Model::EndpointAuthorization::SetClusterStatus
void SetClusterStatus(const Aws::String &value)
Definition: EndpointAuthorization.h:215
Aws::Redshift::Model::EndpointAuthorization::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: EndpointAuthorization.h:153
Aws::Redshift::Model::EndpointAuthorization::SetGrantee
void SetGrantee(Aws::String &&value)
Definition: EndpointAuthorization.h:107
Aws::Redshift::Model::EndpointAuthorization::WithResponseMetadata
EndpointAuthorization & WithResponseMetadata(const ResponseMetadata &value)
Definition: EndpointAuthorization.h:383
Aws::Redshift::Model::EndpointAuthorization::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::EndpointAuthorization::SetEndpointCount
void SetEndpointCount(int value)
Definition: EndpointAuthorization.h:361
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::EndpointAuthorization::SetGrantee
void SetGrantee(const Aws::String &value)
Definition: EndpointAuthorization.h:102
Aws::Redshift::Model::EndpointAuthorization::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: EndpointAuthorization.h:133
AWSStreamFwd.h
Aws::Redshift::Model::EndpointAuthorization::SetGrantor
void SetGrantor(const char *value)
Definition: EndpointAuthorization.h:71
Aws::Redshift::Model::EndpointAuthorization::AllowedAllVPCsHasBeenSet
bool AllowedAllVPCsHasBeenSet() const
Definition: EndpointAuthorization.h:284
Aws::Redshift::Model::EndpointAuthorization::AllowedVPCsHasBeenSet
bool AllowedVPCsHasBeenSet() const
Definition: EndpointAuthorization.h:307
Aws::Redshift::Model::EndpointAuthorization::GrantorHasBeenSet
bool GrantorHasBeenSet() const
Definition: EndpointAuthorization.h:56
Aws::Redshift::Model::EndpointAuthorization::SetAllowedVPCs
void SetAllowedVPCs(Aws::Vector< Aws::String > &&value)
Definition: EndpointAuthorization.h:317
AWSVector.h
Aws::Redshift::Model::EndpointAuthorization::EndpointAuthorization
EndpointAuthorization(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::EndpointAuthorization::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: EndpointAuthorization.h:380
Aws::Redshift::Model::EndpointAuthorization::WithGrantee
EndpointAuthorization & WithGrantee(const Aws::String &value)
Definition: EndpointAuthorization.h:117
Aws::Redshift::Model::EndpointAuthorization::WithGrantor
EndpointAuthorization & WithGrantor(Aws::String &&value)
Definition: EndpointAuthorization.h:81
Aws::Redshift::Model::EndpointAuthorization::WithEndpointCount
EndpointAuthorization & WithEndpointCount(int value)
Definition: EndpointAuthorization.h:367
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::EndpointAuthorization::EndpointCountHasBeenSet
bool EndpointCountHasBeenSet() const
Definition: EndpointAuthorization.h:355
Aws::Redshift::Model::EndpointAuthorization::GetGrantor
const Aws::String & GetGrantor() const
Definition: EndpointAuthorization.h:51
Aws::Redshift::Model::EndpointAuthorization::SetClusterStatus
void SetClusterStatus(const char *value)
Definition: EndpointAuthorization.h:225
Aws::Redshift::Model::EndpointAuthorization::GetAuthorizeTime
const Aws::Utils::DateTime & GetAuthorizeTime() const
Definition: EndpointAuthorization.h:174
Aws::Redshift::Model::EndpointAuthorization
Definition: EndpointAuthorization.h:38
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::EndpointAuthorization::ResponseMetadataHasBeenSet
bool ResponseMetadataHasBeenSet() const
Definition: EndpointAuthorization.h:374
Aws::Redshift::Model::EndpointAuthorization::WithClusterIdentifier
EndpointAuthorization & WithClusterIdentifier(const Aws::String &value)
Definition: EndpointAuthorization.h:158
Aws::Redshift::Model::EndpointAuthorization::GetEndpointCount
int GetEndpointCount() const
Definition: EndpointAuthorization.h:349
Aws::Redshift::Model::EndpointAuthorization::WithStatus
EndpointAuthorization & WithStatus(AuthorizationStatus &&value)
Definition: EndpointAuthorization.h:271
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::EndpointAuthorization::WithAllowedVPCs
EndpointAuthorization & WithAllowedVPCs(Aws::Vector< Aws::String > &&value)
Definition: EndpointAuthorization.h:327
Aws::Redshift::Model::EndpointAuthorization::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::EndpointAuthorization::EndpointAuthorization
EndpointAuthorization()
Aws::Redshift::Model::EndpointAuthorization::SetAuthorizeTime
void SetAuthorizeTime(const Aws::Utils::DateTime &value)
Definition: EndpointAuthorization.h:184
AWSString.h
Aws::Redshift::Model::EndpointAuthorization::GranteeHasBeenSet
bool GranteeHasBeenSet() const
Definition: EndpointAuthorization.h:97
Aws::Redshift::Model::EndpointAuthorization::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: EndpointAuthorization.h:143
Aws::Redshift::Model::EndpointAuthorization::WithGrantee
EndpointAuthorization & WithGrantee(const char *value)
Definition: EndpointAuthorization.h:127
Aws::Redshift::Model::EndpointAuthorization::WithAllowedVPCs
EndpointAuthorization & WithAllowedVPCs(const Aws::Vector< Aws::String > &value)
Definition: EndpointAuthorization.h:322
Aws::Redshift::Model::EndpointAuthorization::WithResponseMetadata
EndpointAuthorization & WithResponseMetadata(ResponseMetadata &&value)
Definition: EndpointAuthorization.h:386
Aws::Redshift::Model::EndpointAuthorization::WithStatus
EndpointAuthorization & WithStatus(const AuthorizationStatus &value)
Definition: EndpointAuthorization.h:266
Aws::Redshift::Model::EndpointAuthorization::AddAllowedVPCs
EndpointAuthorization & AddAllowedVPCs(Aws::String &&value)
Definition: EndpointAuthorization.h:337
Aws::Redshift::Model::EndpointAuthorization::SetGrantor
void SetGrantor(const Aws::String &value)
Definition: EndpointAuthorization.h:61
Aws::Redshift::Model::EndpointAuthorization::WithClusterIdentifier
EndpointAuthorization & WithClusterIdentifier(const char *value)
Definition: EndpointAuthorization.h:168
Aws::Redshift::Model::AuthorizationStatus
AuthorizationStatus
Definition: AuthorizationStatus.h:17
Aws::Redshift::Model::EndpointAuthorization::WithAuthorizeTime
EndpointAuthorization & WithAuthorizeTime(Aws::Utils::DateTime &&value)
Definition: EndpointAuthorization.h:199
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::EndpointAuthorization::SetAllowedVPCs
void SetAllowedVPCs(const Aws::Vector< Aws::String > &value)
Definition: EndpointAuthorization.h:312
Aws::Redshift::Model::EndpointAuthorization::SetAuthorizeTime
void SetAuthorizeTime(Aws::Utils::DateTime &&value)
Definition: EndpointAuthorization.h:189
Redshift_EXPORTS.h
Aws::Redshift::Model::EndpointAuthorization::WithAllowedAllVPCs
EndpointAuthorization & WithAllowedAllVPCs(bool value)
Definition: EndpointAuthorization.h:296
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::EndpointAuthorization::AddAllowedVPCs
EndpointAuthorization & AddAllowedVPCs(const Aws::String &value)
Definition: EndpointAuthorization.h:332
Aws::Redshift::Model::EndpointAuthorization::WithClusterStatus
EndpointAuthorization & WithClusterStatus(const char *value)
Definition: EndpointAuthorization.h:240
index
int index
Definition: cJSON.h:181
ResponseMetadata.h
Aws::Redshift::Model::EndpointAuthorization::SetClusterStatus
void SetClusterStatus(Aws::String &&value)
Definition: EndpointAuthorization.h:220
Aws::Redshift::Model::EndpointAuthorization::GetGrantee
const Aws::String & GetGrantee() const
Definition: EndpointAuthorization.h:92
Aws::Redshift::Model::EndpointAuthorization::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: EndpointAuthorization.h:148
Aws::Redshift::Model::EndpointAuthorization::GetAllowedAllVPCs
bool GetAllowedAllVPCs() const
Definition: EndpointAuthorization.h:278
Aws::Redshift::Model::EndpointAuthorization::WithGrantee
EndpointAuthorization & WithGrantee(Aws::String &&value)
Definition: EndpointAuthorization.h:122
Aws::Redshift::Model::EndpointAuthorization::WithClusterStatus
EndpointAuthorization & WithClusterStatus(const Aws::String &value)
Definition: EndpointAuthorization.h:230
Aws::Redshift::Model::EndpointAuthorization::GetClusterStatus
const Aws::String & GetClusterStatus() const
Definition: EndpointAuthorization.h:205
Aws::Redshift::Model::EndpointAuthorization::AddAllowedVPCs
EndpointAuthorization & AddAllowedVPCs(const char *value)
Definition: EndpointAuthorization.h:342
Aws::Redshift::Model::EndpointAuthorization::WithClusterStatus
EndpointAuthorization & WithClusterStatus(Aws::String &&value)
Definition: EndpointAuthorization.h:235
Aws::Redshift::Model::EndpointAuthorization::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: EndpointAuthorization.h:251