AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
51 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
52 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
53 inline AdminSetUserSettingsRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
54 inline AdminSetUserSettingsRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
55 inline AdminSetUserSettingsRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
57
59
66 inline const Aws::String& GetUsername() const{ return m_username; }
67 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
68 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
69 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
70 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
71 inline AdminSetUserSettingsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
72 inline AdminSetUserSettingsRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
73 inline AdminSetUserSettingsRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
75
77
81 inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const{ return m_mFAOptions; }
82 inline bool MFAOptionsHasBeenSet() const { return m_mFAOptionsHasBeenSet; }
83 inline void SetMFAOptions(const Aws::Vector<MFAOptionType>& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = value; }
84 inline void SetMFAOptions(Aws::Vector<MFAOptionType>&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = std::move(value); }
86 inline AdminSetUserSettingsRequest& WithMFAOptions(Aws::Vector<MFAOptionType>&& value) { SetMFAOptions(std::move(value)); return *this;}
87 inline AdminSetUserSettingsRequest& AddMFAOptions(const MFAOptionType& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(value); return *this; }
88 inline AdminSetUserSettingsRequest& AddMFAOptions(MFAOptionType&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(std::move(value)); return *this; }
90 private:
91
92 Aws::String m_userPoolId;
93 bool m_userPoolIdHasBeenSet = false;
94
95 Aws::String m_username;
96 bool m_usernameHasBeenSet = false;
97
98 Aws::Vector<MFAOptionType> m_mFAOptions;
99 bool m_mFAOptionsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CognitoIdentityProvider
104} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AdminSetUserSettingsRequest & WithUsername(const Aws::String &value)
AdminSetUserSettingsRequest & WithUserPoolId(Aws::String &&value)
AdminSetUserSettingsRequest & WithUsername(Aws::String &&value)
AdminSetUserSettingsRequest & AddMFAOptions(MFAOptionType &&value)
AdminSetUserSettingsRequest & AddMFAOptions(const MFAOptionType &value)
AdminSetUserSettingsRequest & WithUserPoolId(const Aws::String &value)
AdminSetUserSettingsRequest & WithMFAOptions(Aws::Vector< MFAOptionType > &&value)
AdminSetUserSettingsRequest & WithMFAOptions(const Aws::Vector< MFAOptionType > &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