AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CapabilitySchemaItem.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#include <aws/iot-managed-integrations/model/SchemaVersionFormat.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
32 public:
33 AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem() = default;
34 AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline SchemaVersionFormat GetFormat() const { return m_format; }
44 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
45 inline void SetFormat(SchemaVersionFormat value) {
46 m_formatHasBeenSet = true;
47 m_format = value;
48 }
50 SetFormat(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCapabilityId() const { return m_capabilityId; }
60 inline bool CapabilityIdHasBeenSet() const { return m_capabilityIdHasBeenSet; }
61 template <typename CapabilityIdT = Aws::String>
62 void SetCapabilityId(CapabilityIdT&& value) {
63 m_capabilityIdHasBeenSet = true;
64 m_capabilityId = std::forward<CapabilityIdT>(value);
65 }
66 template <typename CapabilityIdT = Aws::String>
67 CapabilitySchemaItem& WithCapabilityId(CapabilityIdT&& value) {
68 SetCapabilityId(std::forward<CapabilityIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetExtrinsicId() const { return m_extrinsicId; }
79 inline bool ExtrinsicIdHasBeenSet() const { return m_extrinsicIdHasBeenSet; }
80 template <typename ExtrinsicIdT = Aws::String>
81 void SetExtrinsicId(ExtrinsicIdT&& value) {
82 m_extrinsicIdHasBeenSet = true;
83 m_extrinsicId = std::forward<ExtrinsicIdT>(value);
84 }
85 template <typename ExtrinsicIdT = Aws::String>
86 CapabilitySchemaItem& WithExtrinsicId(ExtrinsicIdT&& value) {
87 SetExtrinsicId(std::forward<ExtrinsicIdT>(value));
88 return *this;
89 }
91
93
97 inline int GetExtrinsicVersion() const { return m_extrinsicVersion; }
98 inline bool ExtrinsicVersionHasBeenSet() const { return m_extrinsicVersionHasBeenSet; }
99 inline void SetExtrinsicVersion(int value) {
100 m_extrinsicVersionHasBeenSet = true;
101 m_extrinsicVersion = value;
102 }
104 SetExtrinsicVersion(value);
105 return *this;
106 }
108
110
114 inline Aws::Utils::DocumentView GetSchema() const { return m_schema; }
115 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
116 template <typename SchemaT = Aws::Utils::Document>
117 void SetSchema(SchemaT&& value) {
118 m_schemaHasBeenSet = true;
119 m_schema = std::forward<SchemaT>(value);
120 }
121 template <typename SchemaT = Aws::Utils::Document>
123 SetSchema(std::forward<SchemaT>(value));
124 return *this;
125 }
127 private:
129
130 Aws::String m_capabilityId;
131
132 Aws::String m_extrinsicId;
133
134 int m_extrinsicVersion{0};
135
136 Aws::Utils::Document m_schema;
137 bool m_formatHasBeenSet = false;
138 bool m_capabilityIdHasBeenSet = false;
139 bool m_extrinsicIdHasBeenSet = false;
140 bool m_extrinsicVersionHasBeenSet = false;
141 bool m_schemaHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace IoTManagedIntegrations
146} // namespace Aws
CapabilitySchemaItem & WithCapabilityId(CapabilityIdT &&value)
CapabilitySchemaItem & WithFormat(SchemaVersionFormat value)
AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem()=default
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
CapabilitySchemaItem & WithExtrinsicId(ExtrinsicIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue