AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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