AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateUserAttributesRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/cognito-idp/model/AttributeType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CognitoIdentityProvider
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_COGNITOIDENTITYPROVIDER_API UpdateUserAttributesRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateUserAttributes"; }
38
39 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
40
41 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
55 inline const Aws::Vector<AttributeType>& GetUserAttributes() const { return m_userAttributes; }
56 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
57 template<typename UserAttributesT = Aws::Vector<AttributeType>>
58 void SetUserAttributes(UserAttributesT&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::forward<UserAttributesT>(value); }
59 template<typename UserAttributesT = Aws::Vector<AttributeType>>
60 UpdateUserAttributesRequest& WithUserAttributes(UserAttributesT&& value) { SetUserAttributes(std::forward<UserAttributesT>(value)); return *this;}
61 template<typename UserAttributesT = AttributeType>
62 UpdateUserAttributesRequest& AddUserAttributes(UserAttributesT&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.emplace_back(std::forward<UserAttributesT>(value)); return *this; }
64
66
71 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
72 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
73 template<typename AccessTokenT = Aws::String>
74 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
75 template<typename AccessTokenT = Aws::String>
76 UpdateUserAttributesRequest& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
78
80
104 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const { return m_clientMetadata; }
105 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
106 template<typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
107 void SetClientMetadata(ClientMetadataT&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::forward<ClientMetadataT>(value); }
108 template<typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
109 UpdateUserAttributesRequest& WithClientMetadata(ClientMetadataT&& value) { SetClientMetadata(std::forward<ClientMetadataT>(value)); return *this;}
110 template<typename ClientMetadataKeyT = Aws::String, typename ClientMetadataValueT = Aws::String>
111 UpdateUserAttributesRequest& AddClientMetadata(ClientMetadataKeyT&& key, ClientMetadataValueT&& value) {
112 m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::forward<ClientMetadataKeyT>(key), std::forward<ClientMetadataValueT>(value)); return *this;
113 }
115 private:
116
117 Aws::Vector<AttributeType> m_userAttributes;
118 bool m_userAttributesHasBeenSet = false;
119
120 Aws::String m_accessToken;
121 bool m_accessTokenHasBeenSet = false;
122
123 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
124 bool m_clientMetadataHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CognitoIdentityProvider
129} // 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