AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetIdRequest.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 GetIdRequest() = 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 "GetId"; }
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& GetAccountId() const { return m_accountId; }
46 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
47 template<typename AccountIdT = Aws::String>
48 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
49 template<typename AccountIdT = Aws::String>
50 GetIdRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
58 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
59 template<typename IdentityPoolIdT = Aws::String>
60 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
61 template<typename IdentityPoolIdT = Aws::String>
62 GetIdRequest& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
64
66
79 inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const { return m_logins; }
80 inline bool LoginsHasBeenSet() const { return m_loginsHasBeenSet; }
81 template<typename LoginsT = Aws::Map<Aws::String, Aws::String>>
82 void SetLogins(LoginsT&& value) { m_loginsHasBeenSet = true; m_logins = std::forward<LoginsT>(value); }
83 template<typename LoginsT = Aws::Map<Aws::String, Aws::String>>
84 GetIdRequest& WithLogins(LoginsT&& value) { SetLogins(std::forward<LoginsT>(value)); return *this;}
85 template<typename LoginsKeyT = Aws::String, typename LoginsValueT = Aws::String>
86 GetIdRequest& AddLogins(LoginsKeyT&& key, LoginsValueT&& value) {
87 m_loginsHasBeenSet = true; m_logins.emplace(std::forward<LoginsKeyT>(key), std::forward<LoginsValueT>(value)); return *this;
88 }
90 private:
91
92 Aws::String m_accountId;
93 bool m_accountIdHasBeenSet = false;
94
95 Aws::String m_identityPoolId;
96 bool m_identityPoolIdHasBeenSet = false;
97
99 bool m_loginsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CognitoIdentity
104} // 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