AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGrantor(const Aws::String& value) { m_grantorHasBeenSet = true; m_grantor = value; }
55 inline void SetGrantor(Aws::String&& value) { m_grantorHasBeenSet = true; m_grantor = std::move(value); }
56 inline void SetGrantor(const char* value) { m_grantorHasBeenSet = true; m_grantor.assign(value); }
57 inline EndpointAuthorization& WithGrantor(const Aws::String& value) { SetGrantor(value); return *this;}
58 inline EndpointAuthorization& WithGrantor(Aws::String&& value) { SetGrantor(std::move(value)); return *this;}
59 inline EndpointAuthorization& WithGrantor(const char* value) { SetGrantor(value); return *this;}
61
63
66 inline const Aws::String& GetGrantee() const{ return m_grantee; }
67 inline bool GranteeHasBeenSet() const { return m_granteeHasBeenSet; }
68 inline void SetGrantee(const Aws::String& value) { m_granteeHasBeenSet = true; m_grantee = value; }
69 inline void SetGrantee(Aws::String&& value) { m_granteeHasBeenSet = true; m_grantee = std::move(value); }
70 inline void SetGrantee(const char* value) { m_granteeHasBeenSet = true; m_grantee.assign(value); }
71 inline EndpointAuthorization& WithGrantee(const Aws::String& value) { SetGrantee(value); return *this;}
72 inline EndpointAuthorization& WithGrantee(Aws::String&& value) { SetGrantee(std::move(value)); return *this;}
73 inline EndpointAuthorization& WithGrantee(const char* value) { SetGrantee(value); return *this;}
75
77
80 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
81 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
82 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
83 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
84 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
85 inline EndpointAuthorization& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
86 inline EndpointAuthorization& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
87 inline EndpointAuthorization& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetAuthorizeTime() const{ return m_authorizeTime; }
95 inline bool AuthorizeTimeHasBeenSet() const { return m_authorizeTimeHasBeenSet; }
96 inline void SetAuthorizeTime(const Aws::Utils::DateTime& value) { m_authorizeTimeHasBeenSet = true; m_authorizeTime = value; }
97 inline void SetAuthorizeTime(Aws::Utils::DateTime&& value) { m_authorizeTimeHasBeenSet = true; m_authorizeTime = std::move(value); }
99 inline EndpointAuthorization& WithAuthorizeTime(Aws::Utils::DateTime&& value) { SetAuthorizeTime(std::move(value)); return *this;}
101
103
106 inline const Aws::String& GetClusterStatus() const{ return m_clusterStatus; }
107 inline bool ClusterStatusHasBeenSet() const { return m_clusterStatusHasBeenSet; }
108 inline void SetClusterStatus(const Aws::String& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = value; }
109 inline void SetClusterStatus(Aws::String&& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = std::move(value); }
110 inline void SetClusterStatus(const char* value) { m_clusterStatusHasBeenSet = true; m_clusterStatus.assign(value); }
111 inline EndpointAuthorization& WithClusterStatus(const Aws::String& value) { SetClusterStatus(value); return *this;}
112 inline EndpointAuthorization& WithClusterStatus(Aws::String&& value) { SetClusterStatus(std::move(value)); return *this;}
113 inline EndpointAuthorization& WithClusterStatus(const char* value) { SetClusterStatus(value); return *this;}
115
117
120 inline const AuthorizationStatus& GetStatus() const{ return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(const AuthorizationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
123 inline void SetStatus(AuthorizationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
124 inline EndpointAuthorization& WithStatus(const AuthorizationStatus& value) { SetStatus(value); return *this;}
125 inline EndpointAuthorization& WithStatus(AuthorizationStatus&& value) { SetStatus(std::move(value)); return *this;}
127
129
133 inline bool GetAllowedAllVPCs() const{ return m_allowedAllVPCs; }
134 inline bool AllowedAllVPCsHasBeenSet() const { return m_allowedAllVPCsHasBeenSet; }
135 inline void SetAllowedAllVPCs(bool value) { m_allowedAllVPCsHasBeenSet = true; m_allowedAllVPCs = value; }
136 inline EndpointAuthorization& WithAllowedAllVPCs(bool value) { SetAllowedAllVPCs(value); return *this;}
138
140
143 inline const Aws::Vector<Aws::String>& GetAllowedVPCs() const{ return m_allowedVPCs; }
144 inline bool AllowedVPCsHasBeenSet() const { return m_allowedVPCsHasBeenSet; }
145 inline void SetAllowedVPCs(const Aws::Vector<Aws::String>& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs = value; }
146 inline void SetAllowedVPCs(Aws::Vector<Aws::String>&& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs = std::move(value); }
148 inline EndpointAuthorization& WithAllowedVPCs(Aws::Vector<Aws::String>&& value) { SetAllowedVPCs(std::move(value)); return *this;}
149 inline EndpointAuthorization& AddAllowedVPCs(const Aws::String& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs.push_back(value); return *this; }
150 inline EndpointAuthorization& AddAllowedVPCs(Aws::String&& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs.push_back(std::move(value)); return *this; }
151 inline EndpointAuthorization& AddAllowedVPCs(const char* value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs.push_back(value); return *this; }
153
155
159 inline int GetEndpointCount() const{ return m_endpointCount; }
160 inline bool EndpointCountHasBeenSet() const { return m_endpointCountHasBeenSet; }
161 inline void SetEndpointCount(int value) { m_endpointCountHasBeenSet = true; m_endpointCount = value; }
162 inline EndpointAuthorization& WithEndpointCount(int value) { SetEndpointCount(value); return *this;}
164
166
167 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
168 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
169 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
171 inline EndpointAuthorization& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
173 private:
174
175 Aws::String m_grantor;
176 bool m_grantorHasBeenSet = false;
177
178 Aws::String m_grantee;
179 bool m_granteeHasBeenSet = false;
180
181 Aws::String m_clusterIdentifier;
182 bool m_clusterIdentifierHasBeenSet = false;
183
184 Aws::Utils::DateTime m_authorizeTime;
185 bool m_authorizeTimeHasBeenSet = false;
186
187 Aws::String m_clusterStatus;
188 bool m_clusterStatusHasBeenSet = false;
189
190 AuthorizationStatus m_status;
191 bool m_statusHasBeenSet = false;
192
193 bool m_allowedAllVPCs;
194 bool m_allowedAllVPCsHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_allowedVPCs;
197 bool m_allowedVPCsHasBeenSet = false;
198
199 int m_endpointCount;
200 bool m_endpointCountHasBeenSet = false;
201
202 ResponseMetadata m_responseMetadata;
203 };
204
205} // namespace Model
206} // namespace Redshift
207} // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< Aws::String > & GetAllowedVPCs() const
EndpointAuthorization & WithAuthorizeTime(const Aws::Utils::DateTime &value)
EndpointAuthorization & WithClusterIdentifier(Aws::String &&value)
EndpointAuthorization & WithAllowedAllVPCs(bool value)
EndpointAuthorization & WithClusterStatus(Aws::String &&value)
void SetAuthorizeTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetAuthorizeTime() const
EndpointAuthorization & WithResponseMetadata(ResponseMetadata &&value)
const AuthorizationStatus & GetStatus() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EndpointAuthorization & WithClusterIdentifier(const char *value)
void SetResponseMetadata(const ResponseMetadata &value)
void SetAuthorizeTime(Aws::Utils::DateTime &&value)
EndpointAuthorization & WithClusterStatus(const Aws::String &value)
EndpointAuthorization & WithAllowedVPCs(const Aws::Vector< Aws::String > &value)
EndpointAuthorization & WithGrantee(Aws::String &&value)
EndpointAuthorization & AddAllowedVPCs(const char *value)
EndpointAuthorization & WithGrantor(const char *value)
void SetStatus(AuthorizationStatus &&value)
EndpointAuthorization & WithStatus(AuthorizationStatus &&value)
EndpointAuthorization & WithAllowedVPCs(Aws::Vector< Aws::String > &&value)
EndpointAuthorization & WithClusterStatus(const char *value)
AWS_REDSHIFT_API EndpointAuthorization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EndpointAuthorization & WithStatus(const AuthorizationStatus &value)
EndpointAuthorization & WithClusterIdentifier(const Aws::String &value)
void SetResponseMetadata(ResponseMetadata &&value)
EndpointAuthorization & WithGrantee(const Aws::String &value)
AWS_REDSHIFT_API EndpointAuthorization(const Aws::Utils::Xml::XmlNode &xmlNode)
EndpointAuthorization & WithEndpointCount(int value)
void SetStatus(const AuthorizationStatus &value)
EndpointAuthorization & AddAllowedVPCs(Aws::String &&value)
EndpointAuthorization & AddAllowedVPCs(const Aws::String &value)
EndpointAuthorization & WithGrantee(const char *value)
EndpointAuthorization & WithGrantor(Aws::String &&value)
void SetClusterIdentifier(const Aws::String &value)
EndpointAuthorization & WithGrantor(const Aws::String &value)
EndpointAuthorization & WithAuthorizeTime(Aws::Utils::DateTime &&value)
void SetAllowedVPCs(Aws::Vector< Aws::String > &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAllowedVPCs(const Aws::Vector< Aws::String > &value)
EndpointAuthorization & WithResponseMetadata(const ResponseMetadata &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