7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/redshift/model/AuthorizationStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/redshift/model/ResponseMetadata.h>
54 template<
typename GrantorT = Aws::String>
55 void SetGrantor(GrantorT&& value) { m_grantorHasBeenSet =
true; m_grantor = std::forward<GrantorT>(value); }
56 template<
typename GrantorT = Aws::String>
66 template<
typename GranteeT = Aws::String>
67 void SetGrantee(GranteeT&& value) { m_granteeHasBeenSet =
true; m_grantee = std::forward<GranteeT>(value); }
68 template<
typename GranteeT = Aws::String>
78 template<
typename ClusterIdentifierT = Aws::String>
79 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet =
true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
80 template<
typename ClusterIdentifierT = Aws::String>
90 template<
typename AuthorizeTimeT = Aws::Utils::DateTime>
91 void SetAuthorizeTime(AuthorizeTimeT&& value) { m_authorizeTimeHasBeenSet =
true; m_authorizeTime = std::forward<AuthorizeTimeT>(value); }
92 template<
typename AuthorizeTimeT = Aws::Utils::DateTime>
102 template<
typename ClusterStatusT = Aws::String>
103 void SetClusterStatus(ClusterStatusT&& value) { m_clusterStatusHasBeenSet =
true; m_clusterStatus = std::forward<ClusterStatusT>(value); }
104 template<
typename ClusterStatusT = Aws::String>
125 inline void SetAllowedAllVPCs(
bool value) { m_allowedAllVPCsHasBeenSet =
true; m_allowedAllVPCs = value; }
135 template<
typename AllowedVPCsT = Aws::Vector<Aws::String>>
136 void SetAllowedVPCs(AllowedVPCsT&& value) { m_allowedVPCsHasBeenSet =
true; m_allowedVPCs = std::forward<AllowedVPCsT>(value); }
137 template<
typename AllowedVPCsT = Aws::Vector<Aws::String>>
139 template<
typename AllowedVPCsT = Aws::String>
150 inline void SetEndpointCount(
int value) { m_endpointCountHasBeenSet =
true; m_endpointCount = value; }
157 template<
typename ResponseMetadataT = ResponseMetadata>
158 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet =
true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
159 template<
typename ResponseMetadataT = ResponseMetadata>
165 bool m_grantorHasBeenSet =
false;
168 bool m_granteeHasBeenSet =
false;
171 bool m_clusterIdentifierHasBeenSet =
false;
174 bool m_authorizeTimeHasBeenSet =
false;
177 bool m_clusterStatusHasBeenSet =
false;
180 bool m_statusHasBeenSet =
false;
182 bool m_allowedAllVPCs{
false};
183 bool m_allowedAllVPCsHasBeenSet =
false;
186 bool m_allowedVPCsHasBeenSet =
false;
188 int m_endpointCount{0};
189 bool m_endpointCountHasBeenSet =
false;
191 ResponseMetadata m_responseMetadata;
192 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