AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AdminUpdateDeviceStatusRequest.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/DeviceRememberedStatusType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CognitoIdentityProvider
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_COGNITOIDENTITYPROVIDER_API AdminUpdateDeviceStatusRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AdminUpdateDeviceStatus"; }
36
37 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
38
39 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
47 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
48 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
49 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
50 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
51 inline AdminUpdateDeviceStatusRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
52 inline AdminUpdateDeviceStatusRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
53 inline AdminUpdateDeviceStatusRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
55
57
64 inline const Aws::String& GetUsername() const{ return m_username; }
65 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
66 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
67 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
68 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
69 inline AdminUpdateDeviceStatusRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
70 inline AdminUpdateDeviceStatusRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
71 inline AdminUpdateDeviceStatusRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
73
75
78 inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
79 inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
80 inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
81 inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); }
82 inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
83 inline AdminUpdateDeviceStatusRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
84 inline AdminUpdateDeviceStatusRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;}
85 inline AdminUpdateDeviceStatusRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
87
89
92 inline const DeviceRememberedStatusType& GetDeviceRememberedStatus() const{ return m_deviceRememberedStatus; }
93 inline bool DeviceRememberedStatusHasBeenSet() const { return m_deviceRememberedStatusHasBeenSet; }
94 inline void SetDeviceRememberedStatus(const DeviceRememberedStatusType& value) { m_deviceRememberedStatusHasBeenSet = true; m_deviceRememberedStatus = value; }
95 inline void SetDeviceRememberedStatus(DeviceRememberedStatusType&& value) { m_deviceRememberedStatusHasBeenSet = true; m_deviceRememberedStatus = std::move(value); }
99 private:
100
101 Aws::String m_userPoolId;
102 bool m_userPoolIdHasBeenSet = false;
103
104 Aws::String m_username;
105 bool m_usernameHasBeenSet = false;
106
107 Aws::String m_deviceKey;
108 bool m_deviceKeyHasBeenSet = false;
109
110 DeviceRememberedStatusType m_deviceRememberedStatus;
111 bool m_deviceRememberedStatusHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace CognitoIdentityProvider
116} // namespace Aws
AdminUpdateDeviceStatusRequest & WithDeviceRememberedStatus(DeviceRememberedStatusType &&value)
AdminUpdateDeviceStatusRequest & WithUserPoolId(Aws::String &&value)
AdminUpdateDeviceStatusRequest & WithDeviceRememberedStatus(const DeviceRememberedStatusType &value)
AdminUpdateDeviceStatusRequest & WithUsername(const Aws::String &value)
AdminUpdateDeviceStatusRequest & WithUserPoolId(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AdminUpdateDeviceStatusRequest & WithDeviceKey(const Aws::String &value)
AdminUpdateDeviceStatusRequest & WithDeviceKey(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String