AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
EndpointAuthorization.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/AuthorizationStatus.h>
13#include <aws/redshift/model/ResponseMetadata.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift {
24namespace Model {
25
34 public:
35 AWS_REDSHIFT_API EndpointAuthorization() = default;
36 AWS_REDSHIFT_API EndpointAuthorization(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_REDSHIFT_API EndpointAuthorization& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetGrantor() const { return m_grantor; }
47 inline bool GrantorHasBeenSet() const { return m_grantorHasBeenSet; }
48 template <typename GrantorT = Aws::String>
49 void SetGrantor(GrantorT&& value) {
50 m_grantorHasBeenSet = true;
51 m_grantor = std::forward<GrantorT>(value);
52 }
53 template <typename GrantorT = Aws::String>
55 SetGrantor(std::forward<GrantorT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetGrantee() const { return m_grantee; }
65 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
66 template <typename GranteeT = Aws::String>
67 void SetGrantee(GranteeT&& value) {
68 m_granteeHasBeenSet = true;
69 m_grantee = std::forward<GranteeT>(value);
70 }
71 template <typename GranteeT = Aws::String>
73 SetGrantee(std::forward<GranteeT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
83 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
84 template <typename ClusterIdentifierT = Aws::String>
85 void SetClusterIdentifier(ClusterIdentifierT&& value) {
86 m_clusterIdentifierHasBeenSet = true;
87 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
88 }
89 template <typename ClusterIdentifierT = Aws::String>
90 EndpointAuthorization& WithClusterIdentifier(ClusterIdentifierT&& value) {
91 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetAuthorizeTime() const { return m_authorizeTime; }
101 inline bool AuthorizeTimeHasBeenSet() const { return m_authorizeTimeHasBeenSet; }
102 template <typename AuthorizeTimeT = Aws::Utils::DateTime>
103 void SetAuthorizeTime(AuthorizeTimeT&& value) {
104 m_authorizeTimeHasBeenSet = true;
105 m_authorizeTime = std::forward<AuthorizeTimeT>(value);
106 }
107 template <typename AuthorizeTimeT = Aws::Utils::DateTime>
108 EndpointAuthorization& WithAuthorizeTime(AuthorizeTimeT&& value) {
109 SetAuthorizeTime(std::forward<AuthorizeTimeT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetClusterStatus() const { return m_clusterStatus; }
119 inline bool ClusterStatusHasBeenSet() const { return m_clusterStatusHasBeenSet; }
120 template <typename ClusterStatusT = Aws::String>
121 void SetClusterStatus(ClusterStatusT&& value) {
122 m_clusterStatusHasBeenSet = true;
123 m_clusterStatus = std::forward<ClusterStatusT>(value);
124 }
125 template <typename ClusterStatusT = Aws::String>
126 EndpointAuthorization& WithClusterStatus(ClusterStatusT&& value) {
127 SetClusterStatus(std::forward<ClusterStatusT>(value));
128 return *this;
129 }
131
133
136 inline AuthorizationStatus GetStatus() const { return m_status; }
137 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
138 inline void SetStatus(AuthorizationStatus value) {
139 m_statusHasBeenSet = true;
140 m_status = value;
141 }
143 SetStatus(value);
144 return *this;
145 }
147
149
153 inline bool GetAllowedAllVPCs() const { return m_allowedAllVPCs; }
154 inline bool AllowedAllVPCsHasBeenSet() const { return m_allowedAllVPCsHasBeenSet; }
155 inline void SetAllowedAllVPCs(bool value) {
156 m_allowedAllVPCsHasBeenSet = true;
157 m_allowedAllVPCs = value;
158 }
160 SetAllowedAllVPCs(value);
161 return *this;
162 }
164
166
169 inline const Aws::Vector<Aws::String>& GetAllowedVPCs() const { return m_allowedVPCs; }
170 inline bool AllowedVPCsHasBeenSet() const { return m_allowedVPCsHasBeenSet; }
171 template <typename AllowedVPCsT = Aws::Vector<Aws::String>>
172 void SetAllowedVPCs(AllowedVPCsT&& value) {
173 m_allowedVPCsHasBeenSet = true;
174 m_allowedVPCs = std::forward<AllowedVPCsT>(value);
175 }
176 template <typename AllowedVPCsT = Aws::Vector<Aws::String>>
177 EndpointAuthorization& WithAllowedVPCs(AllowedVPCsT&& value) {
178 SetAllowedVPCs(std::forward<AllowedVPCsT>(value));
179 return *this;
180 }
181 template <typename AllowedVPCsT = Aws::String>
182 EndpointAuthorization& AddAllowedVPCs(AllowedVPCsT&& value) {
183 m_allowedVPCsHasBeenSet = true;
184 m_allowedVPCs.emplace_back(std::forward<AllowedVPCsT>(value));
185 return *this;
186 }
188
190
194 inline int GetEndpointCount() const { return m_endpointCount; }
195 inline bool EndpointCountHasBeenSet() const { return m_endpointCountHasBeenSet; }
196 inline void SetEndpointCount(int value) {
197 m_endpointCountHasBeenSet = true;
198 m_endpointCount = value;
199 }
201 SetEndpointCount(value);
202 return *this;
203 }
205
207
208 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
209 template <typename ResponseMetadataT = ResponseMetadata>
210 void SetResponseMetadata(ResponseMetadataT&& value) {
211 m_responseMetadataHasBeenSet = true;
212 m_responseMetadata = std::forward<ResponseMetadataT>(value);
213 }
214 template <typename ResponseMetadataT = ResponseMetadata>
215 EndpointAuthorization& WithResponseMetadata(ResponseMetadataT&& value) {
216 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_grantor;
222
223 Aws::String m_grantee;
224
225 Aws::String m_clusterIdentifier;
226
227 Aws::Utils::DateTime m_authorizeTime{};
228
229 Aws::String m_clusterStatus;
230
232
233 bool m_allowedAllVPCs{false};
234
235 Aws::Vector<Aws::String> m_allowedVPCs;
236
237 int m_endpointCount{0};
238
239 ResponseMetadata m_responseMetadata;
240 bool m_grantorHasBeenSet = false;
241 bool m_granteeHasBeenSet = false;
242 bool m_clusterIdentifierHasBeenSet = false;
243 bool m_authorizeTimeHasBeenSet = false;
244 bool m_clusterStatusHasBeenSet = false;
245 bool m_statusHasBeenSet = false;
246 bool m_allowedAllVPCsHasBeenSet = false;
247 bool m_allowedVPCsHasBeenSet = false;
248 bool m_endpointCountHasBeenSet = false;
249 bool m_responseMetadataHasBeenSet = true;
250};
251
252} // namespace Model
253} // namespace Redshift
254} // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
EndpointAuthorization & WithAllowedAllVPCs(bool value)
const Aws::Utils::DateTime & GetAuthorizeTime() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EndpointAuthorization & WithStatus(AuthorizationStatus value)
AWS_REDSHIFT_API EndpointAuthorization()=default
EndpointAuthorization & WithGrantee(GranteeT &&value)
EndpointAuthorization & AddAllowedVPCs(AllowedVPCsT &&value)
EndpointAuthorization & WithResponseMetadata(ResponseMetadataT &&value)
EndpointAuthorization & WithAuthorizeTime(AuthorizeTimeT &&value)
EndpointAuthorization & WithClusterIdentifier(ClusterIdentifierT &&value)
EndpointAuthorization & WithGrantor(GrantorT &&value)
AWS_REDSHIFT_API EndpointAuthorization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API EndpointAuthorization(const Aws::Utils::Xml::XmlNode &xmlNode)
EndpointAuthorization & WithEndpointCount(int value)
void SetClusterIdentifier(ClusterIdentifierT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
EndpointAuthorization & WithClusterStatus(ClusterStatusT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EndpointAuthorization & WithAllowedVPCs(AllowedVPCsT &&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