AWS SDK for C++  1.9.123
AWS SDK for C++
AggregationType.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoT
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const AggregationTypeName& GetName() const{ return m_name; }
46 
50  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 
55  inline void SetName(const AggregationTypeName& value) { m_nameHasBeenSet = true; m_name = value; }
56 
60  inline void SetName(AggregationTypeName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
65  inline AggregationType& WithName(const AggregationTypeName& value) { SetName(value); return *this;}
66 
70  inline AggregationType& WithName(AggregationTypeName&& value) { SetName(std::move(value)); return *this;}
71 
72 
76  inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
77 
81  inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
82 
86  inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
87 
91  inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
92 
96  inline AggregationType& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
97 
101  inline AggregationType& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
102 
106  inline AggregationType& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
107 
111  inline AggregationType& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
112 
116  inline AggregationType& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
117 
118  private:
119 
120  AggregationTypeName m_name;
121  bool m_nameHasBeenSet;
122 
123  Aws::Vector<Aws::String> m_values;
124  bool m_valuesHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace IoT
129 } // namespace Aws
Aws::IoT::Model::AggregationType
Definition: AggregationType.h:34
Aws::IoT::Model::AggregationType::AddValues
AggregationType & AddValues(const Aws::String &value)
Definition: AggregationType.h:106
Aws::IoT::Model::AggregationType::operator=
AggregationType & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AggregationTypeName
AggregationTypeName
Definition: AggregationTypeName.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::AggregationType::SetName
void SetName(AggregationTypeName &&value)
Definition: AggregationType.h:60
Aws::IoT::Model::AggregationType::AddValues
AggregationType & AddValues(const char *value)
Definition: AggregationType.h:116
Aws::IoT::Model::AggregationType::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AggregationType.h:50
Aws::IoT::Model::AggregationType::AddValues
AggregationType & AddValues(Aws::String &&value)
Definition: AggregationType.h:111
Aws::IoT::Model::AggregationType::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::AggregationType::SetName
void SetName(const AggregationTypeName &value)
Definition: AggregationType.h:55
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AggregationTypeName.h
Aws::IoT::Model::AggregationType::SetValues
void SetValues(const Aws::Vector< Aws::String > &value)
Definition: AggregationType.h:86
Aws::IoT::Model::AggregationType::WithValues
AggregationType & WithValues(const Aws::Vector< Aws::String > &value)
Definition: AggregationType.h:96
Aws::IoT::Model::AggregationType::WithName
AggregationType & WithName(const AggregationTypeName &value)
Definition: AggregationType.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AggregationType::ValuesHasBeenSet
bool ValuesHasBeenSet() const
Definition: AggregationType.h:81
Aws::IoT::Model::AggregationType::AggregationType
AggregationType(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AggregationType::GetValues
const Aws::Vector< Aws::String > & GetValues() const
Definition: AggregationType.h:76
Aws::IoT::Model::AggregationType::GetName
const AggregationTypeName & GetName() const
Definition: AggregationType.h:45
Aws::IoT::Model::AggregationType::WithValues
AggregationType & WithValues(Aws::Vector< Aws::String > &&value)
Definition: AggregationType.h:101
Aws::IoT::Model::AggregationType::WithName
AggregationType & WithName(AggregationTypeName &&value)
Definition: AggregationType.h:70
Aws::IoT::Model::AggregationType::SetValues
void SetValues(Aws::Vector< Aws::String > &&value)
Definition: AggregationType.h:91
Aws::IoT::Model::AggregationType::AggregationType
AggregationType()
IoT_EXPORTS.h