AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
UpdateUserAttributesRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/AttributeType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CognitoIdentityProvider {
18namespace Model {
19
27 public:
28 AWS_COGNITOIDENTITYPROVIDER_API UpdateUserAttributesRequest() = 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 "UpdateUserAttributes"; }
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
37
38 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
51 inline const Aws::Vector<AttributeType>& GetUserAttributes() const { return m_userAttributes; }
52 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
53 template <typename UserAttributesT = Aws::Vector<AttributeType>>
54 void SetUserAttributes(UserAttributesT&& value) {
55 m_userAttributesHasBeenSet = true;
56 m_userAttributes = std::forward<UserAttributesT>(value);
57 }
58 template <typename UserAttributesT = Aws::Vector<AttributeType>>
60 SetUserAttributes(std::forward<UserAttributesT>(value));
61 return *this;
62 }
63 template <typename UserAttributesT = AttributeType>
65 m_userAttributesHasBeenSet = true;
66 m_userAttributes.emplace_back(std::forward<UserAttributesT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
78 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
79 template <typename AccessTokenT = Aws::String>
80 void SetAccessToken(AccessTokenT&& value) {
81 m_accessTokenHasBeenSet = true;
82 m_accessToken = std::forward<AccessTokenT>(value);
83 }
84 template <typename AccessTokenT = Aws::String>
86 SetAccessToken(std::forward<AccessTokenT>(value));
87 return *this;
88 }
90
92
116 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const { return m_clientMetadata; }
117 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
118 template <typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
119 void SetClientMetadata(ClientMetadataT&& value) {
120 m_clientMetadataHasBeenSet = true;
121 m_clientMetadata = std::forward<ClientMetadataT>(value);
122 }
123 template <typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
125 SetClientMetadata(std::forward<ClientMetadataT>(value));
126 return *this;
127 }
128 template <typename ClientMetadataKeyT = Aws::String, typename ClientMetadataValueT = Aws::String>
129 UpdateUserAttributesRequest& AddClientMetadata(ClientMetadataKeyT&& key, ClientMetadataValueT&& value) {
130 m_clientMetadataHasBeenSet = true;
131 m_clientMetadata.emplace(std::forward<ClientMetadataKeyT>(key), std::forward<ClientMetadataValueT>(value));
132 return *this;
133 }
135 private:
136 Aws::Vector<AttributeType> m_userAttributes;
137
138 Aws::String m_accessToken;
139
140 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
141 bool m_userAttributesHasBeenSet = false;
142 bool m_accessTokenHasBeenSet = false;
143 bool m_clientMetadataHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace CognitoIdentityProvider
148} // namespace Aws
UpdateUserAttributesRequest & AddUserAttributes(UserAttributesT &&value)
UpdateUserAttributesRequest & AddClientMetadata(ClientMetadataKeyT &&key, ClientMetadataValueT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateUserAttributesRequest & WithClientMetadata(ClientMetadataT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
UpdateUserAttributesRequest & WithUserAttributes(UserAttributesT &&value)
UpdateUserAttributesRequest & WithAccessToken(AccessTokenT &&value)
AWS_COGNITOIDENTITYPROVIDER_API UpdateUserAttributesRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() 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
std::vector< T, Aws::Allocator< T > > Vector