AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
AdminSetUserSettingsRequest.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/MFAOptionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CognitoIdentityProvider {
17namespace Model {
18
26 public:
27 AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserSettingsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AdminSetUserSettings"; }
34
35 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
36
37 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
44 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
45 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
46 template <typename UserPoolIdT = Aws::String>
47 void SetUserPoolId(UserPoolIdT&& value) {
48 m_userPoolIdHasBeenSet = true;
49 m_userPoolId = std::forward<UserPoolIdT>(value);
50 }
51 template <typename UserPoolIdT = Aws::String>
53 SetUserPoolId(std::forward<UserPoolIdT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetUsername() const { return m_username; }
67 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
68 template <typename UsernameT = Aws::String>
69 void SetUsername(UsernameT&& value) {
70 m_usernameHasBeenSet = true;
71 m_username = std::forward<UsernameT>(value);
72 }
73 template <typename UsernameT = Aws::String>
75 SetUsername(std::forward<UsernameT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const { return m_mFAOptions; }
86 inline bool MFAOptionsHasBeenSet() const { return m_mFAOptionsHasBeenSet; }
87 template <typename MFAOptionsT = Aws::Vector<MFAOptionType>>
88 void SetMFAOptions(MFAOptionsT&& value) {
89 m_mFAOptionsHasBeenSet = true;
90 m_mFAOptions = std::forward<MFAOptionsT>(value);
91 }
92 template <typename MFAOptionsT = Aws::Vector<MFAOptionType>>
94 SetMFAOptions(std::forward<MFAOptionsT>(value));
95 return *this;
96 }
97 template <typename MFAOptionsT = MFAOptionType>
99 m_mFAOptionsHasBeenSet = true;
100 m_mFAOptions.emplace_back(std::forward<MFAOptionsT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_userPoolId;
106
107 Aws::String m_username;
108
109 Aws::Vector<MFAOptionType> m_mFAOptions;
110 bool m_userPoolIdHasBeenSet = false;
111 bool m_usernameHasBeenSet = false;
112 bool m_mFAOptionsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace CognitoIdentityProvider
117} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminSetUserSettingsRequest & WithMFAOptions(MFAOptionsT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserSettingsRequest()=default
AdminSetUserSettingsRequest & WithUserPoolId(UserPoolIdT &&value)
AdminSetUserSettingsRequest & AddMFAOptions(MFAOptionsT &&value)
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