AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AdminSetUserSettingsRequest.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/cognito-idp/model/MFAOptionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CognitoIdentityProvider
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_COGNITOIDENTITYPROVIDER_API AdminSetUserSettingsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "AdminSetUserSettings"; }
37
38 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
39
40 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
48 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
49 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
50 template<typename UserPoolIdT = Aws::String>
51 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
52 template<typename UserPoolIdT = Aws::String>
53 AdminSetUserSettingsRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
55
57
64 inline const Aws::String& GetUsername() const { return m_username; }
65 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
66 template<typename UsernameT = Aws::String>
67 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
68 template<typename UsernameT = Aws::String>
69 AdminSetUserSettingsRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
71
73
77 inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const { return m_mFAOptions; }
78 inline bool MFAOptionsHasBeenSet() const { return m_mFAOptionsHasBeenSet; }
79 template<typename MFAOptionsT = Aws::Vector<MFAOptionType>>
80 void SetMFAOptions(MFAOptionsT&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = std::forward<MFAOptionsT>(value); }
81 template<typename MFAOptionsT = Aws::Vector<MFAOptionType>>
82 AdminSetUserSettingsRequest& WithMFAOptions(MFAOptionsT&& value) { SetMFAOptions(std::forward<MFAOptionsT>(value)); return *this;}
83 template<typename MFAOptionsT = MFAOptionType>
84 AdminSetUserSettingsRequest& AddMFAOptions(MFAOptionsT&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.emplace_back(std::forward<MFAOptionsT>(value)); return *this; }
86 private:
87
88 Aws::String m_userPoolId;
89 bool m_userPoolIdHasBeenSet = false;
90
91 Aws::String m_username;
92 bool m_usernameHasBeenSet = false;
93
94 Aws::Vector<MFAOptionType> m_mFAOptions;
95 bool m_mFAOptionsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CognitoIdentityProvider
100} // 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