AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdminUpdateUserAttributesRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 AdminUpdateUserAttributesRequest();
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 "AdminUpdateUserAttributes"; }
38
39 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
40
41 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
49 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
50 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
51 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
52 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
53 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
54 inline AdminUpdateUserAttributesRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
55 inline AdminUpdateUserAttributesRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
56 inline AdminUpdateUserAttributesRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
58
60
67 inline const Aws::String& GetUsername() const{ return m_username; }
68 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
69 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
70 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
71 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
72 inline AdminUpdateUserAttributesRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
73 inline AdminUpdateUserAttributesRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
74 inline AdminUpdateUserAttributesRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
76
78
95 inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
96 inline bool UserAttributesHasBeenSet() const { return m_userAttributesHasBeenSet; }
97 inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
98 inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = std::move(value); }
101 inline AdminUpdateUserAttributesRequest& AddUserAttributes(const AttributeType& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
102 inline AdminUpdateUserAttributesRequest& AddUserAttributes(AttributeType&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(std::move(value)); return *this; }
104
106
129 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const{ return m_clientMetadata; }
130 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
131 inline void SetClientMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = value; }
132 inline void SetClientMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::move(value); }
135 inline AdminUpdateUserAttributesRequest& AddClientMetadata(const Aws::String& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
136 inline AdminUpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, const Aws::String& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
137 inline AdminUpdateUserAttributesRequest& AddClientMetadata(const Aws::String& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
138 inline AdminUpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), std::move(value)); return *this; }
139 inline AdminUpdateUserAttributesRequest& AddClientMetadata(const char* key, Aws::String&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, std::move(value)); return *this; }
140 inline AdminUpdateUserAttributesRequest& AddClientMetadata(Aws::String&& key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::move(key), value); return *this; }
141 inline AdminUpdateUserAttributesRequest& AddClientMetadata(const char* key, const char* value) { m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(key, value); return *this; }
143 private:
144
145 Aws::String m_userPoolId;
146 bool m_userPoolIdHasBeenSet = false;
147
148 Aws::String m_username;
149 bool m_usernameHasBeenSet = false;
150
151 Aws::Vector<AttributeType> m_userAttributes;
152 bool m_userAttributesHasBeenSet = false;
153
154 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
155 bool m_clientMetadataHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace CognitoIdentityProvider
160} // namespace Aws
AdminUpdateUserAttributesRequest & AddClientMetadata(const char *key, Aws::String &&value)
AdminUpdateUserAttributesRequest & AddClientMetadata(const Aws::String &key, const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminUpdateUserAttributesRequest & WithUserPoolId(const Aws::String &value)
AdminUpdateUserAttributesRequest & AddUserAttributes(const AttributeType &value)
AdminUpdateUserAttributesRequest & WithUsername(const Aws::String &value)
AdminUpdateUserAttributesRequest & AddUserAttributes(AttributeType &&value)
AdminUpdateUserAttributesRequest & AddClientMetadata(Aws::String &&key, Aws::String &&value)
AdminUpdateUserAttributesRequest & AddClientMetadata(const Aws::String &key, Aws::String &&value)
AdminUpdateUserAttributesRequest & AddClientMetadata(const char *key, const char *value)
AdminUpdateUserAttributesRequest & WithUserAttributes(const Aws::Vector< AttributeType > &value)
void SetClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AdminUpdateUserAttributesRequest & WithUserAttributes(Aws::Vector< AttributeType > &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AdminUpdateUserAttributesRequest & WithClientMetadata(Aws::Map< Aws::String, Aws::String > &&value)
AdminUpdateUserAttributesRequest & WithClientMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AdminUpdateUserAttributesRequest & AddClientMetadata(Aws::String &&key, const Aws::String &value)
AdminUpdateUserAttributesRequest & AddClientMetadata(Aws::String &&key, const char *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