AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpsAggregator.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/OpsFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_SSM_API OpsAggregator();
44
45
47
51 inline const Aws::String& GetAggregatorType() const{ return m_aggregatorType; }
52 inline bool AggregatorTypeHasBeenSet() const { return m_aggregatorTypeHasBeenSet; }
53 inline void SetAggregatorType(const Aws::String& value) { m_aggregatorTypeHasBeenSet = true; m_aggregatorType = value; }
54 inline void SetAggregatorType(Aws::String&& value) { m_aggregatorTypeHasBeenSet = true; m_aggregatorType = std::move(value); }
55 inline void SetAggregatorType(const char* value) { m_aggregatorTypeHasBeenSet = true; m_aggregatorType.assign(value); }
56 inline OpsAggregator& WithAggregatorType(const Aws::String& value) { SetAggregatorType(value); return *this;}
57 inline OpsAggregator& WithAggregatorType(Aws::String&& value) { SetAggregatorType(std::move(value)); return *this;}
58 inline OpsAggregator& WithAggregatorType(const char* value) { SetAggregatorType(value); return *this;}
60
62
65 inline const Aws::String& GetTypeName() const{ return m_typeName; }
66 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
67 inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
68 inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
69 inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
70 inline OpsAggregator& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
71 inline OpsAggregator& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
72 inline OpsAggregator& WithTypeName(const char* value) { SetTypeName(value); return *this;}
74
76
79 inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
80 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
81 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
82 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
83 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
84 inline OpsAggregator& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
85 inline OpsAggregator& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
86 inline OpsAggregator& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetValues() const{ return m_values; }
94 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
95 inline void SetValues(const Aws::Map<Aws::String, Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
96 inline void SetValues(Aws::Map<Aws::String, Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
97 inline OpsAggregator& WithValues(const Aws::Map<Aws::String, Aws::String>& value) { SetValues(value); return *this;}
98 inline OpsAggregator& WithValues(Aws::Map<Aws::String, Aws::String>&& value) { SetValues(std::move(value)); return *this;}
99 inline OpsAggregator& AddValues(const Aws::String& key, const Aws::String& value) { m_valuesHasBeenSet = true; m_values.emplace(key, value); return *this; }
100 inline OpsAggregator& AddValues(Aws::String&& key, const Aws::String& value) { m_valuesHasBeenSet = true; m_values.emplace(std::move(key), value); return *this; }
101 inline OpsAggregator& AddValues(const Aws::String& key, Aws::String&& value) { m_valuesHasBeenSet = true; m_values.emplace(key, std::move(value)); return *this; }
102 inline OpsAggregator& AddValues(Aws::String&& key, Aws::String&& value) { m_valuesHasBeenSet = true; m_values.emplace(std::move(key), std::move(value)); return *this; }
103 inline OpsAggregator& AddValues(const char* key, Aws::String&& value) { m_valuesHasBeenSet = true; m_values.emplace(key, std::move(value)); return *this; }
104 inline OpsAggregator& AddValues(Aws::String&& key, const char* value) { m_valuesHasBeenSet = true; m_values.emplace(std::move(key), value); return *this; }
105 inline OpsAggregator& AddValues(const char* key, const char* value) { m_valuesHasBeenSet = true; m_values.emplace(key, value); return *this; }
107
109
112 inline const Aws::Vector<OpsFilter>& GetFilters() const{ return m_filters; }
113 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
114 inline void SetFilters(const Aws::Vector<OpsFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
115 inline void SetFilters(Aws::Vector<OpsFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
116 inline OpsAggregator& WithFilters(const Aws::Vector<OpsFilter>& value) { SetFilters(value); return *this;}
117 inline OpsAggregator& WithFilters(Aws::Vector<OpsFilter>&& value) { SetFilters(std::move(value)); return *this;}
118 inline OpsAggregator& AddFilters(const OpsFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
119 inline OpsAggregator& AddFilters(OpsFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
121
123
126 inline const Aws::Vector<OpsAggregator>& GetAggregators() const{ return m_aggregators; }
127 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
128 inline void SetAggregators(const Aws::Vector<OpsAggregator>& value) { m_aggregatorsHasBeenSet = true; m_aggregators = value; }
129 inline void SetAggregators(Aws::Vector<OpsAggregator>&& value) { m_aggregatorsHasBeenSet = true; m_aggregators = std::move(value); }
130 inline OpsAggregator& WithAggregators(const Aws::Vector<OpsAggregator>& value) { SetAggregators(value); return *this;}
131 inline OpsAggregator& WithAggregators(Aws::Vector<OpsAggregator>&& value) { SetAggregators(std::move(value)); return *this;}
132 inline OpsAggregator& AddAggregators(const OpsAggregator& value) { m_aggregatorsHasBeenSet = true; m_aggregators.push_back(value); return *this; }
133 inline OpsAggregator& AddAggregators(OpsAggregator&& value) { m_aggregatorsHasBeenSet = true; m_aggregators.push_back(std::move(value)); return *this; }
135 private:
136
137 Aws::String m_aggregatorType;
138 bool m_aggregatorTypeHasBeenSet = false;
139
140 Aws::String m_typeName;
141 bool m_typeNameHasBeenSet = false;
142
143 Aws::String m_attributeName;
144 bool m_attributeNameHasBeenSet = false;
145
147 bool m_valuesHasBeenSet = false;
148
149 Aws::Vector<OpsFilter> m_filters;
150 bool m_filtersHasBeenSet = false;
151
152 Aws::Vector<OpsAggregator> m_aggregators;
153 bool m_aggregatorsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace SSM
158} // namespace Aws
OpsAggregator & WithFilters(const Aws::Vector< OpsFilter > &value)
void SetValues(Aws::Map< Aws::String, Aws::String > &&value)
OpsAggregator & AddValues(Aws::String &&key, const Aws::String &value)
void SetValues(const Aws::Map< Aws::String, Aws::String > &value)
void SetAttributeName(Aws::String &&value)
OpsAggregator & AddValues(const Aws::String &key, Aws::String &&value)
OpsAggregator & WithTypeName(const char *value)
OpsAggregator & WithTypeName(const Aws::String &value)
void SetFilters(const Aws::Vector< OpsFilter > &value)
void SetTypeName(const char *value)
const Aws::String & GetAggregatorType() const
AWS_SSM_API OpsAggregator(Aws::Utils::Json::JsonView jsonValue)
void SetAggregatorType(Aws::String &&value)
OpsAggregator & WithValues(Aws::Map< Aws::String, Aws::String > &&value)
OpsAggregator & AddValues(const char *key, Aws::String &&value)
OpsAggregator & WithAttributeName(Aws::String &&value)
void SetFilters(Aws::Vector< OpsFilter > &&value)
void SetAggregators(const Aws::Vector< OpsAggregator > &value)
OpsAggregator & AddValues(const Aws::String &key, const Aws::String &value)
OpsAggregator & AddValues(Aws::String &&key, const char *value)
OpsAggregator & WithAttributeName(const Aws::String &value)
AWS_SSM_API OpsAggregator & operator=(Aws::Utils::Json::JsonView jsonValue)
OpsAggregator & AddFilters(const OpsFilter &value)
OpsAggregator & WithAggregatorType(const char *value)
OpsAggregator & WithAttributeName(const char *value)
OpsAggregator & AddValues(Aws::String &&key, Aws::String &&value)
OpsAggregator & AddValues(const char *key, const char *value)
const Aws::Vector< OpsFilter > & GetFilters() const
OpsAggregator & WithAggregatorType(Aws::String &&value)
void SetAttributeName(const Aws::String &value)
OpsAggregator & WithValues(const Aws::Map< Aws::String, Aws::String > &value)
OpsAggregator & WithAggregators(const Aws::Vector< OpsAggregator > &value)
void SetAggregators(Aws::Vector< OpsAggregator > &&value)
OpsAggregator & AddAggregators(const OpsAggregator &value)
void SetTypeName(const Aws::String &value)
OpsAggregator & WithFilters(Aws::Vector< OpsFilter > &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTypeName() const
const Aws::Map< Aws::String, Aws::String > & GetValues() const
void SetTypeName(Aws::String &&value)
void SetAggregatorType(const Aws::String &value)
void SetAttributeName(const char *value)
OpsAggregator & AddAggregators(OpsAggregator &&value)
OpsAggregator & WithAggregators(Aws::Vector< OpsAggregator > &&value)
OpsAggregator & WithTypeName(Aws::String &&value)
OpsAggregator & WithAggregatorType(const Aws::String &value)
const Aws::Vector< OpsAggregator > & GetAggregators() const
void SetAggregatorType(const char *value)
const Aws::String & GetAttributeName() const
OpsAggregator & AddFilters(OpsFilter &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue