AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EnableMFADeviceRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace IAM
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_IAM_API EnableMFADeviceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "EnableMFADevice"; }
31
32 AWS_IAM_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
47 inline const Aws::String& GetUserName() const { return m_userName; }
48 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
49 template<typename UserNameT = Aws::String>
50 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
51 template<typename UserNameT = Aws::String>
52 EnableMFADeviceRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
54
56
64 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
65 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
66 template<typename SerialNumberT = Aws::String>
67 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::forward<SerialNumberT>(value); }
68 template<typename SerialNumberT = Aws::String>
69 EnableMFADeviceRequest& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
71
73
84 inline const Aws::String& GetAuthenticationCode1() const { return m_authenticationCode1; }
85 inline bool AuthenticationCode1HasBeenSet() const { return m_authenticationCode1HasBeenSet; }
86 template<typename AuthenticationCode1T = Aws::String>
87 void SetAuthenticationCode1(AuthenticationCode1T&& value) { m_authenticationCode1HasBeenSet = true; m_authenticationCode1 = std::forward<AuthenticationCode1T>(value); }
88 template<typename AuthenticationCode1T = Aws::String>
89 EnableMFADeviceRequest& WithAuthenticationCode1(AuthenticationCode1T&& value) { SetAuthenticationCode1(std::forward<AuthenticationCode1T>(value)); return *this;}
91
93
104 inline const Aws::String& GetAuthenticationCode2() const { return m_authenticationCode2; }
105 inline bool AuthenticationCode2HasBeenSet() const { return m_authenticationCode2HasBeenSet; }
106 template<typename AuthenticationCode2T = Aws::String>
107 void SetAuthenticationCode2(AuthenticationCode2T&& value) { m_authenticationCode2HasBeenSet = true; m_authenticationCode2 = std::forward<AuthenticationCode2T>(value); }
108 template<typename AuthenticationCode2T = Aws::String>
109 EnableMFADeviceRequest& WithAuthenticationCode2(AuthenticationCode2T&& value) { SetAuthenticationCode2(std::forward<AuthenticationCode2T>(value)); return *this;}
111 private:
112
113 Aws::String m_userName;
114 bool m_userNameHasBeenSet = false;
115
116 Aws::String m_serialNumber;
117 bool m_serialNumberHasBeenSet = false;
118
119 Aws::String m_authenticationCode1;
120 bool m_authenticationCode1HasBeenSet = false;
121
122 Aws::String m_authenticationCode2;
123 bool m_authenticationCode2HasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace IAM
128} // namespace Aws
void SetAuthenticationCode1(AuthenticationCode1T &&value)
EnableMFADeviceRequest & WithSerialNumber(SerialNumberT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
const Aws::String & GetAuthenticationCode1() const
AWS_IAM_API EnableMFADeviceRequest()=default
EnableMFADeviceRequest & WithUserName(UserNameT &&value)
void SetAuthenticationCode2(AuthenticationCode2T &&value)
EnableMFADeviceRequest & WithAuthenticationCode1(AuthenticationCode1T &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::String & GetAuthenticationCode2() const
EnableMFADeviceRequest & WithAuthenticationCode2(AuthenticationCode2T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String