AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InventoryAggregator.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/InventoryGroup.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
31 public:
32 AWS_SSM_API InventoryAggregator() = default;
36
38
41 inline const Aws::String& GetExpression() const { return m_expression; }
42 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
43 template <typename ExpressionT = Aws::String>
44 void SetExpression(ExpressionT&& value) {
45 m_expressionHasBeenSet = true;
46 m_expression = std::forward<ExpressionT>(value);
47 }
48 template <typename ExpressionT = Aws::String>
49 InventoryAggregator& WithExpression(ExpressionT&& value) {
50 SetExpression(std::forward<ExpressionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<InventoryAggregator>& GetAggregators() const { return m_aggregators; }
60 inline bool AggregatorsHasBeenSet() const { return m_aggregatorsHasBeenSet; }
61 template <typename AggregatorsT = Aws::Vector<InventoryAggregator>>
62 void SetAggregators(AggregatorsT&& value) {
63 m_aggregatorsHasBeenSet = true;
64 m_aggregators = std::forward<AggregatorsT>(value);
65 }
66 template <typename AggregatorsT = Aws::Vector<InventoryAggregator>>
67 InventoryAggregator& WithAggregators(AggregatorsT&& value) {
68 SetAggregators(std::forward<AggregatorsT>(value));
69 return *this;
70 }
71 template <typename AggregatorsT = InventoryAggregator>
72 InventoryAggregator& AddAggregators(AggregatorsT&& value) {
73 m_aggregatorsHasBeenSet = true;
74 m_aggregators.emplace_back(std::forward<AggregatorsT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Vector<InventoryGroup>& GetGroups() const { return m_groups; }
86 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
87 template <typename GroupsT = Aws::Vector<InventoryGroup>>
88 void SetGroups(GroupsT&& value) {
89 m_groupsHasBeenSet = true;
90 m_groups = std::forward<GroupsT>(value);
91 }
92 template <typename GroupsT = Aws::Vector<InventoryGroup>>
93 InventoryAggregator& WithGroups(GroupsT&& value) {
94 SetGroups(std::forward<GroupsT>(value));
95 return *this;
96 }
97 template <typename GroupsT = InventoryGroup>
98 InventoryAggregator& AddGroups(GroupsT&& value) {
99 m_groupsHasBeenSet = true;
100 m_groups.emplace_back(std::forward<GroupsT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_expression;
106
108
110 bool m_expressionHasBeenSet = false;
111 bool m_aggregatorsHasBeenSet = false;
112 bool m_groupsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace SSM
117} // namespace Aws
const Aws::Vector< InventoryAggregator > & GetAggregators() const
void SetAggregators(AggregatorsT &&value)
AWS_SSM_API InventoryAggregator(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API InventoryAggregator()=default
const Aws::String & GetExpression() const
InventoryAggregator & WithAggregators(AggregatorsT &&value)
const Aws::Vector< InventoryGroup > & GetGroups() const
InventoryAggregator & AddAggregators(AggregatorsT &&value)
InventoryAggregator & WithGroups(GroupsT &&value)
InventoryAggregator & AddGroups(GroupsT &&value)
AWS_SSM_API InventoryAggregator & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExpression(ExpressionT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
InventoryAggregator & WithExpression(ExpressionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue