AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CommandCapability.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
10#include <aws/iot-managed-integrations/model/CapabilityAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTManagedIntegrations {
22namespace Model {
23
31 public:
32 AWS_IOTMANAGEDINTEGRATIONS_API CommandCapability() = default;
33 AWS_IOTMANAGEDINTEGRATIONS_API CommandCapability(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API CommandCapability& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 CommandCapability& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 CommandCapability& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVersion() const { return m_version; }
78 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
79 template <typename VersionT = Aws::String>
80 void SetVersion(VersionT&& value) {
81 m_versionHasBeenSet = true;
82 m_version = std::forward<VersionT>(value);
83 }
84 template <typename VersionT = Aws::String>
85 CommandCapability& WithVersion(VersionT&& value) {
86 SetVersion(std::forward<VersionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<CapabilityAction>& GetActions() const { return m_actions; }
96 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
97 template <typename ActionsT = Aws::Vector<CapabilityAction>>
98 void SetActions(ActionsT&& value) {
99 m_actionsHasBeenSet = true;
100 m_actions = std::forward<ActionsT>(value);
101 }
102 template <typename ActionsT = Aws::Vector<CapabilityAction>>
103 CommandCapability& WithActions(ActionsT&& value) {
104 SetActions(std::forward<ActionsT>(value));
105 return *this;
106 }
107 template <typename ActionsT = CapabilityAction>
108 CommandCapability& AddActions(ActionsT&& value) {
109 m_actionsHasBeenSet = true;
110 m_actions.emplace_back(std::forward<ActionsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_id;
116
117 Aws::String m_name;
118
119 Aws::String m_version;
120
122 bool m_idHasBeenSet = false;
123 bool m_nameHasBeenSet = false;
124 bool m_versionHasBeenSet = false;
125 bool m_actionsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace IoTManagedIntegrations
130} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
CommandCapability & AddActions(ActionsT &&value)
CommandCapability & WithVersion(VersionT &&value)
const Aws::Vector< CapabilityAction > & GetActions() const
AWS_IOTMANAGEDINTEGRATIONS_API CommandCapability()=default
CommandCapability & WithActions(ActionsT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API CommandCapability(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API CommandCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue