AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NodeAggregator.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/NodeAggregatorType.h>
9#include <aws/ssm/model/NodeTypeName.h>
10#include <aws/ssm/model/NodeAttributeName.h>
11#include <aws/core/utils/memory/stl/AWSVector.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
36 {
37 public:
38 AWS_SSM_API NodeAggregator() = default;
42
43
45
49 inline NodeAggregatorType GetAggregatorType() const { return m_aggregatorType; }
50 inline bool AggregatorTypeHasBeenSet() const { return m_aggregatorTypeHasBeenSet; }
51 inline void SetAggregatorType(NodeAggregatorType value) { m_aggregatorTypeHasBeenSet = true; m_aggregatorType = value; }
54
56
60 inline NodeTypeName GetTypeName() const { return m_typeName; }
61 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
62 inline void SetTypeName(NodeTypeName value) { m_typeNameHasBeenSet = true; m_typeName = value; }
63 inline NodeAggregator& WithTypeName(NodeTypeName value) { SetTypeName(value); return *this;}
65
67
70 inline NodeAttributeName GetAttributeName() const { return m_attributeName; }
71 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
72 inline void SetAttributeName(NodeAttributeName value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
75
77
80 inline const Aws::Vector<NodeAggregator>& GetAggregators() const { return m_aggregators; }
81 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
82 template<typename AggregatorsT = Aws::Vector<NodeAggregator>>
83 void SetAggregators(AggregatorsT&& value) { m_aggregatorsHasBeenSet = true; m_aggregators = std::forward<AggregatorsT>(value); }
84 template<typename AggregatorsT = Aws::Vector<NodeAggregator>>
85 NodeAggregator& WithAggregators(AggregatorsT&& value) { SetAggregators(std::forward<AggregatorsT>(value)); return *this;}
86 template<typename AggregatorsT = NodeAggregator>
87 NodeAggregator& AddAggregators(AggregatorsT&& value) { m_aggregatorsHasBeenSet = true; m_aggregators.emplace_back(std::forward<AggregatorsT>(value)); return *this; }
89 private:
90
92 bool m_aggregatorTypeHasBeenSet = false;
93
95 bool m_typeNameHasBeenSet = false;
96
98 bool m_attributeNameHasBeenSet = false;
99
100 Aws::Vector<NodeAggregator> m_aggregators;
101 bool m_aggregatorsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SSM
106} // namespace Aws
NodeAggregator & WithTypeName(NodeTypeName value)
const Aws::Vector< NodeAggregator > & GetAggregators() const
NodeAggregator & WithAggregatorType(NodeAggregatorType value)
NodeAggregator & WithAggregators(AggregatorsT &&value)
void SetAggregators(AggregatorsT &&value)
void SetAttributeName(NodeAttributeName value)
NodeAttributeName GetAttributeName() const
NodeAggregatorType GetAggregatorType() const
NodeAggregator & WithAttributeName(NodeAttributeName value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API NodeAggregator & operator=(Aws::Utils::Json::JsonView jsonValue)
NodeAggregator & AddAggregators(AggregatorsT &&value)
NodeTypeName GetTypeName() const
void SetTypeName(NodeTypeName value)
void SetAggregatorType(NodeAggregatorType value)
AWS_SSM_API NodeAggregator(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API NodeAggregator()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue