AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ResyncMFADeviceRequest.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 ResyncMFADeviceRequest() = 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 "ResyncMFADevice"; }
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 ResyncMFADeviceRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
54
56
63 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
64 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
65 template<typename SerialNumberT = Aws::String>
66 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::forward<SerialNumberT>(value); }
67 template<typename SerialNumberT = Aws::String>
68 ResyncMFADeviceRequest& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
70
72
76 inline const Aws::String& GetAuthenticationCode1() const { return m_authenticationCode1; }
77 inline bool AuthenticationCode1HasBeenSet() const { return m_authenticationCode1HasBeenSet; }
78 template<typename AuthenticationCode1T = Aws::String>
79 void SetAuthenticationCode1(AuthenticationCode1T&& value) { m_authenticationCode1HasBeenSet = true; m_authenticationCode1 = std::forward<AuthenticationCode1T>(value); }
80 template<typename AuthenticationCode1T = Aws::String>
81 ResyncMFADeviceRequest& WithAuthenticationCode1(AuthenticationCode1T&& value) { SetAuthenticationCode1(std::forward<AuthenticationCode1T>(value)); return *this;}
83
85
89 inline const Aws::String& GetAuthenticationCode2() const { return m_authenticationCode2; }
90 inline bool AuthenticationCode2HasBeenSet() const { return m_authenticationCode2HasBeenSet; }
91 template<typename AuthenticationCode2T = Aws::String>
92 void SetAuthenticationCode2(AuthenticationCode2T&& value) { m_authenticationCode2HasBeenSet = true; m_authenticationCode2 = std::forward<AuthenticationCode2T>(value); }
93 template<typename AuthenticationCode2T = Aws::String>
94 ResyncMFADeviceRequest& WithAuthenticationCode2(AuthenticationCode2T&& value) { SetAuthenticationCode2(std::forward<AuthenticationCode2T>(value)); return *this;}
96 private:
97
98 Aws::String m_userName;
99 bool m_userNameHasBeenSet = false;
100
101 Aws::String m_serialNumber;
102 bool m_serialNumberHasBeenSet = false;
103
104 Aws::String m_authenticationCode1;
105 bool m_authenticationCode1HasBeenSet = false;
106
107 Aws::String m_authenticationCode2;
108 bool m_authenticationCode2HasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace IAM
113} // namespace Aws
const Aws::String & GetAuthenticationCode2() const
ResyncMFADeviceRequest & WithAuthenticationCode1(AuthenticationCode1T &&value)
AWS_IAM_API Aws::String SerializePayload() const override
ResyncMFADeviceRequest & WithSerialNumber(SerialNumberT &&value)
ResyncMFADeviceRequest & WithAuthenticationCode2(AuthenticationCode2T &&value)
AWS_IAM_API ResyncMFADeviceRequest()=default
const Aws::String & GetAuthenticationCode1() const
ResyncMFADeviceRequest & WithUserName(UserNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetAuthenticationCode1(AuthenticationCode1T &&value)
void SetAuthenticationCode2(AuthenticationCode2T &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String