AWS SDK for C++

AWS SDK for C++ Version 1.11.613

Loading...
Searching...
No Matches
CapabilitySchemaItem.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/model/SchemaVersionFormat.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Document.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTManagedIntegrations
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem() = default;
39 AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTMANAGEDINTEGRATIONS_API CapabilitySchemaItem& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline SchemaVersionFormat GetFormat() const { return m_format; }
50 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
51 inline void SetFormat(SchemaVersionFormat value) { m_formatHasBeenSet = true; m_format = value; }
52 inline CapabilitySchemaItem& WithFormat(SchemaVersionFormat value) { SetFormat(value); return *this;}
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) { m_capabilityIdHasBeenSet = true; m_capabilityId = std::forward<CapabilityIdT>(value); }
63 template<typename CapabilityIdT = Aws::String>
64 CapabilitySchemaItem& WithCapabilityId(CapabilityIdT&& value) { SetCapabilityId(std::forward<CapabilityIdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetExtrinsicId() const { return m_extrinsicId; }
73 inline bool ExtrinsicIdHasBeenSet() const { return m_extrinsicIdHasBeenSet; }
74 template<typename ExtrinsicIdT = Aws::String>
75 void SetExtrinsicId(ExtrinsicIdT&& value) { m_extrinsicIdHasBeenSet = true; m_extrinsicId = std::forward<ExtrinsicIdT>(value); }
76 template<typename ExtrinsicIdT = Aws::String>
77 CapabilitySchemaItem& WithExtrinsicId(ExtrinsicIdT&& value) { SetExtrinsicId(std::forward<ExtrinsicIdT>(value)); return *this;}
79
81
85 inline int GetExtrinsicVersion() const { return m_extrinsicVersion; }
86 inline bool ExtrinsicVersionHasBeenSet() const { return m_extrinsicVersionHasBeenSet; }
87 inline void SetExtrinsicVersion(int value) { m_extrinsicVersionHasBeenSet = true; m_extrinsicVersion = value; }
88 inline CapabilitySchemaItem& WithExtrinsicVersion(int value) { SetExtrinsicVersion(value); return *this;}
90
92
96 inline Aws::Utils::DocumentView GetSchema() const { return m_schema; }
97 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
98 template<typename SchemaT = Aws::Utils::Document>
99 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
100 template<typename SchemaT = Aws::Utils::Document>
101 CapabilitySchemaItem& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
103 private:
104
106 bool m_formatHasBeenSet = false;
107
108 Aws::String m_capabilityId;
109 bool m_capabilityIdHasBeenSet = false;
110
111 Aws::String m_extrinsicId;
112 bool m_extrinsicIdHasBeenSet = false;
113
114 int m_extrinsicVersion{0};
115 bool m_extrinsicVersionHasBeenSet = false;
116
117 Aws::Utils::Document m_schema;
118 bool m_schemaHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace IoTManagedIntegrations
123} // 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