AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
48 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
49 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
50 inline GetIdRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
51 inline GetIdRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
52 inline GetIdRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
54
56
59 inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
60 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
61 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
62 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
63 inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
64 inline GetIdRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
65 inline GetIdRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
66 inline GetIdRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
68
70
83 inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const{ return m_logins; }
84 inline bool LoginsHasBeenSet() const { return m_loginsHasBeenSet; }
85 inline void SetLogins(const Aws::Map<Aws::String, Aws::String>& value) { m_loginsHasBeenSet = true; m_logins = value; }
86 inline void SetLogins(Aws::Map<Aws::String, Aws::String>&& value) { m_loginsHasBeenSet = true; m_logins = std::move(value); }
87 inline GetIdRequest& WithLogins(const Aws::Map<Aws::String, Aws::String>& value) { SetLogins(value); return *this;}
88 inline GetIdRequest& WithLogins(Aws::Map<Aws::String, Aws::String>&& value) { SetLogins(std::move(value)); return *this;}
89 inline GetIdRequest& AddLogins(const Aws::String& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins.emplace(key, value); return *this; }
90 inline GetIdRequest& AddLogins(Aws::String&& key, const Aws::String& value) { m_loginsHasBeenSet = true; m_logins.emplace(std::move(key), value); return *this; }
91 inline GetIdRequest& AddLogins(const Aws::String& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins.emplace(key, std::move(value)); return *this; }
92 inline GetIdRequest& AddLogins(Aws::String&& key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins.emplace(std::move(key), std::move(value)); return *this; }
93 inline GetIdRequest& AddLogins(const char* key, Aws::String&& value) { m_loginsHasBeenSet = true; m_logins.emplace(key, std::move(value)); return *this; }
94 inline GetIdRequest& AddLogins(Aws::String&& key, const char* value) { m_loginsHasBeenSet = true; m_logins.emplace(std::move(key), value); return *this; }
95 inline GetIdRequest& AddLogins(const char* key, const char* value) { m_loginsHasBeenSet = true; m_logins.emplace(key, value); return *this; }
97 private:
98
99 Aws::String m_accountId;
100 bool m_accountIdHasBeenSet = false;
101
102 Aws::String m_identityPoolId;
103 bool m_identityPoolIdHasBeenSet = false;
104
106 bool m_loginsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CognitoIdentity
111} // namespace Aws
GetIdRequest & WithIdentityPoolId(const Aws::String &value)
GetIdRequest & AddLogins(Aws::String &&key, Aws::String &&value)
GetIdRequest & AddLogins(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetAccountId(Aws::String &&value)
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
void SetIdentityPoolId(const Aws::String &value)
GetIdRequest & AddLogins(const char *key, const char *value)
GetIdRequest & WithLogins(const Aws::Map< Aws::String, Aws::String > &value)
void SetLogins(Aws::Map< Aws::String, Aws::String > &&value)
GetIdRequest & AddLogins(const Aws::String &key, Aws::String &&value)
const Aws::String & GetIdentityPoolId() const
void SetAccountId(const Aws::String &value)
GetIdRequest & AddLogins(Aws::String &&key, const char *value)
void SetIdentityPoolId(const char *value)
const Aws::String & GetAccountId() const
void SetIdentityPoolId(Aws::String &&value)
GetIdRequest & WithIdentityPoolId(const char *value)
GetIdRequest & WithIdentityPoolId(Aws::String &&value)
GetIdRequest & WithAccountId(const char *value)
AWS_COGNITOIDENTITY_API GetIdRequest()
GetIdRequest & WithLogins(Aws::Map< Aws::String, Aws::String > &&value)
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetLogins() const
GetIdRequest & WithAccountId(const Aws::String &value)
GetIdRequest & AddLogins(Aws::String &&key, const Aws::String &value)
GetIdRequest & AddLogins(const char *key, Aws::String &&value)
void SetLogins(const Aws::Map< Aws::String, Aws::String > &value)
GetIdRequest & WithAccountId(Aws::String &&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