AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuthorizeEndpointAccessResult.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/redshift/model/AuthorizationStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/ResponseMetadata.h>
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
47
50 inline const Aws::String& GetGrantor() const{ return m_grantor; }
51 inline void SetGrantor(const Aws::String& value) { m_grantor = value; }
52 inline void SetGrantor(Aws::String&& value) { m_grantor = std::move(value); }
53 inline void SetGrantor(const char* value) { m_grantor.assign(value); }
54 inline AuthorizeEndpointAccessResult& WithGrantor(const Aws::String& value) { SetGrantor(value); return *this;}
55 inline AuthorizeEndpointAccessResult& WithGrantor(Aws::String&& value) { SetGrantor(std::move(value)); return *this;}
56 inline AuthorizeEndpointAccessResult& WithGrantor(const char* value) { SetGrantor(value); return *this;}
58
60
63 inline const Aws::String& GetGrantee() const{ return m_grantee; }
64 inline void SetGrantee(const Aws::String& value) { m_grantee = value; }
65 inline void SetGrantee(Aws::String&& value) { m_grantee = std::move(value); }
66 inline void SetGrantee(const char* value) { m_grantee.assign(value); }
67 inline AuthorizeEndpointAccessResult& WithGrantee(const Aws::String& value) { SetGrantee(value); return *this;}
68 inline AuthorizeEndpointAccessResult& WithGrantee(Aws::String&& value) { SetGrantee(std::move(value)); return *this;}
69 inline AuthorizeEndpointAccessResult& WithGrantee(const char* value) { SetGrantee(value); return *this;}
71
73
76 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
77 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifier = value; }
78 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifier = std::move(value); }
79 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifier.assign(value); }
81 inline AuthorizeEndpointAccessResult& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
82 inline AuthorizeEndpointAccessResult& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetAuthorizeTime() const{ return m_authorizeTime; }
90 inline void SetAuthorizeTime(const Aws::Utils::DateTime& value) { m_authorizeTime = value; }
91 inline void SetAuthorizeTime(Aws::Utils::DateTime&& value) { m_authorizeTime = std::move(value); }
93 inline AuthorizeEndpointAccessResult& WithAuthorizeTime(Aws::Utils::DateTime&& value) { SetAuthorizeTime(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetClusterStatus() const{ return m_clusterStatus; }
101 inline void SetClusterStatus(const Aws::String& value) { m_clusterStatus = value; }
102 inline void SetClusterStatus(Aws::String&& value) { m_clusterStatus = std::move(value); }
103 inline void SetClusterStatus(const char* value) { m_clusterStatus.assign(value); }
105 inline AuthorizeEndpointAccessResult& WithClusterStatus(Aws::String&& value) { SetClusterStatus(std::move(value)); return *this;}
106 inline AuthorizeEndpointAccessResult& WithClusterStatus(const char* value) { SetClusterStatus(value); return *this;}
108
110
113 inline const AuthorizationStatus& GetStatus() const{ return m_status; }
114 inline void SetStatus(const AuthorizationStatus& value) { m_status = value; }
115 inline void SetStatus(AuthorizationStatus&& value) { m_status = std::move(value); }
116 inline AuthorizeEndpointAccessResult& WithStatus(const AuthorizationStatus& value) { SetStatus(value); return *this;}
117 inline AuthorizeEndpointAccessResult& WithStatus(AuthorizationStatus&& value) { SetStatus(std::move(value)); return *this;}
119
121
125 inline bool GetAllowedAllVPCs() const{ return m_allowedAllVPCs; }
126 inline void SetAllowedAllVPCs(bool value) { m_allowedAllVPCs = value; }
127 inline AuthorizeEndpointAccessResult& WithAllowedAllVPCs(bool value) { SetAllowedAllVPCs(value); return *this;}
129
131
134 inline const Aws::Vector<Aws::String>& GetAllowedVPCs() const{ return m_allowedVPCs; }
135 inline void SetAllowedVPCs(const Aws::Vector<Aws::String>& value) { m_allowedVPCs = value; }
136 inline void SetAllowedVPCs(Aws::Vector<Aws::String>&& value) { m_allowedVPCs = std::move(value); }
139 inline AuthorizeEndpointAccessResult& AddAllowedVPCs(const Aws::String& value) { m_allowedVPCs.push_back(value); return *this; }
140 inline AuthorizeEndpointAccessResult& AddAllowedVPCs(Aws::String&& value) { m_allowedVPCs.push_back(std::move(value)); return *this; }
141 inline AuthorizeEndpointAccessResult& AddAllowedVPCs(const char* value) { m_allowedVPCs.push_back(value); return *this; }
143
145
149 inline int GetEndpointCount() const{ return m_endpointCount; }
150 inline void SetEndpointCount(int value) { m_endpointCount = value; }
151 inline AuthorizeEndpointAccessResult& WithEndpointCount(int value) { SetEndpointCount(value); return *this;}
153
155
156 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
157 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
158 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
162 private:
163
164 Aws::String m_grantor;
165
166 Aws::String m_grantee;
167
168 Aws::String m_clusterIdentifier;
169
170 Aws::Utils::DateTime m_authorizeTime;
171
172 Aws::String m_clusterStatus;
173
174 AuthorizationStatus m_status;
175
176 bool m_allowedAllVPCs;
177
178 Aws::Vector<Aws::String> m_allowedVPCs;
179
180 int m_endpointCount;
181
182 ResponseMetadata m_responseMetadata;
183 };
184
185} // namespace Model
186} // namespace Redshift
187} // namespace Aws
AuthorizeEndpointAccessResult & WithClusterIdentifier(Aws::String &&value)
AWS_REDSHIFT_API AuthorizeEndpointAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AuthorizeEndpointAccessResult & WithGrantor(Aws::String &&value)
AuthorizeEndpointAccessResult & WithGrantee(Aws::String &&value)
AuthorizeEndpointAccessResult & WithStatus(AuthorizationStatus &&value)
AuthorizeEndpointAccessResult & WithAuthorizeTime(const Aws::Utils::DateTime &value)
AuthorizeEndpointAccessResult & WithAllowedVPCs(Aws::Vector< Aws::String > &&value)
AuthorizeEndpointAccessResult & WithResponseMetadata(ResponseMetadata &&value)
void SetAllowedVPCs(const Aws::Vector< Aws::String > &value)
AuthorizeEndpointAccessResult & AddAllowedVPCs(const Aws::String &value)
AuthorizeEndpointAccessResult & WithClusterIdentifier(const Aws::String &value)
AuthorizeEndpointAccessResult & WithClusterStatus(Aws::String &&value)
AWS_REDSHIFT_API AuthorizeEndpointAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AuthorizeEndpointAccessResult & WithClusterStatus(const char *value)
AuthorizeEndpointAccessResult & WithGrantee(const char *value)
AuthorizeEndpointAccessResult & WithEndpointCount(int value)
AuthorizeEndpointAccessResult & WithStatus(const AuthorizationStatus &value)
AuthorizeEndpointAccessResult & WithAllowedAllVPCs(bool value)
AuthorizeEndpointAccessResult & WithAuthorizeTime(Aws::Utils::DateTime &&value)
AuthorizeEndpointAccessResult & WithClusterIdentifier(const char *value)
AuthorizeEndpointAccessResult & WithGrantee(const Aws::String &value)
AuthorizeEndpointAccessResult & WithResponseMetadata(const ResponseMetadata &value)
AuthorizeEndpointAccessResult & WithAllowedVPCs(const Aws::Vector< Aws::String > &value)
AuthorizeEndpointAccessResult & WithGrantor(const char *value)
AuthorizeEndpointAccessResult & WithGrantor(const Aws::String &value)
AuthorizeEndpointAccessResult & WithClusterStatus(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
AuthorizeEndpointAccessResult & AddAllowedVPCs(const char *value)
AuthorizeEndpointAccessResult & AddAllowedVPCs(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument