AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
EndpointAuthorization.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace Redshift
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_REDSHIFT_API EndpointAuthorization() = default;
41 AWS_REDSHIFT_API EndpointAuthorization(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_REDSHIFT_API EndpointAuthorization& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetGrantor() const { return m_grantor; }
53 inline bool GrantorHasBeenSet() const { return m_grantorHasBeenSet; }
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>
57 EndpointAuthorization& WithGrantor(GrantorT&& value) { SetGrantor(std::forward<GrantorT>(value)); return *this;}
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) { m_granteeHasBeenSet = true; m_grantee = std::forward<GranteeT>(value); }
68 template<typename GranteeT = Aws::String>
69 EndpointAuthorization& WithGrantee(GranteeT&& value) { SetGrantee(std::forward<GranteeT>(value)); return *this;}
71
73
76 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
77 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
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>
81 EndpointAuthorization& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetAuthorizeTime() const { return m_authorizeTime; }
89 inline bool AuthorizeTimeHasBeenSet() const { return m_authorizeTimeHasBeenSet; }
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>
93 EndpointAuthorization& WithAuthorizeTime(AuthorizeTimeT&& value) { SetAuthorizeTime(std::forward<AuthorizeTimeT>(value)); return *this;}
95
97
100 inline const Aws::String& GetClusterStatus() const { return m_clusterStatus; }
101 inline bool ClusterStatusHasBeenSet() const { return m_clusterStatusHasBeenSet; }
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>
105 EndpointAuthorization& WithClusterStatus(ClusterStatusT&& value) { SetClusterStatus(std::forward<ClusterStatusT>(value)); return *this;}
107
109
112 inline AuthorizationStatus GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
114 inline void SetStatus(AuthorizationStatus value) { m_statusHasBeenSet = true; m_status = value; }
115 inline EndpointAuthorization& WithStatus(AuthorizationStatus value) { SetStatus(value); return *this;}
117
119
123 inline bool GetAllowedAllVPCs() const { return m_allowedAllVPCs; }
124 inline bool AllowedAllVPCsHasBeenSet() const { return m_allowedAllVPCsHasBeenSet; }
125 inline void SetAllowedAllVPCs(bool value) { m_allowedAllVPCsHasBeenSet = true; m_allowedAllVPCs = value; }
126 inline EndpointAuthorization& WithAllowedAllVPCs(bool value) { SetAllowedAllVPCs(value); return *this;}
128
130
133 inline const Aws::Vector<Aws::String>& GetAllowedVPCs() const { return m_allowedVPCs; }
134 inline bool AllowedVPCsHasBeenSet() const { return m_allowedVPCsHasBeenSet; }
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>>
138 EndpointAuthorization& WithAllowedVPCs(AllowedVPCsT&& value) { SetAllowedVPCs(std::forward<AllowedVPCsT>(value)); return *this;}
139 template<typename AllowedVPCsT = Aws::String>
140 EndpointAuthorization& AddAllowedVPCs(AllowedVPCsT&& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs.emplace_back(std::forward<AllowedVPCsT>(value)); return *this; }
142
144
148 inline int GetEndpointCount() const { return m_endpointCount; }
149 inline bool EndpointCountHasBeenSet() const { return m_endpointCountHasBeenSet; }
150 inline void SetEndpointCount(int value) { m_endpointCountHasBeenSet = true; m_endpointCount = value; }
151 inline EndpointAuthorization& WithEndpointCount(int value) { SetEndpointCount(value); return *this;}
153
155
156 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
157 template<typename ResponseMetadataT = ResponseMetadata>
158 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
159 template<typename ResponseMetadataT = ResponseMetadata>
160 EndpointAuthorization& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
162 private:
163
164 Aws::String m_grantor;
165 bool m_grantorHasBeenSet = false;
166
167 Aws::String m_grantee;
168 bool m_granteeHasBeenSet = false;
169
170 Aws::String m_clusterIdentifier;
171 bool m_clusterIdentifierHasBeenSet = false;
172
173 Aws::Utils::DateTime m_authorizeTime{};
174 bool m_authorizeTimeHasBeenSet = false;
175
176 Aws::String m_clusterStatus;
177 bool m_clusterStatusHasBeenSet = false;
178
180 bool m_statusHasBeenSet = false;
181
182 bool m_allowedAllVPCs{false};
183 bool m_allowedAllVPCsHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_allowedVPCs;
186 bool m_allowedVPCsHasBeenSet = false;
187
188 int m_endpointCount{0};
189 bool m_endpointCountHasBeenSet = false;
190
191 ResponseMetadata m_responseMetadata;
192 bool m_responseMetadataHasBeenSet = true;
193 };
194
195} // namespace Model
196} // namespace Redshift
197} // 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