AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GetOpenIdTokenRequest.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentityRequest.h>
8#include <aws/cognito-identity/CognitoIdentity_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CognitoIdentity {
16namespace Model {
17
24 public:
25 AWS_COGNITOIDENTITY_API GetOpenIdTokenRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetOpenIdToken"; }
32
33 AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override;
34
35 AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetIdentityId() const { return m_identityId; }
42 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
43 template <typename IdentityIdT = Aws::String>
44 void SetIdentityId(IdentityIdT&& value) {
45 m_identityIdHasBeenSet = true;
46 m_identityId = std::forward<IdentityIdT>(value);
47 }
48 template <typename IdentityIdT = Aws::String>
49 GetOpenIdTokenRequest& WithIdentityId(IdentityIdT&& value) {
50 SetIdentityId(std::forward<IdentityIdT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const { return m_logins; }
64 inline bool LoginsHasBeenSet() const { return m_loginsHasBeenSet; }
65 template <typename LoginsT = Aws::Map<Aws::String, Aws::String>>
66 void SetLogins(LoginsT&& value) {
67 m_loginsHasBeenSet = true;
68 m_logins = std::forward<LoginsT>(value);
69 }
70 template <typename LoginsT = Aws::Map<Aws::String, Aws::String>>
72 SetLogins(std::forward<LoginsT>(value));
73 return *this;
74 }
75 template <typename LoginsKeyT = Aws::String, typename LoginsValueT = Aws::String>
76 GetOpenIdTokenRequest& AddLogins(LoginsKeyT&& key, LoginsValueT&& value) {
77 m_loginsHasBeenSet = true;
78 m_logins.emplace(std::forward<LoginsKeyT>(key), std::forward<LoginsValueT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_identityId;
84 bool m_identityIdHasBeenSet = false;
85
87 bool m_loginsHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace CognitoIdentity
92} // namespace Aws
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetOpenIdTokenRequest & AddLogins(LoginsKeyT &&key, LoginsValueT &&value)
GetOpenIdTokenRequest & WithLogins(LoginsT &&value)
AWS_COGNITOIDENTITY_API GetOpenIdTokenRequest()=default
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetLogins() const
GetOpenIdTokenRequest & WithIdentityId(IdentityIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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