AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SnowDeviceManagement
23{
24namespace Model
25{
26
32 class Command
33 {
34 public:
35 AWS_SNOWDEVICEMANAGEMENT_API Command() = default;
36 AWS_SNOWDEVICEMANAGEMENT_API Command(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SNOWDEVICEMANAGEMENT_API Command& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Reboot& GetReboot() const { return m_reboot; }
46 inline bool RebootHasBeenSet() const { return m_rebootHasBeenSet; }
47 template<typename RebootT = Reboot>
48 void SetReboot(RebootT&& value) { m_rebootHasBeenSet = true; m_reboot = std::forward<RebootT>(value); }
49 template<typename RebootT = Reboot>
50 Command& WithReboot(RebootT&& value) { SetReboot(std::forward<RebootT>(value)); return *this;}
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) { m_unlockHasBeenSet = true; m_unlock = std::forward<UnlockT>(value); }
61 template<typename UnlockT = Unlock>
62 Command& WithUnlock(UnlockT&& value) { SetUnlock(std::forward<UnlockT>(value)); return *this;}
64 private:
65
66 Reboot m_reboot;
67 bool m_rebootHasBeenSet = false;
68
69 Unlock m_unlock;
70 bool m_unlockHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SnowDeviceManagement
75} // namespace Aws
Command & WithReboot(RebootT &&value)
Definition Command.h:50
AWS_SNOWDEVICEMANAGEMENT_API Command(Aws::Utils::Json::JsonView jsonValue)
const Reboot & GetReboot() const
Definition Command.h:45
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:62
AWS_SNOWDEVICEMANAGEMENT_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue