AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthorizeEndpointAccessResult.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/redshift/model/AuthorizationStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/ResponseMetadata.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Xml
23{
24 class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace Redshift
28{
29namespace Model
30{
39 {
40 public:
41 AWS_REDSHIFT_API AuthorizeEndpointAccessResult() = default;
44
45
47
50 inline const Aws::String& GetGrantor() const { return m_grantor; }
51 template<typename GrantorT = Aws::String>
52 void SetGrantor(GrantorT&& value) { m_grantorHasBeenSet = true; m_grantor = std::forward<GrantorT>(value); }
53 template<typename GrantorT = Aws::String>
54 AuthorizeEndpointAccessResult& WithGrantor(GrantorT&& value) { SetGrantor(std::forward<GrantorT>(value)); return *this;}
56
58
61 inline const Aws::String& GetGrantee() const { return m_grantee; }
62 template<typename GranteeT = Aws::String>
63 void SetGrantee(GranteeT&& value) { m_granteeHasBeenSet = true; m_grantee = std::forward<GranteeT>(value); }
64 template<typename GranteeT = Aws::String>
65 AuthorizeEndpointAccessResult& WithGrantee(GranteeT&& value) { SetGrantee(std::forward<GranteeT>(value)); return *this;}
67
69
72 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
73 template<typename ClusterIdentifierT = Aws::String>
74 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
75 template<typename ClusterIdentifierT = Aws::String>
76 AuthorizeEndpointAccessResult& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetAuthorizeTime() const { return m_authorizeTime; }
84 template<typename AuthorizeTimeT = Aws::Utils::DateTime>
85 void SetAuthorizeTime(AuthorizeTimeT&& value) { m_authorizeTimeHasBeenSet = true; m_authorizeTime = std::forward<AuthorizeTimeT>(value); }
86 template<typename AuthorizeTimeT = Aws::Utils::DateTime>
87 AuthorizeEndpointAccessResult& WithAuthorizeTime(AuthorizeTimeT&& value) { SetAuthorizeTime(std::forward<AuthorizeTimeT>(value)); return *this;}
89
91
94 inline const Aws::String& GetClusterStatus() const { return m_clusterStatus; }
95 template<typename ClusterStatusT = Aws::String>
96 void SetClusterStatus(ClusterStatusT&& value) { m_clusterStatusHasBeenSet = true; m_clusterStatus = std::forward<ClusterStatusT>(value); }
97 template<typename ClusterStatusT = Aws::String>
98 AuthorizeEndpointAccessResult& WithClusterStatus(ClusterStatusT&& value) { SetClusterStatus(std::forward<ClusterStatusT>(value)); return *this;}
100
102
105 inline AuthorizationStatus GetStatus() const { return m_status; }
106 inline void SetStatus(AuthorizationStatus value) { m_statusHasBeenSet = true; m_status = value; }
109
111
115 inline bool GetAllowedAllVPCs() const { return m_allowedAllVPCs; }
116 inline void SetAllowedAllVPCs(bool value) { m_allowedAllVPCsHasBeenSet = true; m_allowedAllVPCs = value; }
117 inline AuthorizeEndpointAccessResult& WithAllowedAllVPCs(bool value) { SetAllowedAllVPCs(value); return *this;}
119
121
124 inline const Aws::Vector<Aws::String>& GetAllowedVPCs() const { return m_allowedVPCs; }
125 template<typename AllowedVPCsT = Aws::Vector<Aws::String>>
126 void SetAllowedVPCs(AllowedVPCsT&& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs = std::forward<AllowedVPCsT>(value); }
127 template<typename AllowedVPCsT = Aws::Vector<Aws::String>>
128 AuthorizeEndpointAccessResult& WithAllowedVPCs(AllowedVPCsT&& value) { SetAllowedVPCs(std::forward<AllowedVPCsT>(value)); return *this;}
129 template<typename AllowedVPCsT = Aws::String>
130 AuthorizeEndpointAccessResult& AddAllowedVPCs(AllowedVPCsT&& value) { m_allowedVPCsHasBeenSet = true; m_allowedVPCs.emplace_back(std::forward<AllowedVPCsT>(value)); return *this; }
132
134
138 inline int GetEndpointCount() const { return m_endpointCount; }
139 inline void SetEndpointCount(int value) { m_endpointCountHasBeenSet = true; m_endpointCount = value; }
140 inline AuthorizeEndpointAccessResult& WithEndpointCount(int value) { SetEndpointCount(value); return *this;}
142
144
145 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
146 template<typename ResponseMetadataT = ResponseMetadata>
147 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
148 template<typename ResponseMetadataT = ResponseMetadata>
149 AuthorizeEndpointAccessResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
151 private:
152
153 Aws::String m_grantor;
154 bool m_grantorHasBeenSet = false;
155
156 Aws::String m_grantee;
157 bool m_granteeHasBeenSet = false;
158
159 Aws::String m_clusterIdentifier;
160 bool m_clusterIdentifierHasBeenSet = false;
161
162 Aws::Utils::DateTime m_authorizeTime{};
163 bool m_authorizeTimeHasBeenSet = false;
164
165 Aws::String m_clusterStatus;
166 bool m_clusterStatusHasBeenSet = false;
167
169 bool m_statusHasBeenSet = false;
170
171 bool m_allowedAllVPCs{false};
172 bool m_allowedAllVPCsHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_allowedVPCs;
175 bool m_allowedVPCsHasBeenSet = false;
176
177 int m_endpointCount{0};
178 bool m_endpointCountHasBeenSet = false;
179
180 ResponseMetadata m_responseMetadata;
181 bool m_responseMetadataHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Redshift
186} // 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