AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Command.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/snow-device-management/model/Reboot.h>
9#include <aws/snow-device-management/model/Unlock.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SnowDeviceManagement {
21namespace Model {
22
28class Command {
29 public:
30 AWS_SNOWDEVICEMANAGEMENT_API Command() = default;
31 AWS_SNOWDEVICEMANAGEMENT_API Command(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SNOWDEVICEMANAGEMENT_API Command& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Reboot& GetReboot() const { return m_reboot; }
40 inline bool RebootHasBeenSet() const { return m_rebootHasBeenSet; }
41 template <typename RebootT = Reboot>
42 void SetReboot(RebootT&& value) {
43 m_rebootHasBeenSet = true;
44 m_reboot = std::forward<RebootT>(value);
45 }
46 template <typename RebootT = Reboot>
47 Command& WithReboot(RebootT&& value) {
48 SetReboot(std::forward<RebootT>(value));
49 return *this;
50 }
52
54
57 inline const Unlock& GetUnlock() const { return m_unlock; }
58 inline bool UnlockHasBeenSet() const { return m_unlockHasBeenSet; }
59 template <typename UnlockT = Unlock>
60 void SetUnlock(UnlockT&& value) {
61 m_unlockHasBeenSet = true;
62 m_unlock = std::forward<UnlockT>(value);
63 }
64 template <typename UnlockT = Unlock>
65 Command& WithUnlock(UnlockT&& value) {
66 SetUnlock(std::forward<UnlockT>(value));
67 return *this;
68 }
70 private:
71 Reboot m_reboot;
72
73 Unlock m_unlock;
74 bool m_rebootHasBeenSet = false;
75 bool m_unlockHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SnowDeviceManagement
80} // namespace Aws
Command & WithReboot(RebootT &&value)
Definition Command.h:47
AWS_SNOWDEVICEMANAGEMENT_API Command(Aws::Utils::Json::JsonView jsonValue)
const Reboot & GetReboot() const
Definition Command.h:39
const Unlock & GetUnlock() const
Definition Command.h:57
AWS_SNOWDEVICEMANAGEMENT_API Command()=default
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
Command & WithUnlock(UnlockT &&value)
Definition Command.h:65
AWS_SNOWDEVICEMANAGEMENT_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue