AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetIdRequest.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 GetIdRequest() = 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 "GetId"; }
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& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 GetIdRequest& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
60 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
61 template <typename IdentityPoolIdT = Aws::String>
62 void SetIdentityPoolId(IdentityPoolIdT&& value) {
63 m_identityPoolIdHasBeenSet = true;
64 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
65 }
66 template <typename IdentityPoolIdT = Aws::String>
67 GetIdRequest& WithIdentityPoolId(IdentityPoolIdT&& value) {
68 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
69 return *this;
70 }
72
74
87 inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const { return m_logins; }
88 inline bool LoginsHasBeenSet() const { return m_loginsHasBeenSet; }
89 template <typename LoginsT = Aws::Map<Aws::String, Aws::String>>
90 void SetLogins(LoginsT&& value) {
91 m_loginsHasBeenSet = true;
92 m_logins = std::forward<LoginsT>(value);
93 }
94 template <typename LoginsT = Aws::Map<Aws::String, Aws::String>>
95 GetIdRequest& WithLogins(LoginsT&& value) {
96 SetLogins(std::forward<LoginsT>(value));
97 return *this;
98 }
99 template <typename LoginsKeyT = Aws::String, typename LoginsValueT = Aws::String>
100 GetIdRequest& AddLogins(LoginsKeyT&& key, LoginsValueT&& value) {
101 m_loginsHasBeenSet = true;
102 m_logins.emplace(std::forward<LoginsKeyT>(key), std::forward<LoginsValueT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_accountId;
108
109 Aws::String m_identityPoolId;
110
112 bool m_accountIdHasBeenSet = false;
113 bool m_identityPoolIdHasBeenSet = false;
114 bool m_loginsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CognitoIdentity
119} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetIdRequest & AddLogins(LoginsKeyT &&key, LoginsValueT &&value)
AWS_COGNITOIDENTITY_API GetIdRequest()=default
void SetAccountId(AccountIdT &&value)
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
void SetIdentityPoolId(IdentityPoolIdT &&value)
GetIdRequest & WithIdentityPoolId(IdentityPoolIdT &&value)
GetIdRequest & WithLogins(LoginsT &&value)
GetIdRequest & WithAccountId(AccountIdT &&value)
const Aws::String & GetIdentityPoolId() const
const Aws::String & GetAccountId() const
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetLogins() const
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