AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
58 inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::move(value); }
61 inline UpdateUserAttributesRequest& AddUserAttributes(const AttributeType& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
62 inline UpdateUserAttributesRequest& AddUserAttributes(AttributeType&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(std::move(value)); return *this; }
64
66
70 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
71 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
72 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
73 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
74 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
75 inline UpdateUserAttributesRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
76 inline UpdateUserAttributesRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
77 inline UpdateUserAttributesRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
79
81
104 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
105 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
106 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
107 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
110 inline UpdateUserAttributesRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
111 inline UpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
112 inline UpdateUserAttributesRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
113 inline UpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
114 inline UpdateUserAttributesRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
115 inline UpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
116 inline UpdateUserAttributesRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
118 private:
119
120 Aws::Vector<AttributeType> m_userAttributes;
121 bool m_userAttributesHasBeenSet = false;
122
123 Aws::String m_accessToken;
124 bool m_accessTokenHasBeenSet = false;
125
126 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
127 bool m_clientMetadataHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CognitoIdentityProvider
132} // namespace Aws
UpdateUserAttributesRequest & WithUserAttributes(const Aws::Vector< AttributeType > &value)
UpdateUserAttributesRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
UpdateUserAttributesRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
UpdateUserAttributesRequest & AddClientMetadata(Aws::String &&key, const char *value)
UpdateUserAttributesRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
UpdateUserAttributesRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
UpdateUserAttributesRequest & AddUserAttributes(AttributeType &&value)
UpdateUserAttributesRequest & WithAccessToken(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
UpdateUserAttributesRequest & AddClientMetadata(const char *key, Aws::String &&value)
UpdateUserAttributesRequest & AddClientMetadata(const char *key, const char *value)
UpdateUserAttributesRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
UpdateUserAttributesRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetClientMetadata() const
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
UpdateUserAttributesRequest & WithUserAttributes(Aws::Vector< AttributeType > &&value)
UpdateUserAttributesRequest & WithAccessToken(const Aws::String &value)
UpdateUserAttributesRequest & AddUserAttributes(const AttributeType &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
std::vector< T, Aws::Allocator< T > > Vector