AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OpsAggregator.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/OpsFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM {
23namespace Model {
24
34 public:
35 AWS_SSM_API OpsAggregator() = default;
39
41
45 inline const Aws::String& GetAggregatorType() const { return m_aggregatorType; }
46 inline bool AggregatorTypeHasBeenSet() const { return m_aggregatorTypeHasBeenSet; }
47 template <typename AggregatorTypeT = Aws::String>
48 void SetAggregatorType(AggregatorTypeT&& value) {
49 m_aggregatorTypeHasBeenSet = true;
50 m_aggregatorType = std::forward<AggregatorTypeT>(value);
51 }
52 template <typename AggregatorTypeT = Aws::String>
53 OpsAggregator& WithAggregatorType(AggregatorTypeT&& value) {
54 SetAggregatorType(std::forward<AggregatorTypeT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetTypeName() const { return m_typeName; }
64 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
65 template <typename TypeNameT = Aws::String>
66 void SetTypeName(TypeNameT&& value) {
67 m_typeNameHasBeenSet = true;
68 m_typeName = std::forward<TypeNameT>(value);
69 }
70 template <typename TypeNameT = Aws::String>
71 OpsAggregator& WithTypeName(TypeNameT&& value) {
72 SetTypeName(std::forward<TypeNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
82 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
83 template <typename AttributeNameT = Aws::String>
84 void SetAttributeName(AttributeNameT&& value) {
85 m_attributeNameHasBeenSet = true;
86 m_attributeName = std::forward<AttributeNameT>(value);
87 }
88 template <typename AttributeNameT = Aws::String>
89 OpsAggregator& WithAttributeName(AttributeNameT&& value) {
90 SetAttributeName(std::forward<AttributeNameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, Aws::String>& GetValues() const { return m_values; }
100 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
101 template <typename ValuesT = Aws::Map<Aws::String, Aws::String>>
102 void SetValues(ValuesT&& value) {
103 m_valuesHasBeenSet = true;
104 m_values = std::forward<ValuesT>(value);
105 }
106 template <typename ValuesT = Aws::Map<Aws::String, Aws::String>>
107 OpsAggregator& WithValues(ValuesT&& value) {
108 SetValues(std::forward<ValuesT>(value));
109 return *this;
110 }
111 template <typename ValuesKeyT = Aws::String, typename ValuesValueT = Aws::String>
112 OpsAggregator& AddValues(ValuesKeyT&& key, ValuesValueT&& value) {
113 m_valuesHasBeenSet = true;
114 m_values.emplace(std::forward<ValuesKeyT>(key), std::forward<ValuesValueT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Vector<OpsFilter>& GetFilters() const { return m_filters; }
124 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
125 template <typename FiltersT = Aws::Vector<OpsFilter>>
126 void SetFilters(FiltersT&& value) {
127 m_filtersHasBeenSet = true;
128 m_filters = std::forward<FiltersT>(value);
129 }
130 template <typename FiltersT = Aws::Vector<OpsFilter>>
131 OpsAggregator& WithFilters(FiltersT&& value) {
132 SetFilters(std::forward<FiltersT>(value));
133 return *this;
134 }
135 template <typename FiltersT = OpsFilter>
136 OpsAggregator& AddFilters(FiltersT&& value) {
137 m_filtersHasBeenSet = true;
138 m_filters.emplace_back(std::forward<FiltersT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Vector<OpsAggregator>& GetAggregators() const { return m_aggregators; }
148 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
149 template <typename AggregatorsT = Aws::Vector<OpsAggregator>>
150 void SetAggregators(AggregatorsT&& value) {
151 m_aggregatorsHasBeenSet = true;
152 m_aggregators = std::forward<AggregatorsT>(value);
153 }
154 template <typename AggregatorsT = Aws::Vector<OpsAggregator>>
155 OpsAggregator& WithAggregators(AggregatorsT&& value) {
156 SetAggregators(std::forward<AggregatorsT>(value));
157 return *this;
158 }
159 template <typename AggregatorsT = OpsAggregator>
160 OpsAggregator& AddAggregators(AggregatorsT&& value) {
161 m_aggregatorsHasBeenSet = true;
162 m_aggregators.emplace_back(std::forward<AggregatorsT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_aggregatorType;
168
169 Aws::String m_typeName;
170
171 Aws::String m_attributeName;
172
174
175 Aws::Vector<OpsFilter> m_filters;
176
177 Aws::Vector<OpsAggregator> m_aggregators;
178 bool m_aggregatorTypeHasBeenSet = false;
179 bool m_typeNameHasBeenSet = false;
180 bool m_attributeNameHasBeenSet = false;
181 bool m_valuesHasBeenSet = false;
182 bool m_filtersHasBeenSet = false;
183 bool m_aggregatorsHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace SSM
188} // namespace Aws
const Aws::String & GetAggregatorType() const
AWS_SSM_API OpsAggregator()=default
OpsAggregator & AddFilters(FiltersT &&value)
void SetFilters(FiltersT &&value)
OpsAggregator & WithValues(ValuesT &&value)
void SetValues(ValuesT &&value)
OpsAggregator & AddAggregators(AggregatorsT &&value)
AWS_SSM_API OpsAggregator(Aws::Utils::Json::JsonView jsonValue)
void SetAggregators(AggregatorsT &&value)
OpsAggregator & AddValues(ValuesKeyT &&key, ValuesValueT &&value)
OpsAggregator & WithFilters(FiltersT &&value)
OpsAggregator & WithAggregatorType(AggregatorTypeT &&value)
OpsAggregator & WithAttributeName(AttributeNameT &&value)
AWS_SSM_API OpsAggregator & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OpsFilter > & GetFilters() const
OpsAggregator & WithAggregators(AggregatorsT &&value)
OpsAggregator & WithTypeName(TypeNameT &&value)
void SetTypeName(TypeNameT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTypeName() const
void SetAttributeName(AttributeNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetValues() const
void SetAggregatorType(AggregatorTypeT &&value)
const Aws::Vector< OpsAggregator > & GetAggregators() const
const Aws::String & GetAttributeName() const
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