AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InventoryAggregator.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/AWSVector.h>
10#include <aws/ssm/model/InventoryGroup.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSM_API InventoryAggregator() = default;
41
42
44
47 inline const Aws::String& GetExpression() const { return m_expression; }
48 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
49 template<typename ExpressionT = Aws::String>
50 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
51 template<typename ExpressionT = Aws::String>
52 InventoryAggregator& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
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) { m_aggregatorsHasBeenSet = true; m_aggregators = std::forward<AggregatorsT>(value); }
63 template<typename AggregatorsT = Aws::Vector<InventoryAggregator>>
64 InventoryAggregator& WithAggregators(AggregatorsT&& value) { SetAggregators(std::forward<AggregatorsT>(value)); return *this;}
65 template<typename AggregatorsT = InventoryAggregator>
66 InventoryAggregator& AddAggregators(AggregatorsT&& value) { m_aggregatorsHasBeenSet = true; m_aggregators.emplace_back(std::forward<AggregatorsT>(value)); return *this; }
68
70
75 inline const Aws::Vector<InventoryGroup>& GetGroups() const { return m_groups; }
76 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
77 template<typename GroupsT = Aws::Vector<InventoryGroup>>
78 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups = std::forward<GroupsT>(value); }
79 template<typename GroupsT = Aws::Vector<InventoryGroup>>
80 InventoryAggregator& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
81 template<typename GroupsT = InventoryGroup>
82 InventoryAggregator& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
84 private:
85
86 Aws::String m_expression;
87 bool m_expressionHasBeenSet = false;
88
90 bool m_aggregatorsHasBeenSet = false;
91
93 bool m_groupsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SSM
98} // 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