AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
UnlinkIdentityRequest.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#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CognitoIdentity {
17namespace Model {
18
25 public:
26 AWS_COGNITOIDENTITY_API UnlinkIdentityRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UnlinkIdentity"; }
33
34 AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override;
35
36 AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetIdentityId() const { return m_identityId; }
43 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
44 template <typename IdentityIdT = Aws::String>
45 void SetIdentityId(IdentityIdT&& value) {
46 m_identityIdHasBeenSet = true;
47 m_identityId = std::forward<IdentityIdT>(value);
48 }
49 template <typename IdentityIdT = Aws::String>
50 UnlinkIdentityRequest& WithIdentityId(IdentityIdT&& value) {
51 SetIdentityId(std::forward<IdentityIdT>(value));
52 return *this;
53 }
55
57
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) {
65 m_loginsHasBeenSet = true;
66 m_logins = std::forward<LoginsT>(value);
67 }
68 template <typename LoginsT = Aws::Map<Aws::String, Aws::String>>
70 SetLogins(std::forward<LoginsT>(value));
71 return *this;
72 }
73 template <typename LoginsKeyT = Aws::String, typename LoginsValueT = Aws::String>
74 UnlinkIdentityRequest& AddLogins(LoginsKeyT&& key, LoginsValueT&& value) {
75 m_loginsHasBeenSet = true;
76 m_logins.emplace(std::forward<LoginsKeyT>(key), std::forward<LoginsValueT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<Aws::String>& GetLoginsToRemove() const { return m_loginsToRemove; }
86 inline bool LoginsToRemoveHasBeenSet() const { return m_loginsToRemoveHasBeenSet; }
87 template <typename LoginsToRemoveT = Aws::Vector<Aws::String>>
88 void SetLoginsToRemove(LoginsToRemoveT&& value) {
89 m_loginsToRemoveHasBeenSet = true;
90 m_loginsToRemove = std::forward<LoginsToRemoveT>(value);
91 }
92 template <typename LoginsToRemoveT = Aws::Vector<Aws::String>>
93 UnlinkIdentityRequest& WithLoginsToRemove(LoginsToRemoveT&& value) {
94 SetLoginsToRemove(std::forward<LoginsToRemoveT>(value));
95 return *this;
96 }
97 template <typename LoginsToRemoveT = Aws::String>
98 UnlinkIdentityRequest& AddLoginsToRemove(LoginsToRemoveT&& value) {
99 m_loginsToRemoveHasBeenSet = true;
100 m_loginsToRemove.emplace_back(std::forward<LoginsToRemoveT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_identityId;
106 bool m_identityIdHasBeenSet = false;
107
109 bool m_loginsHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_loginsToRemove;
112 bool m_loginsToRemoveHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace CognitoIdentity
117} // namespace Aws
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
std::vector< T, Aws::Allocator< T > > Vector