AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UnlinkIdentityRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CognitoIdentity
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_COGNITOIDENTITY_API UnlinkIdentityRequest() = 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 "UnlinkIdentity"; }
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 UnlinkIdentityRequest& WithIdentityId(IdentityIdT&& value) { SetIdentityId(std::forward<IdentityIdT>(value)); return *this;}
53
55
59 inline const Aws::Map<Aws::String, Aws::String>& GetLogins() const { return m_logins; }
60 inline bool LoginsHasBeenSet() const { return m_loginsHasBeenSet; }
61 template<typename LoginsT = Aws::Map<Aws::String, Aws::String>>
62 void SetLogins(LoginsT&& value) { m_loginsHasBeenSet = true; m_logins = std::forward<LoginsT>(value); }
63 template<typename LoginsT = Aws::Map<Aws::String, Aws::String>>
64 UnlinkIdentityRequest& WithLogins(LoginsT&& value) { SetLogins(std::forward<LoginsT>(value)); return *this;}
65 template<typename LoginsKeyT = Aws::String, typename LoginsValueT = Aws::String>
66 UnlinkIdentityRequest& AddLogins(LoginsKeyT&& key, LoginsValueT&& value) {
67 m_loginsHasBeenSet = true; m_logins.emplace(std::forward<LoginsKeyT>(key), std::forward<LoginsValueT>(value)); return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetLoginsToRemove() const { return m_loginsToRemove; }
76 inline bool LoginsToRemoveHasBeenSet() const { return m_loginsToRemoveHasBeenSet; }
77 template<typename LoginsToRemoveT = Aws::Vector<Aws::String>>
78 void SetLoginsToRemove(LoginsToRemoveT&& value) { m_loginsToRemoveHasBeenSet = true; m_loginsToRemove = std::forward<LoginsToRemoveT>(value); }
79 template<typename LoginsToRemoveT = Aws::Vector<Aws::String>>
80 UnlinkIdentityRequest& WithLoginsToRemove(LoginsToRemoveT&& value) { SetLoginsToRemove(std::forward<LoginsToRemoveT>(value)); return *this;}
81 template<typename LoginsToRemoveT = Aws::String>
82 UnlinkIdentityRequest& AddLoginsToRemove(LoginsToRemoveT&& value) { m_loginsToRemoveHasBeenSet = true; m_loginsToRemove.emplace_back(std::forward<LoginsToRemoveT>(value)); return *this; }
84 private:
85
86 Aws::String m_identityId;
87 bool m_identityIdHasBeenSet = false;
88
90 bool m_loginsHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_loginsToRemove;
93 bool m_loginsToRemoveHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CognitoIdentity
98} // 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