AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
StateCapability.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTManagedIntegrations {
21namespace Model {
22
29 public:
30 AWS_IOTMANAGEDINTEGRATIONS_API StateCapability() = default;
31 AWS_IOTMANAGEDINTEGRATIONS_API StateCapability(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTMANAGEDINTEGRATIONS_API StateCapability& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 StateCapability& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 StateCapability& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetVersion() const { return m_version; }
76 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
77 template <typename VersionT = Aws::String>
78 void SetVersion(VersionT&& value) {
79 m_versionHasBeenSet = true;
80 m_version = std::forward<VersionT>(value);
81 }
82 template <typename VersionT = Aws::String>
83 StateCapability& WithVersion(VersionT&& value) {
84 SetVersion(std::forward<VersionT>(value));
85 return *this;
86 }
88
90
93 inline Aws::Utils::DocumentView GetProperties() const { return m_properties; }
94 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
95 template <typename PropertiesT = Aws::Utils::Document>
96 void SetProperties(PropertiesT&& value) {
97 m_propertiesHasBeenSet = true;
98 m_properties = std::forward<PropertiesT>(value);
99 }
100 template <typename PropertiesT = Aws::Utils::Document>
101 StateCapability& WithProperties(PropertiesT&& value) {
102 SetProperties(std::forward<PropertiesT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_id;
108
109 Aws::String m_name;
110
111 Aws::String m_version;
112
113 Aws::Utils::Document m_properties;
114 bool m_idHasBeenSet = false;
115 bool m_nameHasBeenSet = false;
116 bool m_versionHasBeenSet = false;
117 bool m_propertiesHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace IoTManagedIntegrations
122} // namespace Aws
StateCapability & WithVersion(VersionT &&value)
StateCapability & WithProperties(PropertiesT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTMANAGEDINTEGRATIONS_API StateCapability(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API StateCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API StateCapability()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue