AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
AuthorizeEndpointAccessResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.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 {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift {
27namespace Model {
36 public:
37 AWS_REDSHIFT_API AuthorizeEndpointAccessResult() = default;
40
42
45 inline const Aws::String& GetGrantor() const { return m_grantor; }
46 template <typename GrantorT = Aws::String>
47 void SetGrantor(GrantorT&& value) {
48 m_grantorHasBeenSet = true;
49 m_grantor = std::forward<GrantorT>(value);
50 }
51 template <typename GrantorT = Aws::String>
53 SetGrantor(std::forward<GrantorT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetGrantee() const { return m_grantee; }
63 template <typename GranteeT = Aws::String>
64 void SetGrantee(GranteeT&& value) {
65 m_granteeHasBeenSet = true;
66 m_grantee = std::forward<GranteeT>(value);
67 }
68 template <typename GranteeT = Aws::String>
70 SetGrantee(std::forward<GranteeT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
80 template <typename ClusterIdentifierT = Aws::String>
81 void SetClusterIdentifier(ClusterIdentifierT&& value) {
82 m_clusterIdentifierHasBeenSet = true;
83 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
84 }
85 template <typename ClusterIdentifierT = Aws::String>
87 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetAuthorizeTime() const { return m_authorizeTime; }
97 template <typename AuthorizeTimeT = Aws::Utils::DateTime>
98 void SetAuthorizeTime(AuthorizeTimeT&& value) {
99 m_authorizeTimeHasBeenSet = true;
100 m_authorizeTime = std::forward<AuthorizeTimeT>(value);
101 }
102 template <typename AuthorizeTimeT = Aws::Utils::DateTime>
104 SetAuthorizeTime(std::forward<AuthorizeTimeT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetClusterStatus() const { return m_clusterStatus; }
114 template <typename ClusterStatusT = Aws::String>
115 void SetClusterStatus(ClusterStatusT&& value) {
116 m_clusterStatusHasBeenSet = true;
117 m_clusterStatus = std::forward<ClusterStatusT>(value);
118 }
119 template <typename ClusterStatusT = Aws::String>
121 SetClusterStatus(std::forward<ClusterStatusT>(value));
122 return *this;
123 }
125
127
130 inline AuthorizationStatus GetStatus() const { return m_status; }
131 inline void SetStatus(AuthorizationStatus value) {
132 m_statusHasBeenSet = true;
133 m_status = value;
134 }
136 SetStatus(value);
137 return *this;
138 }
140
142
146 inline bool GetAllowedAllVPCs() const { return m_allowedAllVPCs; }
147 inline void SetAllowedAllVPCs(bool value) {
148 m_allowedAllVPCsHasBeenSet = true;
149 m_allowedAllVPCs = value;
150 }
152 SetAllowedAllVPCs(value);
153 return *this;
154 }
156
158
161 inline const Aws::Vector<Aws::String>& GetAllowedVPCs() const { return m_allowedVPCs; }
162 template <typename AllowedVPCsT = Aws::Vector<Aws::String>>
163 void SetAllowedVPCs(AllowedVPCsT&& value) {
164 m_allowedVPCsHasBeenSet = true;
165 m_allowedVPCs = std::forward<AllowedVPCsT>(value);
166 }
167 template <typename AllowedVPCsT = Aws::Vector<Aws::String>>
169 SetAllowedVPCs(std::forward<AllowedVPCsT>(value));
170 return *this;
171 }
172 template <typename AllowedVPCsT = Aws::String>
174 m_allowedVPCsHasBeenSet = true;
175 m_allowedVPCs.emplace_back(std::forward<AllowedVPCsT>(value));
176 return *this;
177 }
179
181
185 inline int GetEndpointCount() const { return m_endpointCount; }
186 inline void SetEndpointCount(int value) {
187 m_endpointCountHasBeenSet = true;
188 m_endpointCount = value;
189 }
191 SetEndpointCount(value);
192 return *this;
193 }
195
197
198 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
199 template <typename ResponseMetadataT = ResponseMetadata>
200 void SetResponseMetadata(ResponseMetadataT&& value) {
201 m_responseMetadataHasBeenSet = true;
202 m_responseMetadata = std::forward<ResponseMetadataT>(value);
203 }
204 template <typename ResponseMetadataT = ResponseMetadata>
206 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
207 return *this;
208 }
210 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
211
212 private:
213 Aws::String m_grantor;
214
215 Aws::String m_grantee;
216
217 Aws::String m_clusterIdentifier;
218
219 Aws::Utils::DateTime m_authorizeTime{};
220
221 Aws::String m_clusterStatus;
222
224
225 bool m_allowedAllVPCs{false};
226
227 Aws::Vector<Aws::String> m_allowedVPCs;
228
229 int m_endpointCount{0};
230
231 ResponseMetadata m_responseMetadata;
232 Aws::Http::HttpResponseCode m_HttpResponseCode;
233 bool m_grantorHasBeenSet = false;
234 bool m_granteeHasBeenSet = false;
235 bool m_clusterIdentifierHasBeenSet = false;
236 bool m_authorizeTimeHasBeenSet = false;
237 bool m_clusterStatusHasBeenSet = false;
238 bool m_statusHasBeenSet = false;
239 bool m_allowedAllVPCsHasBeenSet = false;
240 bool m_allowedVPCsHasBeenSet = false;
241 bool m_endpointCountHasBeenSet = false;
242 bool m_responseMetadataHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace Redshift
247} // namespace Aws
AuthorizeEndpointAccessResult & WithClusterStatus(ClusterStatusT &&value)
AuthorizeEndpointAccessResult & WithAuthorizeTime(AuthorizeTimeT &&value)
AWS_REDSHIFT_API AuthorizeEndpointAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AuthorizeEndpointAccessResult & WithGrantor(GrantorT &&value)
AuthorizeEndpointAccessResult & WithGrantee(GranteeT &&value)
AuthorizeEndpointAccessResult & WithAllowedVPCs(AllowedVPCsT &&value)
AuthorizeEndpointAccessResult & WithStatus(AuthorizationStatus value)
AuthorizeEndpointAccessResult & WithClusterIdentifier(ClusterIdentifierT &&value)
AWS_REDSHIFT_API AuthorizeEndpointAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AuthorizeEndpointAccessResult & WithEndpointCount(int value)
AuthorizeEndpointAccessResult & WithAllowedAllVPCs(bool value)
AuthorizeEndpointAccessResult & WithResponseMetadata(ResponseMetadataT &&value)
AuthorizeEndpointAccessResult & AddAllowedVPCs(AllowedVPCsT &&value)
AWS_REDSHIFT_API AuthorizeEndpointAccessResult()=default
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument