AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InputDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9#include <aws/iotevents/model/Attribute.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTEvents {
21namespace Model {
22
29 public:
30 AWS_IOTEVENTS_API InputDefinition() = default;
31 AWS_IOTEVENTS_API InputDefinition(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
44 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
45 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
46 template <typename AttributesT = Aws::Vector<Attribute>>
47 void SetAttributes(AttributesT&& value) {
48 m_attributesHasBeenSet = true;
49 m_attributes = std::forward<AttributesT>(value);
50 }
51 template <typename AttributesT = Aws::Vector<Attribute>>
52 InputDefinition& WithAttributes(AttributesT&& value) {
53 SetAttributes(std::forward<AttributesT>(value));
54 return *this;
55 }
56 template <typename AttributesT = Attribute>
57 InputDefinition& AddAttributes(AttributesT&& value) {
58 m_attributesHasBeenSet = true;
59 m_attributes.emplace_back(std::forward<AttributesT>(value));
60 return *this;
61 }
63 private:
64 Aws::Vector<Attribute> m_attributes;
65 bool m_attributesHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace IoTEvents
70} // namespace Aws
const Aws::Vector< Attribute > & GetAttributes() const
AWS_IOTEVENTS_API InputDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API InputDefinition(Aws::Utils::Json::JsonView jsonValue)
InputDefinition & AddAttributes(AttributesT &&value)
void SetAttributes(AttributesT &&value)
InputDefinition & WithAttributes(AttributesT &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTEVENTS_API InputDefinition()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue