AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
44
45
47
51 inline const Aws::String& GetAggregatorType() const { return m_aggregatorType; }
52 inline bool AggregatorTypeHasBeenSet() const { return m_aggregatorTypeHasBeenSet; }
53 template<typename AggregatorTypeT = Aws::String>
54 void SetAggregatorType(AggregatorTypeT&& value) { m_aggregatorTypeHasBeenSet = true; m_aggregatorType = std::forward<AggregatorTypeT>(value); }
55 template<typename AggregatorTypeT = Aws::String>
56 OpsAggregator& WithAggregatorType(AggregatorTypeT&& value) { SetAggregatorType(std::forward<AggregatorTypeT>(value)); return *this;}
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) { m_typeNameHasBeenSet = true; m_typeName = std::forward<TypeNameT>(value); }
67 template<typename TypeNameT = Aws::String>
68 OpsAggregator& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
76 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
77 template<typename AttributeNameT = Aws::String>
78 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
79 template<typename AttributeNameT = Aws::String>
80 OpsAggregator& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
82
84
87 inline const Aws::Map<Aws::String, Aws::String>& GetValues() const { return m_values; }
88 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
89 template<typename ValuesT = Aws::Map<Aws::String, Aws::String>>
90 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
91 template<typename ValuesT = Aws::Map<Aws::String, Aws::String>>
92 OpsAggregator& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
93 template<typename ValuesKeyT = Aws::String, typename ValuesValueT = Aws::String>
94 OpsAggregator& AddValues(ValuesKeyT&& key, ValuesValueT&& value) {
95 m_valuesHasBeenSet = true; m_values.emplace(std::forward<ValuesKeyT>(key), std::forward<ValuesValueT>(value)); return *this;
96 }
98
100
103 inline const Aws::Vector<OpsFilter>& GetFilters() const { return m_filters; }
104 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
105 template<typename FiltersT = Aws::Vector<OpsFilter>>
106 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
107 template<typename FiltersT = Aws::Vector<OpsFilter>>
108 OpsAggregator& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
109 template<typename FiltersT = OpsFilter>
110 OpsAggregator& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
112
114
117 inline const Aws::Vector<OpsAggregator>& GetAggregators() const { return m_aggregators; }
118 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
119 template<typename AggregatorsT = Aws::Vector<OpsAggregator>>
120 void SetAggregators(AggregatorsT&& value) { m_aggregatorsHasBeenSet = true; m_aggregators = std::forward<AggregatorsT>(value); }
121 template<typename AggregatorsT = Aws::Vector<OpsAggregator>>
122 OpsAggregator& WithAggregators(AggregatorsT&& value) { SetAggregators(std::forward<AggregatorsT>(value)); return *this;}
123 template<typename AggregatorsT = OpsAggregator>
124 OpsAggregator& AddAggregators(AggregatorsT&& value) { m_aggregatorsHasBeenSet = true; m_aggregators.emplace_back(std::forward<AggregatorsT>(value)); return *this; }
126 private:
127
128 Aws::String m_aggregatorType;
129 bool m_aggregatorTypeHasBeenSet = false;
130
131 Aws::String m_typeName;
132 bool m_typeNameHasBeenSet = false;
133
134 Aws::String m_attributeName;
135 bool m_attributeNameHasBeenSet = false;
136
138 bool m_valuesHasBeenSet = false;
139
140 Aws::Vector<OpsFilter> m_filters;
141 bool m_filtersHasBeenSet = false;
142
143 Aws::Vector<OpsAggregator> m_aggregators;
144 bool m_aggregatorsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace SSM
149} // 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