AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DeleteUserAttributesRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CognitoIdentityProvider {
16namespace Model {
17
25 public:
26 AWS_COGNITOIDENTITYPROVIDER_API DeleteUserAttributesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DeleteUserAttributes"; }
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
44 inline const Aws::Vector<Aws::String>& GetUserAttributeNames() const { return m_userAttributeNames; }
45 inline bool UserAttributeNamesHasBeenSet() const { return m_userAttributeNamesHasBeenSet; }
46 template <typename UserAttributeNamesT = Aws::Vector<Aws::String>>
47 void SetUserAttributeNames(UserAttributeNamesT&& value) {
48 m_userAttributeNamesHasBeenSet = true;
49 m_userAttributeNames = std::forward<UserAttributeNamesT>(value);
50 }
51 template <typename UserAttributeNamesT = Aws::Vector<Aws::String>>
53 SetUserAttributeNames(std::forward<UserAttributeNamesT>(value));
54 return *this;
55 }
56 template <typename UserAttributeNamesT = Aws::String>
57 DeleteUserAttributesRequest& AddUserAttributeNames(UserAttributeNamesT&& value) {
58 m_userAttributeNamesHasBeenSet = true;
59 m_userAttributeNames.emplace_back(std::forward<UserAttributeNamesT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
71 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
72 template <typename AccessTokenT = Aws::String>
73 void SetAccessToken(AccessTokenT&& value) {
74 m_accessTokenHasBeenSet = true;
75 m_accessToken = std::forward<AccessTokenT>(value);
76 }
77 template <typename AccessTokenT = Aws::String>
79 SetAccessToken(std::forward<AccessTokenT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<Aws::String> m_userAttributeNames;
85
86 Aws::String m_accessToken;
87 bool m_userAttributeNamesHasBeenSet = false;
88 bool m_accessTokenHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace CognitoIdentityProvider
93} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
DeleteUserAttributesRequest & WithUserAttributeNames(UserAttributeNamesT &&value)
DeleteUserAttributesRequest & WithAccessToken(AccessTokenT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteUserAttributesRequest & AddUserAttributeNames(UserAttributeNamesT &&value)
AWS_COGNITOIDENTITYPROVIDER_API DeleteUserAttributesRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector