AWS SDK for C++  1.9.110
AWS SDK for C++
RevokeEndpointAccessResult.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlDocument;
25 } // namespace Xml
26 } // namespace Utils
27 namespace Redshift
28 {
29 namespace 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 
141  inline RevokeEndpointAccessResult& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
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 
172  inline RevokeEndpointAccessResult& WithAuthorizeTime(const Aws::Utils::DateTime& value) { SetAuthorizeTime(value); return *this;}
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 
279  inline RevokeEndpointAccessResult& WithAllowedVPCs(const Aws::Vector<Aws::String>& value) { SetAllowedVPCs(value); return *this;}
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 
331  inline RevokeEndpointAccessResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
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
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::RevokeEndpointAccessResult::WithClusterIdentifier
RevokeEndpointAccessResult & WithClusterIdentifier(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:141
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::RevokeEndpointAccessResult::RevokeEndpointAccessResult
RevokeEndpointAccessResult()
Aws::Redshift::Model::RevokeEndpointAccessResult::GetGrantor
const Aws::String & GetGrantor() const
Definition: RevokeEndpointAccessResult.h:49
Aws::Redshift::Model::RevokeEndpointAccessResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: RevokeEndpointAccessResult.h:325
Aws::Redshift::Model::RevokeEndpointAccessResult::WithEndpointCount
RevokeEndpointAccessResult & WithEndpointCount(int value)
Definition: RevokeEndpointAccessResult.h:318
Aws::Redshift::Model::RevokeEndpointAccessResult::operator=
RevokeEndpointAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AuthorizationStatus.h
Aws::Redshift::Model::RevokeEndpointAccessResult::WithClusterStatus
RevokeEndpointAccessResult & WithClusterStatus(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:203
Aws::Redshift::Model::RevokeEndpointAccessResult::AddAllowedVPCs
RevokeEndpointAccessResult & AddAllowedVPCs(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:289
Aws::Redshift::Model::RevokeEndpointAccessResult::WithGrantee
RevokeEndpointAccessResult & WithGrantee(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:105
Aws::Redshift::Model::RevokeEndpointAccessResult::WithStatus
RevokeEndpointAccessResult & WithStatus(AuthorizationStatus &&value)
Definition: RevokeEndpointAccessResult.h:239
DateTime.h
Aws::Redshift::Model::RevokeEndpointAccessResult::SetClusterStatus
void SetClusterStatus(const char *value)
Definition: RevokeEndpointAccessResult.h:198
Aws::Redshift::Model::RevokeEndpointAccessResult::SetGrantor
void SetGrantor(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:59
Aws::Redshift::Model::RevokeEndpointAccessResult::AddAllowedVPCs
RevokeEndpointAccessResult & AddAllowedVPCs(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:294
Aws::Redshift::Model::RevokeEndpointAccessResult::SetAuthorizeTime
void SetAuthorizeTime(Aws::Utils::DateTime &&value)
Definition: RevokeEndpointAccessResult.h:167
Aws::Redshift::Model::RevokeEndpointAccessResult::WithAuthorizeTime
RevokeEndpointAccessResult & WithAuthorizeTime(const Aws::Utils::DateTime &value)
Definition: RevokeEndpointAccessResult.h:172
Aws::Redshift::Model::RevokeEndpointAccessResult::GetStatus
const AuthorizationStatus & GetStatus() const
Definition: RevokeEndpointAccessResult.h:219
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::RevokeEndpointAccessResult::SetAuthorizeTime
void SetAuthorizeTime(const Aws::Utils::DateTime &value)
Definition: RevokeEndpointAccessResult.h:162
Aws::Redshift::Model::RevokeEndpointAccessResult::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:126
Aws::Redshift::Model::RevokeEndpointAccessResult::WithResponseMetadata
RevokeEndpointAccessResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: RevokeEndpointAccessResult.h:331
Aws::Redshift::Model::RevokeEndpointAccessResult::SetGrantor
void SetGrantor(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:54
Aws::Redshift::Model::RevokeEndpointAccessResult::WithStatus
RevokeEndpointAccessResult & WithStatus(const AuthorizationStatus &value)
Definition: RevokeEndpointAccessResult.h:234
AWSVector.h
Aws::Redshift::Model::RevokeEndpointAccessResult::WithClusterIdentifier
RevokeEndpointAccessResult & WithClusterIdentifier(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:146
Aws::Redshift::Model::RevokeEndpointAccessResult::WithGrantor
RevokeEndpointAccessResult & WithGrantor(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:74
Aws::Redshift::Model::RevokeEndpointAccessResult::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: RevokeEndpointAccessResult.h:136
Aws::Redshift::Model::RevokeEndpointAccessResult::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: RevokeEndpointAccessResult.h:121
Aws::Redshift::Model::RevokeEndpointAccessResult::WithResponseMetadata
RevokeEndpointAccessResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: RevokeEndpointAccessResult.h:334
Aws::Redshift::Model::RevokeEndpointAccessResult::SetAllowedAllVPCs
void SetAllowedAllVPCs(bool value)
Definition: RevokeEndpointAccessResult.h:252
Aws::Redshift::Model::RevokeEndpointAccessResult::WithGrantee
RevokeEndpointAccessResult & WithGrantee(const char *value)
Definition: RevokeEndpointAccessResult.h:115
Aws::Redshift::Model::RevokeEndpointAccessResult::RevokeEndpointAccessResult
RevokeEndpointAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::RevokeEndpointAccessResult::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:131
Aws::Redshift::Model::RevokeEndpointAccessResult::SetEndpointCount
void SetEndpointCount(int value)
Definition: RevokeEndpointAccessResult.h:312
Aws::Redshift::Model::RevokeEndpointAccessResult::WithAllowedVPCs
RevokeEndpointAccessResult & WithAllowedVPCs(const Aws::Vector< Aws::String > &value)
Definition: RevokeEndpointAccessResult.h:279
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::RevokeEndpointAccessResult::SetAllowedVPCs
void SetAllowedVPCs(const Aws::Vector< Aws::String > &value)
Definition: RevokeEndpointAccessResult.h:269
Aws::Redshift::Model::RevokeEndpointAccessResult
Definition: RevokeEndpointAccessResult.h:39
Aws::Redshift::Model::RevokeEndpointAccessResult::SetClusterStatus
void SetClusterStatus(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:188
Aws::Redshift::Model::RevokeEndpointAccessResult::GetClusterStatus
const Aws::String & GetClusterStatus() const
Definition: RevokeEndpointAccessResult.h:183
AWSString.h
Aws::Redshift::Model::RevokeEndpointAccessResult::WithGrantee
RevokeEndpointAccessResult & WithGrantee(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:110
Aws::Redshift::Model::RevokeEndpointAccessResult::WithClusterStatus
RevokeEndpointAccessResult & WithClusterStatus(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:208
Aws::Redshift::Model::RevokeEndpointAccessResult::AddAllowedVPCs
RevokeEndpointAccessResult & AddAllowedVPCs(const char *value)
Definition: RevokeEndpointAccessResult.h:299
Aws::Redshift::Model::RevokeEndpointAccessResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: RevokeEndpointAccessResult.h:328
Aws::Redshift::Model::RevokeEndpointAccessResult::SetStatus
void SetStatus(const AuthorizationStatus &value)
Definition: RevokeEndpointAccessResult.h:224
Aws::Redshift::Model::RevokeEndpointAccessResult::GetAuthorizeTime
const Aws::Utils::DateTime & GetAuthorizeTime() const
Definition: RevokeEndpointAccessResult.h:157
Aws::Redshift::Model::RevokeEndpointAccessResult::WithAllowedAllVPCs
RevokeEndpointAccessResult & WithAllowedAllVPCs(bool value)
Definition: RevokeEndpointAccessResult.h:258
Aws::Redshift::Model::RevokeEndpointAccessResult::GetAllowedVPCs
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
Definition: RevokeEndpointAccessResult.h:264
Aws::Redshift::Model::AuthorizationStatus
AuthorizationStatus
Definition: AuthorizationStatus.h:17
Aws::Redshift::Model::RevokeEndpointAccessResult::WithClusterIdentifier
RevokeEndpointAccessResult & WithClusterIdentifier(const char *value)
Definition: RevokeEndpointAccessResult.h:151
Aws::Redshift::Model::RevokeEndpointAccessResult::WithGrantor
RevokeEndpointAccessResult & WithGrantor(const char *value)
Definition: RevokeEndpointAccessResult.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::RevokeEndpointAccessResult::WithGrantor
RevokeEndpointAccessResult & WithGrantor(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:69
Aws::Redshift::Model::RevokeEndpointAccessResult::SetGrantee
void SetGrantee(const Aws::String &value)
Definition: RevokeEndpointAccessResult.h:90
Redshift_EXPORTS.h
Aws::Redshift::Model::RevokeEndpointAccessResult::WithAllowedVPCs
RevokeEndpointAccessResult & WithAllowedVPCs(Aws::Vector< Aws::String > &&value)
Definition: RevokeEndpointAccessResult.h:284
Aws::Redshift::Model::RevokeEndpointAccessResult::GetGrantee
const Aws::String & GetGrantee() const
Definition: RevokeEndpointAccessResult.h:85
Aws::Redshift::Model::RevokeEndpointAccessResult::SetAllowedVPCs
void SetAllowedVPCs(Aws::Vector< Aws::String > &&value)
Definition: RevokeEndpointAccessResult.h:274
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::RevokeEndpointAccessResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: RevokeEndpointAccessResult.h:322
Aws::Redshift::Model::RevokeEndpointAccessResult::GetAllowedAllVPCs
bool GetAllowedAllVPCs() const
Definition: RevokeEndpointAccessResult.h:246
Aws::Redshift::Model::RevokeEndpointAccessResult::SetGrantee
void SetGrantee(const char *value)
Definition: RevokeEndpointAccessResult.h:100
ResponseMetadata.h
Aws::Redshift::Model::RevokeEndpointAccessResult::SetStatus
void SetStatus(AuthorizationStatus &&value)
Definition: RevokeEndpointAccessResult.h:229
Aws::Redshift::Model::RevokeEndpointAccessResult::WithClusterStatus
RevokeEndpointAccessResult & WithClusterStatus(const char *value)
Definition: RevokeEndpointAccessResult.h:213
Aws::Redshift::Model::RevokeEndpointAccessResult::SetGrantor
void SetGrantor(const char *value)
Definition: RevokeEndpointAccessResult.h:64
Aws::Redshift::Model::RevokeEndpointAccessResult::SetGrantee
void SetGrantee(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:95
Aws::Redshift::Model::RevokeEndpointAccessResult::WithAuthorizeTime
RevokeEndpointAccessResult & WithAuthorizeTime(Aws::Utils::DateTime &&value)
Definition: RevokeEndpointAccessResult.h:177
Aws::Redshift::Model::RevokeEndpointAccessResult::SetClusterStatus
void SetClusterStatus(Aws::String &&value)
Definition: RevokeEndpointAccessResult.h:193
Aws::Redshift::Model::RevokeEndpointAccessResult::GetEndpointCount
int GetEndpointCount() const
Definition: RevokeEndpointAccessResult.h:306