AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AdminUpdateDeviceStatusRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/DeviceRememberedStatusType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CognitoIdentityProvider {
16namespace Model {
17
25 public:
26 AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateDeviceStatusRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AdminUpdateDeviceStatus"; }
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
43 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
44 template <typename UserPoolIdT = Aws::String>
45 void SetUserPoolId(UserPoolIdT&& value) {
46 m_userPoolIdHasBeenSet = true;
47 m_userPoolId = std::forward<UserPoolIdT>(value);
48 }
49 template <typename UserPoolIdT = Aws::String>
51 SetUserPoolId(std::forward<UserPoolIdT>(value));
52 return *this;
53 }
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) {
68 m_usernameHasBeenSet = true;
69 m_username = std::forward<UsernameT>(value);
70 }
71 template <typename UsernameT = Aws::String>
73 SetUsername(std::forward<UsernameT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetDeviceKey() const { return m_deviceKey; }
84 inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
85 template <typename DeviceKeyT = Aws::String>
86 void SetDeviceKey(DeviceKeyT&& value) {
87 m_deviceKeyHasBeenSet = true;
88 m_deviceKey = std::forward<DeviceKeyT>(value);
89 }
90 template <typename DeviceKeyT = Aws::String>
92 SetDeviceKey(std::forward<DeviceKeyT>(value));
93 return *this;
94 }
96
98
102 inline DeviceRememberedStatusType GetDeviceRememberedStatus() const { return m_deviceRememberedStatus; }
103 inline bool DeviceRememberedStatusHasBeenSet() const { return m_deviceRememberedStatusHasBeenSet; }
105 m_deviceRememberedStatusHasBeenSet = true;
106 m_deviceRememberedStatus = value;
107 }
110 return *this;
111 }
113 private:
114 Aws::String m_userPoolId;
115
116 Aws::String m_username;
117
118 Aws::String m_deviceKey;
119
121 bool m_userPoolIdHasBeenSet = false;
122 bool m_usernameHasBeenSet = false;
123 bool m_deviceKeyHasBeenSet = false;
124 bool m_deviceRememberedStatusHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace CognitoIdentityProvider
129} // namespace Aws
AdminUpdateDeviceStatusRequest & WithDeviceRememberedStatus(DeviceRememberedStatusType value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateDeviceStatusRequest()=default
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AdminUpdateDeviceStatusRequest & WithUserPoolId(UserPoolIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String