AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StructuredMessage.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/iotfleetwise/model/PrimitiveMessageDefinition.h>
9#include <aws/iotfleetwise/model/StructuredMessageFieldNameAndDataTypePair.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12#include <memory>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTFleetWise
25{
26namespace Model
27{
28 class StructuredMessageListDefinition;
29 class StructuredMessageFieldNameAndDataTypePair;
30
41 {
42 public:
43 AWS_IOTFLEETWISE_API StructuredMessage();
44 AWS_IOTFLEETWISE_API StructuredMessage(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IOTFLEETWISE_API StructuredMessage& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const PrimitiveMessageDefinition& GetPrimitiveMessageDefinition() const{ return m_primitiveMessageDefinition; }
54 inline bool PrimitiveMessageDefinitionHasBeenSet() const { return m_primitiveMessageDefinitionHasBeenSet; }
55 inline void SetPrimitiveMessageDefinition(const PrimitiveMessageDefinition& value) { m_primitiveMessageDefinitionHasBeenSet = true; m_primitiveMessageDefinition = value; }
56 inline void SetPrimitiveMessageDefinition(PrimitiveMessageDefinition&& value) { m_primitiveMessageDefinitionHasBeenSet = true; m_primitiveMessageDefinition = std::move(value); }
60
62
66 AWS_IOTFLEETWISE_API bool StructuredMessageListDefinitionHasBeenSet() const;
72
74
77 inline const Aws::Vector<StructuredMessageFieldNameAndDataTypePair>& GetStructuredMessageDefinition() const{ return m_structuredMessageDefinition; }
78 inline bool StructuredMessageDefinitionHasBeenSet() const { return m_structuredMessageDefinitionHasBeenSet; }
79 inline void SetStructuredMessageDefinition(const Aws::Vector<StructuredMessageFieldNameAndDataTypePair>& value) { m_structuredMessageDefinitionHasBeenSet = true; m_structuredMessageDefinition = value; }
80 inline void SetStructuredMessageDefinition(Aws::Vector<StructuredMessageFieldNameAndDataTypePair>&& value) { m_structuredMessageDefinitionHasBeenSet = true; m_structuredMessageDefinition = std::move(value); }
83 inline StructuredMessage& AddStructuredMessageDefinition(const StructuredMessageFieldNameAndDataTypePair& value) { m_structuredMessageDefinitionHasBeenSet = true; m_structuredMessageDefinition.push_back(value); return *this; }
84 inline StructuredMessage& AddStructuredMessageDefinition(StructuredMessageFieldNameAndDataTypePair&& value) { m_structuredMessageDefinitionHasBeenSet = true; m_structuredMessageDefinition.push_back(std::move(value)); return *this; }
86 private:
87
88 PrimitiveMessageDefinition m_primitiveMessageDefinition;
89 bool m_primitiveMessageDefinitionHasBeenSet = false;
90
91 std::shared_ptr<StructuredMessageListDefinition> m_structuredMessageListDefinition;
92 bool m_structuredMessageListDefinitionHasBeenSet = false;
93
95 bool m_structuredMessageDefinitionHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace IoTFleetWise
100} // namespace Aws
void SetPrimitiveMessageDefinition(PrimitiveMessageDefinition &&value)
const Aws::Vector< StructuredMessageFieldNameAndDataTypePair > & GetStructuredMessageDefinition() const
AWS_IOTFLEETWISE_API bool StructuredMessageListDefinitionHasBeenSet() const
AWS_IOTFLEETWISE_API void SetStructuredMessageListDefinition(StructuredMessageListDefinition &&value)
AWS_IOTFLEETWISE_API StructuredMessage & WithStructuredMessageListDefinition(const StructuredMessageListDefinition &value)
StructuredMessage & WithPrimitiveMessageDefinition(PrimitiveMessageDefinition &&value)
StructuredMessage & WithPrimitiveMessageDefinition(const PrimitiveMessageDefinition &value)
StructuredMessage & AddStructuredMessageDefinition(const StructuredMessageFieldNameAndDataTypePair &value)
StructuredMessage & WithStructuredMessageDefinition(const Aws::Vector< StructuredMessageFieldNameAndDataTypePair > &value)
AWS_IOTFLEETWISE_API StructuredMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTFLEETWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTFLEETWISE_API StructuredMessage(Aws::Utils::Json::JsonView jsonValue)
StructuredMessage & WithStructuredMessageDefinition(Aws::Vector< StructuredMessageFieldNameAndDataTypePair > &&value)
StructuredMessage & AddStructuredMessageDefinition(StructuredMessageFieldNameAndDataTypePair &&value)
AWS_IOTFLEETWISE_API StructuredMessage & WithStructuredMessageListDefinition(StructuredMessageListDefinition &&value)
void SetStructuredMessageDefinition(const Aws::Vector< StructuredMessageFieldNameAndDataTypePair > &value)
void SetStructuredMessageDefinition(Aws::Vector< StructuredMessageFieldNameAndDataTypePair > &&value)
AWS_IOTFLEETWISE_API const StructuredMessageListDefinition & GetStructuredMessageListDefinition() const
void SetPrimitiveMessageDefinition(const PrimitiveMessageDefinition &value)
AWS_IOTFLEETWISE_API void SetStructuredMessageListDefinition(const StructuredMessageListDefinition &value)
const PrimitiveMessageDefinition & GetPrimitiveMessageDefinition() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue