AWS SDK for C++  1.9.108
AWS SDK for C++
InputDefinition.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoTEvents
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
49  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
50 
59  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
60 
69  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
70 
79  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
80 
89  inline InputDefinition& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
90 
99  inline InputDefinition& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
100 
109  inline InputDefinition& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
110 
119  inline InputDefinition& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
120 
121  private:
122 
123  Aws::Vector<Attribute> m_attributes;
124  bool m_attributesHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace IoTEvents
129 } // namespace Aws
Aws::IoTEvents::Model::InputDefinition::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: InputDefinition.h:59
Aws::IoTEvents::Model::InputDefinition::WithAttributes
InputDefinition & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: InputDefinition.h:99
Aws::IoTEvents::Model::InputDefinition::AddAttributes
InputDefinition & AddAttributes(Attribute &&value)
Definition: InputDefinition.h:119
Aws::IoTEvents::Model::InputDefinition::InputDefinition
InputDefinition(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoTEvents::Model::InputDefinition::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: InputDefinition.h:69
Attribute.h
Aws::IoTEvents::Model::InputDefinition
Definition: InputDefinition.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTEvents::Model::InputDefinition::InputDefinition
InputDefinition()
Aws::IoTEvents::Model::InputDefinition::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: InputDefinition.h:49
Aws::IoTEvents::Model::Attribute
Definition: Attribute.h:37
Aws::IoTEvents::Model::InputDefinition::operator=
InputDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTEvents::Model::InputDefinition::WithAttributes
InputDefinition & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: InputDefinition.h:89
Aws
Definition: AccessManagementClient.h:15
IoTEvents_EXPORTS.h
AWS_IOTEVENTS_API
#define AWS_IOTEVENTS_API
Definition: IoTEvents_EXPORTS.h:28
Aws::IoTEvents::Model::InputDefinition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTEvents::Model::InputDefinition::AddAttributes
InputDefinition & AddAttributes(const Attribute &value)
Definition: InputDefinition.h:109
Aws::IoTEvents::Model::InputDefinition::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: InputDefinition.h:79