AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2InstanceAggregation.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/model/Ec2InstanceSortBy.h>
10#include <aws/inspector2/model/SortOrder.h>
11#include <aws/inspector2/model/StringFilter.h>
12#include <aws/inspector2/model/MapFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_INSPECTOR2_API Ec2InstanceAggregation();
42 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<StringFilter>& GetAmis() const{ return m_amis; }
51 inline bool AmisHasBeenSet() const { return m_amisHasBeenSet; }
52 inline void SetAmis(const Aws::Vector<StringFilter>& value) { m_amisHasBeenSet = true; m_amis = value; }
53 inline void SetAmis(Aws::Vector<StringFilter>&& value) { m_amisHasBeenSet = true; m_amis = std::move(value); }
54 inline Ec2InstanceAggregation& WithAmis(const Aws::Vector<StringFilter>& value) { SetAmis(value); return *this;}
55 inline Ec2InstanceAggregation& WithAmis(Aws::Vector<StringFilter>&& value) { SetAmis(std::move(value)); return *this;}
56 inline Ec2InstanceAggregation& AddAmis(const StringFilter& value) { m_amisHasBeenSet = true; m_amis.push_back(value); return *this; }
57 inline Ec2InstanceAggregation& AddAmis(StringFilter&& value) { m_amisHasBeenSet = true; m_amis.push_back(std::move(value)); return *this; }
59
61
64 inline const Aws::Vector<StringFilter>& GetInstanceIds() const{ return m_instanceIds; }
65 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
66 inline void SetInstanceIds(const Aws::Vector<StringFilter>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
67 inline void SetInstanceIds(Aws::Vector<StringFilter>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
69 inline Ec2InstanceAggregation& WithInstanceIds(Aws::Vector<StringFilter>&& value) { SetInstanceIds(std::move(value)); return *this;}
70 inline Ec2InstanceAggregation& AddInstanceIds(const StringFilter& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
71 inline Ec2InstanceAggregation& AddInstanceIds(StringFilter&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
73
75
78 inline const Aws::Vector<MapFilter>& GetInstanceTags() const{ return m_instanceTags; }
79 inline bool InstanceTagsHasBeenSet() const { return m_instanceTagsHasBeenSet; }
80 inline void SetInstanceTags(const Aws::Vector<MapFilter>& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = value; }
81 inline void SetInstanceTags(Aws::Vector<MapFilter>&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags = std::move(value); }
83 inline Ec2InstanceAggregation& WithInstanceTags(Aws::Vector<MapFilter>&& value) { SetInstanceTags(std::move(value)); return *this;}
84 inline Ec2InstanceAggregation& AddInstanceTags(const MapFilter& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.push_back(value); return *this; }
85 inline Ec2InstanceAggregation& AddInstanceTags(MapFilter&& value) { m_instanceTagsHasBeenSet = true; m_instanceTags.push_back(std::move(value)); return *this; }
87
89
94 inline const Aws::Vector<StringFilter>& GetOperatingSystems() const{ return m_operatingSystems; }
95 inline bool OperatingSystemsHasBeenSet() const { return m_operatingSystemsHasBeenSet; }
96 inline void SetOperatingSystems(const Aws::Vector<StringFilter>& value) { m_operatingSystemsHasBeenSet = true; m_operatingSystems = value; }
97 inline void SetOperatingSystems(Aws::Vector<StringFilter>&& value) { m_operatingSystemsHasBeenSet = true; m_operatingSystems = std::move(value); }
100 inline Ec2InstanceAggregation& AddOperatingSystems(const StringFilter& value) { m_operatingSystemsHasBeenSet = true; m_operatingSystems.push_back(value); return *this; }
101 inline Ec2InstanceAggregation& AddOperatingSystems(StringFilter&& value) { m_operatingSystemsHasBeenSet = true; m_operatingSystems.push_back(std::move(value)); return *this; }
103
105
108 inline const Ec2InstanceSortBy& GetSortBy() const{ return m_sortBy; }
109 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
110 inline void SetSortBy(const Ec2InstanceSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
111 inline void SetSortBy(Ec2InstanceSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
112 inline Ec2InstanceAggregation& WithSortBy(const Ec2InstanceSortBy& value) { SetSortBy(value); return *this;}
113 inline Ec2InstanceAggregation& WithSortBy(Ec2InstanceSortBy&& value) { SetSortBy(std::move(value)); return *this;}
115
117
120 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
121 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
122 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
123 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
124 inline Ec2InstanceAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
125 inline Ec2InstanceAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
127 private:
128
130 bool m_amisHasBeenSet = false;
131
132 Aws::Vector<StringFilter> m_instanceIds;
133 bool m_instanceIdsHasBeenSet = false;
134
135 Aws::Vector<MapFilter> m_instanceTags;
136 bool m_instanceTagsHasBeenSet = false;
137
138 Aws::Vector<StringFilter> m_operatingSystems;
139 bool m_operatingSystemsHasBeenSet = false;
140
141 Ec2InstanceSortBy m_sortBy;
142 bool m_sortByHasBeenSet = false;
143
144 SortOrder m_sortOrder;
145 bool m_sortOrderHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Inspector2
150} // namespace Aws
Ec2InstanceAggregation & AddAmis(const StringFilter &value)
Ec2InstanceAggregation & WithInstanceIds(const Aws::Vector< StringFilter > &value)
const Aws::Vector< MapFilter > & GetInstanceTags() const
Ec2InstanceAggregation & WithOperatingSystems(Aws::Vector< StringFilter > &&value)
void SetAmis(Aws::Vector< StringFilter > &&value)
Ec2InstanceAggregation & AddInstanceIds(const StringFilter &value)
void SetAmis(const Aws::Vector< StringFilter > &value)
const Aws::Vector< StringFilter > & GetInstanceIds() const
Ec2InstanceAggregation & AddOperatingSystems(const StringFilter &value)
Ec2InstanceAggregation & WithAmis(Aws::Vector< StringFilter > &&value)
void SetSortBy(const Ec2InstanceSortBy &value)
Ec2InstanceAggregation & WithSortOrder(const SortOrder &value)
AWS_INSPECTOR2_API Ec2InstanceAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Ec2InstanceAggregation & AddInstanceTags(MapFilter &&value)
const Aws::Vector< StringFilter > & GetAmis() const
Ec2InstanceAggregation & WithSortBy(const Ec2InstanceSortBy &value)
void SetInstanceTags(Aws::Vector< MapFilter > &&value)
void SetOperatingSystems(const Aws::Vector< StringFilter > &value)
Ec2InstanceAggregation & AddInstanceTags(const MapFilter &value)
Ec2InstanceAggregation & WithOperatingSystems(const Aws::Vector< StringFilter > &value)
void SetInstanceIds(const Aws::Vector< StringFilter > &value)
Ec2InstanceAggregation & AddAmis(StringFilter &&value)
Ec2InstanceAggregation & WithInstanceTags(const Aws::Vector< MapFilter > &value)
Ec2InstanceAggregation & WithSortBy(Ec2InstanceSortBy &&value)
const Aws::Vector< StringFilter > & GetOperatingSystems() const
Ec2InstanceAggregation & AddOperatingSystems(StringFilter &&value)
Ec2InstanceAggregation & WithInstanceIds(Aws::Vector< StringFilter > &&value)
void SetOperatingSystems(Aws::Vector< StringFilter > &&value)
AWS_INSPECTOR2_API Ec2InstanceAggregation(Aws::Utils::Json::JsonView jsonValue)
Ec2InstanceAggregation & WithInstanceTags(Aws::Vector< MapFilter > &&value)
Ec2InstanceAggregation & WithAmis(const Aws::Vector< StringFilter > &value)
Ec2InstanceAggregation & WithSortOrder(SortOrder &&value)
Ec2InstanceAggregation & AddInstanceIds(StringFilter &&value)
void SetInstanceIds(Aws::Vector< StringFilter > &&value)
void SetInstanceTags(const Aws::Vector< MapFilter > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue