AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDeviceStatusRequest.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 UpdateDeviceStatusRequest();
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 "UpdateDeviceStatus"; }
36
37 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
38
39 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
48 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
49 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
50 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
51 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
52 inline UpdateDeviceStatusRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
53 inline UpdateDeviceStatusRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
54 inline UpdateDeviceStatusRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
56
58
61 inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
62 inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
63 inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
64 inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); }
65 inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
66 inline UpdateDeviceStatusRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
67 inline UpdateDeviceStatusRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;}
68 inline UpdateDeviceStatusRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
70
72
75 inline const DeviceRememberedStatusType& GetDeviceRememberedStatus() const{ return m_deviceRememberedStatus; }
76 inline bool DeviceRememberedStatusHasBeenSet() const { return m_deviceRememberedStatusHasBeenSet; }
77 inline void SetDeviceRememberedStatus(const DeviceRememberedStatusType& value) { m_deviceRememberedStatusHasBeenSet = true; m_deviceRememberedStatus = value; }
78 inline void SetDeviceRememberedStatus(DeviceRememberedStatusType&& value) { m_deviceRememberedStatusHasBeenSet = true; m_deviceRememberedStatus = std::move(value); }
82 private:
83
84 Aws::String m_accessToken;
85 bool m_accessTokenHasBeenSet = false;
86
87 Aws::String m_deviceKey;
88 bool m_deviceKeyHasBeenSet = false;
89
90 DeviceRememberedStatusType m_deviceRememberedStatus;
91 bool m_deviceRememberedStatusHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CognitoIdentityProvider
96} // namespace Aws
UpdateDeviceStatusRequest & WithDeviceKey(const Aws::String &value)
UpdateDeviceStatusRequest & WithAccessToken(Aws::String &&value)
UpdateDeviceStatusRequest & WithDeviceRememberedStatus(const DeviceRememberedStatusType &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
UpdateDeviceStatusRequest & WithAccessToken(const char *value)
UpdateDeviceStatusRequest & WithDeviceKey(Aws::String &&value)
UpdateDeviceStatusRequest & WithAccessToken(const Aws::String &value)
UpdateDeviceStatusRequest & WithDeviceRememberedStatus(DeviceRememberedStatusType &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDeviceRememberedStatus(const DeviceRememberedStatusType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String