AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetUserPoolMfaConfigRequest.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/cognito-idp/model/SmsMfaConfigType.h>
11#include <aws/cognito-idp/model/SoftwareTokenMfaConfigType.h>
12#include <aws/cognito-idp/model/EmailMfaConfigType.h>
13#include <aws/cognito-idp/model/UserPoolMfaType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CognitoIdentityProvider
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_COGNITOIDENTITYPROVIDER_API SetUserPoolMfaConfigRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SetUserPoolMfaConfig"; }
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
37
38 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
46 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
47 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
48 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
49 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
50 inline SetUserPoolMfaConfigRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
51 inline SetUserPoolMfaConfigRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
52 inline SetUserPoolMfaConfigRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
54
56
60 inline const SmsMfaConfigType& GetSmsMfaConfiguration() const{ return m_smsMfaConfiguration; }
61 inline bool SmsMfaConfigurationHasBeenSet() const { return m_smsMfaConfigurationHasBeenSet; }
62 inline void SetSmsMfaConfiguration(const SmsMfaConfigType& value) { m_smsMfaConfigurationHasBeenSet = true; m_smsMfaConfiguration = value; }
63 inline void SetSmsMfaConfiguration(SmsMfaConfigType&& value) { m_smsMfaConfigurationHasBeenSet = true; m_smsMfaConfiguration = std::move(value); }
67
69
73 inline const SoftwareTokenMfaConfigType& GetSoftwareTokenMfaConfiguration() const{ return m_softwareTokenMfaConfiguration; }
74 inline bool SoftwareTokenMfaConfigurationHasBeenSet() const { return m_softwareTokenMfaConfigurationHasBeenSet; }
75 inline void SetSoftwareTokenMfaConfiguration(const SoftwareTokenMfaConfigType& value) { m_softwareTokenMfaConfigurationHasBeenSet = true; m_softwareTokenMfaConfiguration = value; }
76 inline void SetSoftwareTokenMfaConfiguration(SoftwareTokenMfaConfigType&& value) { m_softwareTokenMfaConfigurationHasBeenSet = true; m_softwareTokenMfaConfiguration = std::move(value); }
80
82
88 inline const EmailMfaConfigType& GetEmailMfaConfiguration() const{ return m_emailMfaConfiguration; }
89 inline bool EmailMfaConfigurationHasBeenSet() const { return m_emailMfaConfigurationHasBeenSet; }
90 inline void SetEmailMfaConfiguration(const EmailMfaConfigType& value) { m_emailMfaConfigurationHasBeenSet = true; m_emailMfaConfiguration = value; }
91 inline void SetEmailMfaConfiguration(EmailMfaConfigType&& value) { m_emailMfaConfigurationHasBeenSet = true; m_emailMfaConfiguration = std::move(value); }
95
97
107 inline const UserPoolMfaType& GetMfaConfiguration() const{ return m_mfaConfiguration; }
108 inline bool MfaConfigurationHasBeenSet() const { return m_mfaConfigurationHasBeenSet; }
109 inline void SetMfaConfiguration(const UserPoolMfaType& value) { m_mfaConfigurationHasBeenSet = true; m_mfaConfiguration = value; }
110 inline void SetMfaConfiguration(UserPoolMfaType&& value) { m_mfaConfigurationHasBeenSet = true; m_mfaConfiguration = std::move(value); }
112 inline SetUserPoolMfaConfigRequest& WithMfaConfiguration(UserPoolMfaType&& value) { SetMfaConfiguration(std::move(value)); return *this;}
114 private:
115
116 Aws::String m_userPoolId;
117 bool m_userPoolIdHasBeenSet = false;
118
119 SmsMfaConfigType m_smsMfaConfiguration;
120 bool m_smsMfaConfigurationHasBeenSet = false;
121
122 SoftwareTokenMfaConfigType m_softwareTokenMfaConfiguration;
123 bool m_softwareTokenMfaConfigurationHasBeenSet = false;
124
125 EmailMfaConfigType m_emailMfaConfiguration;
126 bool m_emailMfaConfigurationHasBeenSet = false;
127
128 UserPoolMfaType m_mfaConfiguration;
129 bool m_mfaConfigurationHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CognitoIdentityProvider
134} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SetUserPoolMfaConfigRequest & WithSmsMfaConfiguration(const SmsMfaConfigType &value)
SetUserPoolMfaConfigRequest & WithSoftwareTokenMfaConfiguration(const SoftwareTokenMfaConfigType &value)
void SetSoftwareTokenMfaConfiguration(const SoftwareTokenMfaConfigType &value)
SetUserPoolMfaConfigRequest & WithEmailMfaConfiguration(EmailMfaConfigType &&value)
SetUserPoolMfaConfigRequest & WithSoftwareTokenMfaConfiguration(SoftwareTokenMfaConfigType &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
SetUserPoolMfaConfigRequest & WithSmsMfaConfiguration(SmsMfaConfigType &&value)
SetUserPoolMfaConfigRequest & WithUserPoolId(Aws::String &&value)
SetUserPoolMfaConfigRequest & WithUserPoolId(const Aws::String &value)
SetUserPoolMfaConfigRequest & WithMfaConfiguration(const UserPoolMfaType &value)
SetUserPoolMfaConfigRequest & WithMfaConfiguration(UserPoolMfaType &&value)
SetUserPoolMfaConfigRequest & WithEmailMfaConfiguration(const EmailMfaConfigType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String