AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetCredentialsForIdentityRequest.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
27 {
28 public:
29 AWS_COGNITOIDENTITY_API GetCredentialsForIdentityRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetCredentialsForIdentity"; }
36
37 AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override;
38
39 AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetIdentityId() const { return m_identityId; }
47 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
48 template<typename IdentityIdT = Aws::String>
49 void SetIdentityId(IdentityIdT&& value) { m_identityIdHasBeenSet = true; m_identityId = std::forward<IdentityIdT>(value); }
50 template<typename IdentityIdT = Aws::String>
51 GetCredentialsForIdentityRequest& WithIdentityId(IdentityIdT&& value) { SetIdentityId(std::forward<IdentityIdT>(value)); return *this;}
53
55
66 inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const { return m_logins; }
67 inline bool LoginsHasBeenSet() const { return m_loginsHasBeenSet; }
68 template<typename LoginsT = Aws::Map<Aws::String, Aws::String>>
69 void SetLogins(LoginsT&& value) { m_loginsHasBeenSet = true; m_logins = std::forward<LoginsT>(value); }
70 template<typename LoginsT = Aws::Map<Aws::String, Aws::String>>
71 GetCredentialsForIdentityRequest& WithLogins(LoginsT&& value) { SetLogins(std::forward<LoginsT>(value)); return *this;}
72 template<typename LoginsKeyT = Aws::String, typename LoginsValueT = Aws::String>
73 GetCredentialsForIdentityRequest& AddLogins(LoginsKeyT&& key, LoginsValueT&& value) {
74 m_loginsHasBeenSet = true; m_logins.emplace(std::forward<LoginsKeyT>(key), std::forward<LoginsValueT>(value)); return *this;
75 }
77
79
85 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
86 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
87 template<typename CustomRoleArnT = Aws::String>
88 void SetCustomRoleArn(CustomRoleArnT&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::forward<CustomRoleArnT>(value); }
89 template<typename CustomRoleArnT = Aws::String>
90 GetCredentialsForIdentityRequest& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
92 private:
93
94 Aws::String m_identityId;
95 bool m_identityIdHasBeenSet = false;
96
98 bool m_loginsHasBeenSet = false;
99
100 Aws::String m_customRoleArn;
101 bool m_customRoleArnHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CognitoIdentity
106} // namespace Aws
AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetCredentialsForIdentityRequest & AddLogins(LoginsKeyT &&key, LoginsValueT &&value)
AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override
GetCredentialsForIdentityRequest & WithIdentityId(IdentityIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetLogins() const
AWS_COGNITOIDENTITY_API GetCredentialsForIdentityRequest()=default
GetCredentialsForIdentityRequest & WithCustomRoleArn(CustomRoleArnT &&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