AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
StartOAuthSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/credentialbroker/CredentialBrokerRequest.h>
11#include <aws/credentialbroker/CredentialBroker_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CredentialBroker {
17namespace Model {
18
22 public:
23 AWS_CREDENTIALBROKER_API StartOAuthSessionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartOAuthSession"; }
30
31 AWS_CREDENTIALBROKER_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetCredentialProviderArn() const { return m_credentialProviderArn; }
39 inline bool CredentialProviderArnHasBeenSet() const { return m_credentialProviderArnHasBeenSet; }
40 template <typename CredentialProviderArnT = Aws::String>
41 void SetCredentialProviderArn(CredentialProviderArnT&& value) {
42 m_credentialProviderArnHasBeenSet = true;
43 m_credentialProviderArn = std::forward<CredentialProviderArnT>(value);
44 }
45 template <typename CredentialProviderArnT = Aws::String>
46 StartOAuthSessionRequest& WithCredentialProviderArn(CredentialProviderArnT&& value) {
47 SetCredentialProviderArn(std::forward<CredentialProviderArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetScopes() const { return m_scopes; }
57 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
58 template <typename ScopesT = Aws::Vector<Aws::String>>
59 void SetScopes(ScopesT&& value) {
60 m_scopesHasBeenSet = true;
61 m_scopes = std::forward<ScopesT>(value);
62 }
63 template <typename ScopesT = Aws::Vector<Aws::String>>
65 SetScopes(std::forward<ScopesT>(value));
66 return *this;
67 }
68 template <typename ScopesT = Aws::String>
70 m_scopesHasBeenSet = true;
71 m_scopes.emplace_back(std::forward<ScopesT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetSessionBindingUrl() const { return m_sessionBindingUrl; }
83 inline bool SessionBindingUrlHasBeenSet() const { return m_sessionBindingUrlHasBeenSet; }
84 template <typename SessionBindingUrlT = Aws::String>
85 void SetSessionBindingUrl(SessionBindingUrlT&& value) {
86 m_sessionBindingUrlHasBeenSet = true;
87 m_sessionBindingUrl = std::forward<SessionBindingUrlT>(value);
88 }
89 template <typename SessionBindingUrlT = Aws::String>
90 StartOAuthSessionRequest& WithSessionBindingUrl(SessionBindingUrlT&& value) {
91 SetSessionBindingUrl(std::forward<SessionBindingUrlT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
102 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
103 template <typename ResourcesT = Aws::Vector<Aws::String>>
104 void SetResources(ResourcesT&& value) {
105 m_resourcesHasBeenSet = true;
106 m_resources = std::forward<ResourcesT>(value);
107 }
108 template <typename ResourcesT = Aws::Vector<Aws::String>>
110 SetResources(std::forward<ResourcesT>(value));
111 return *this;
112 }
113 template <typename ResourcesT = Aws::String>
115 m_resourcesHasBeenSet = true;
116 m_resources.emplace_back(std::forward<ResourcesT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Vector<Aws::String>& GetAudiences() const { return m_audiences; }
127 inline bool AudiencesHasBeenSet() const { return m_audiencesHasBeenSet; }
128 template <typename AudiencesT = Aws::Vector<Aws::String>>
129 void SetAudiences(AudiencesT&& value) {
130 m_audiencesHasBeenSet = true;
131 m_audiences = std::forward<AudiencesT>(value);
132 }
133 template <typename AudiencesT = Aws::Vector<Aws::String>>
135 SetAudiences(std::forward<AudiencesT>(value));
136 return *this;
137 }
138 template <typename AudiencesT = Aws::String>
140 m_audiencesHasBeenSet = true;
141 m_audiences.emplace_back(std::forward<AudiencesT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::Map<Aws::String, Aws::String>& GetCustomParameters() const { return m_customParameters; }
153 inline bool CustomParametersHasBeenSet() const { return m_customParametersHasBeenSet; }
154 template <typename CustomParametersT = Aws::Map<Aws::String, Aws::String>>
155 void SetCustomParameters(CustomParametersT&& value) {
156 m_customParametersHasBeenSet = true;
157 m_customParameters = std::forward<CustomParametersT>(value);
158 }
159 template <typename CustomParametersT = Aws::Map<Aws::String, Aws::String>>
160 StartOAuthSessionRequest& WithCustomParameters(CustomParametersT&& value) {
161 SetCustomParameters(std::forward<CustomParametersT>(value));
162 return *this;
163 }
164 template <typename CustomParametersKeyT = Aws::String, typename CustomParametersValueT = Aws::String>
165 StartOAuthSessionRequest& AddCustomParameters(CustomParametersKeyT&& key, CustomParametersValueT&& value) {
166 m_customParametersHasBeenSet = true;
167 m_customParameters.emplace(std::forward<CustomParametersKeyT>(key), std::forward<CustomParametersValueT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::String& GetCustomState() const { return m_customState; }
179 inline bool CustomStateHasBeenSet() const { return m_customStateHasBeenSet; }
180 template <typename CustomStateT = Aws::String>
181 void SetCustomState(CustomStateT&& value) {
182 m_customStateHasBeenSet = true;
183 m_customState = std::forward<CustomStateT>(value);
184 }
185 template <typename CustomStateT = Aws::String>
187 SetCustomState(std::forward<CustomStateT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_credentialProviderArn;
193
195
196 Aws::String m_sessionBindingUrl;
197
198 Aws::Vector<Aws::String> m_resources;
199
200 Aws::Vector<Aws::String> m_audiences;
201
202 Aws::Map<Aws::String, Aws::String> m_customParameters;
203
204 Aws::String m_customState;
205 bool m_credentialProviderArnHasBeenSet = false;
206 bool m_scopesHasBeenSet = false;
207 bool m_sessionBindingUrlHasBeenSet = false;
208 bool m_resourcesHasBeenSet = false;
209 bool m_audiencesHasBeenSet = false;
210 bool m_customParametersHasBeenSet = false;
211 bool m_customStateHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace CredentialBroker
216} // namespace Aws
StartOAuthSessionRequest & WithSessionBindingUrl(SessionBindingUrlT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomParameters() const
StartOAuthSessionRequest & AddCustomParameters(CustomParametersKeyT &&key, CustomParametersValueT &&value)
StartOAuthSessionRequest & AddAudiences(AudiencesT &&value)
const Aws::Vector< Aws::String > & GetScopes() const
StartOAuthSessionRequest & WithResources(ResourcesT &&value)
const Aws::Vector< Aws::String > & GetAudiences() const
StartOAuthSessionRequest & WithScopes(ScopesT &&value)
AWS_CREDENTIALBROKER_API StartOAuthSessionRequest()=default
StartOAuthSessionRequest & WithCredentialProviderArn(CredentialProviderArnT &&value)
StartOAuthSessionRequest & WithCustomParameters(CustomParametersT &&value)
StartOAuthSessionRequest & WithAudiences(AudiencesT &&value)
AWS_CREDENTIALBROKER_API Aws::String SerializePayload() const override
StartOAuthSessionRequest & AddResources(ResourcesT &&value)
StartOAuthSessionRequest & WithCustomState(CustomStateT &&value)
StartOAuthSessionRequest & AddScopes(ScopesT &&value)
const Aws::Vector< Aws::String > & GetResources() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector