AWS SDK for C++

AWS SDK for C++ Version 1.11.831

Loading...
Searching...
No Matches
PutResourcePermissionStatementRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/signin/SigninRequest.h>
10#include <aws/signin/Signin_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Signin {
16namespace Model {
17
25 public:
26 AWS_SIGNIN_API PutResourcePermissionStatementRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutResourcePermissionStatement"; }
33
34 AWS_SIGNIN_API Aws::String SerializePayload() const override;
35
39 AWS_SIGNIN_API EndpointParameters GetEndpointContextParams() const override;
40
42
45 inline const Aws::String& GetSourceVpc() const { return m_sourceVpc; }
46 inline bool SourceVpcHasBeenSet() const { return m_sourceVpcHasBeenSet; }
47 template <typename SourceVpcT = Aws::String>
48 void SetSourceVpc(SourceVpcT&& value) {
49 m_sourceVpcHasBeenSet = true;
50 m_sourceVpc = std::forward<SourceVpcT>(value);
51 }
52 template <typename SourceVpcT = Aws::String>
54 SetSourceVpc(std::forward<SourceVpcT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetSigninSourceVpce() const { return m_signinSourceVpce; }
64 inline bool SigninSourceVpceHasBeenSet() const { return m_signinSourceVpceHasBeenSet; }
65 template <typename SigninSourceVpceT = Aws::String>
66 void SetSigninSourceVpce(SigninSourceVpceT&& value) {
67 m_signinSourceVpceHasBeenSet = true;
68 m_signinSourceVpce = std::forward<SigninSourceVpceT>(value);
69 }
70 template <typename SigninSourceVpceT = Aws::String>
72 SetSigninSourceVpce(std::forward<SigninSourceVpceT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetConsoleSourceVpce() const { return m_consoleSourceVpce; }
82 inline bool ConsoleSourceVpceHasBeenSet() const { return m_consoleSourceVpceHasBeenSet; }
83 template <typename ConsoleSourceVpceT = Aws::String>
84 void SetConsoleSourceVpce(ConsoleSourceVpceT&& value) {
85 m_consoleSourceVpceHasBeenSet = true;
86 m_consoleSourceVpce = std::forward<ConsoleSourceVpceT>(value);
87 }
88 template <typename ConsoleSourceVpceT = Aws::String>
90 SetConsoleSourceVpce(std::forward<ConsoleSourceVpceT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetVpcSourceIp() const { return m_vpcSourceIp; }
100 inline bool VpcSourceIpHasBeenSet() const { return m_vpcSourceIpHasBeenSet; }
101 template <typename VpcSourceIpT = Aws::String>
102 void SetVpcSourceIp(VpcSourceIpT&& value) {
103 m_vpcSourceIpHasBeenSet = true;
104 m_vpcSourceIp = std::forward<VpcSourceIpT>(value);
105 }
106 template <typename VpcSourceIpT = Aws::String>
108 SetVpcSourceIp(std::forward<VpcSourceIpT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetSourceIp() const { return m_sourceIp; }
118 inline bool SourceIpHasBeenSet() const { return m_sourceIpHasBeenSet; }
119 template <typename SourceIpT = Aws::String>
120 void SetSourceIp(SourceIpT&& value) {
121 m_sourceIpHasBeenSet = true;
122 m_sourceIp = std::forward<SourceIpT>(value);
123 }
124 template <typename SourceIpT = Aws::String>
126 SetSourceIp(std::forward<SourceIpT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetRequestedRegion() const { return m_requestedRegion; }
137 inline bool RequestedRegionHasBeenSet() const { return m_requestedRegionHasBeenSet; }
138 template <typename RequestedRegionT = Aws::String>
139 void SetRequestedRegion(RequestedRegionT&& value) {
140 m_requestedRegionHasBeenSet = true;
141 m_requestedRegion = std::forward<RequestedRegionT>(value);
142 }
143 template <typename RequestedRegionT = Aws::String>
145 SetRequestedRegion(std::forward<RequestedRegionT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetExcludedPrincipal() const { return m_excludedPrincipal; }
155 inline bool ExcludedPrincipalHasBeenSet() const { return m_excludedPrincipalHasBeenSet; }
156 template <typename ExcludedPrincipalT = Aws::String>
157 void SetExcludedPrincipal(ExcludedPrincipalT&& value) {
158 m_excludedPrincipalHasBeenSet = true;
159 m_excludedPrincipal = std::forward<ExcludedPrincipalT>(value);
160 }
161 template <typename ExcludedPrincipalT = Aws::String>
163 SetExcludedPrincipal(std::forward<ExcludedPrincipalT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetClientToken() const { return m_clientToken; }
173 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
174 template <typename ClientTokenT = Aws::String>
175 void SetClientToken(ClientTokenT&& value) {
176 m_clientTokenHasBeenSet = true;
177 m_clientToken = std::forward<ClientTokenT>(value);
178 }
179 template <typename ClientTokenT = Aws::String>
181 SetClientToken(std::forward<ClientTokenT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_sourceVpc;
187
188 Aws::String m_signinSourceVpce;
189
190 Aws::String m_consoleSourceVpce;
191
192 Aws::String m_vpcSourceIp;
193
194 Aws::String m_sourceIp;
195
196 Aws::String m_requestedRegion;
197
198 Aws::String m_excludedPrincipal;
199
201 bool m_sourceVpcHasBeenSet = false;
202 bool m_signinSourceVpceHasBeenSet = false;
203 bool m_consoleSourceVpceHasBeenSet = false;
204 bool m_vpcSourceIpHasBeenSet = false;
205 bool m_sourceIpHasBeenSet = false;
206 bool m_requestedRegionHasBeenSet = false;
207 bool m_excludedPrincipalHasBeenSet = false;
208 bool m_clientTokenHasBeenSet = true;
209};
210
211} // namespace Model
212} // namespace Signin
213} // namespace Aws
PutResourcePermissionStatementRequest & WithSourceVpc(SourceVpcT &&value)
AWS_SIGNIN_API Aws::String SerializePayload() const override
PutResourcePermissionStatementRequest & WithSigninSourceVpce(SigninSourceVpceT &&value)
AWS_SIGNIN_API EndpointParameters GetEndpointContextParams() const override
PutResourcePermissionStatementRequest & WithClientToken(ClientTokenT &&value)
PutResourcePermissionStatementRequest & WithRequestedRegion(RequestedRegionT &&value)
PutResourcePermissionStatementRequest & WithVpcSourceIp(VpcSourceIpT &&value)
PutResourcePermissionStatementRequest & WithExcludedPrincipal(ExcludedPrincipalT &&value)
PutResourcePermissionStatementRequest & WithSourceIp(SourceIpT &&value)
PutResourcePermissionStatementRequest & WithConsoleSourceVpce(ConsoleSourceVpceT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String