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>
48 template <
typename GrantorT = Aws::String>
50 m_grantorHasBeenSet =
true;
51 m_grantor = std::forward<GrantorT>(value);
53 template <
typename GrantorT = Aws::String>
66 template <
typename GranteeT = Aws::String>
68 m_granteeHasBeenSet =
true;
69 m_grantee = std::forward<GranteeT>(value);
71 template <
typename GranteeT = Aws::String>
84 template <
typename ClusterIdentifierT = Aws::String>
86 m_clusterIdentifierHasBeenSet =
true;
87 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
89 template <
typename ClusterIdentifierT = Aws::String>
102 template <
typename AuthorizeTimeT = Aws::Utils::DateTime>
104 m_authorizeTimeHasBeenSet =
true;
105 m_authorizeTime = std::forward<AuthorizeTimeT>(value);
107 template <
typename AuthorizeTimeT = Aws::Utils::DateTime>
120 template <
typename ClusterStatusT = Aws::String>
122 m_clusterStatusHasBeenSet =
true;
123 m_clusterStatus = std::forward<ClusterStatusT>(value);
125 template <
typename ClusterStatusT = Aws::String>
139 m_statusHasBeenSet =
true;
156 m_allowedAllVPCsHasBeenSet =
true;
157 m_allowedAllVPCs = value;
171 template <
typename AllowedVPCsT = Aws::Vector<Aws::String>>
173 m_allowedVPCsHasBeenSet =
true;
174 m_allowedVPCs = std::forward<AllowedVPCsT>(value);
176 template <
typename AllowedVPCsT = Aws::Vector<Aws::String>>
181 template <
typename AllowedVPCsT = Aws::String>
183 m_allowedVPCsHasBeenSet =
true;
184 m_allowedVPCs.emplace_back(std::forward<AllowedVPCsT>(value));
197 m_endpointCountHasBeenSet =
true;
198 m_endpointCount = value;
209 template <
typename ResponseMetadataT = ResponseMetadata>
211 m_responseMetadataHasBeenSet =
true;
212 m_responseMetadata = std::forward<ResponseMetadataT>(value);
214 template <
typename ResponseMetadataT = ResponseMetadata>
233 bool m_allowedAllVPCs{
false};
237 int m_endpointCount{0};
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;
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
EndpointAuthorization & WithAllowedAllVPCs(bool value)
bool AuthorizeTimeHasBeenSet() const
bool EndpointCountHasBeenSet() const
void SetAllowedVPCs(AllowedVPCsT &&value)
const Aws::Utils::DateTime & GetAuthorizeTime() const
bool AllowedVPCsHasBeenSet() const
void SetClusterStatus(ClusterStatusT &&value)
const Aws::String & GetGrantor() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetGrantee() const
AuthorizationStatus GetStatus() const
bool GetAllowedAllVPCs() const
int GetEndpointCount() const
bool GranteeHasBeenSet() const
EndpointAuthorization & WithStatus(AuthorizationStatus value)
void SetAuthorizeTime(AuthorizeTimeT &&value)
AWS_REDSHIFT_API EndpointAuthorization()=default
EndpointAuthorization & WithGrantee(GranteeT &&value)
EndpointAuthorization & AddAllowedVPCs(AllowedVPCsT &&value)
EndpointAuthorization & WithResponseMetadata(ResponseMetadataT &&value)
void SetGrantee(GranteeT &&value)
EndpointAuthorization & WithAuthorizeTime(AuthorizeTimeT &&value)
bool GrantorHasBeenSet() const
bool ClusterStatusHasBeenSet() const
void SetGrantor(GrantorT &&value)
EndpointAuthorization & WithClusterIdentifier(ClusterIdentifierT &&value)
EndpointAuthorization & WithGrantor(GrantorT &&value)
bool StatusHasBeenSet() const
AWS_REDSHIFT_API EndpointAuthorization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEndpointCount(int value)
AWS_REDSHIFT_API EndpointAuthorization(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetClusterIdentifier() const
EndpointAuthorization & WithEndpointCount(int value)
void SetClusterIdentifier(ClusterIdentifierT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
void SetStatus(AuthorizationStatus value)
EndpointAuthorization & WithClusterStatus(ClusterStatusT &&value)
bool AllowedAllVPCsHasBeenSet() const
bool ClusterIdentifierHasBeenSet() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EndpointAuthorization & WithAllowedVPCs(AllowedVPCsT &&value)
void SetAllowedAllVPCs(bool value)
const Aws::String & GetClusterStatus() const
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