AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AmiAggregation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/AmiSortBy.h>
10#include <aws/inspector2/model/SortOrder.h>
11#include <aws/inspector2/model/StringFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2 {
23namespace Model {
24
32 public:
33 AWS_INSPECTOR2_API AmiAggregation() = default;
34 AWS_INSPECTOR2_API AmiAggregation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_API AmiAggregation& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<StringFilter>& GetAmis() const { return m_amis; }
43 inline bool AmisHasBeenSet() const { return m_amisHasBeenSet; }
44 template <typename AmisT = Aws::Vector<StringFilter>>
45 void SetAmis(AmisT&& value) {
46 m_amisHasBeenSet = true;
47 m_amis = std::forward<AmisT>(value);
48 }
49 template <typename AmisT = Aws::Vector<StringFilter>>
50 AmiAggregation& WithAmis(AmisT&& value) {
51 SetAmis(std::forward<AmisT>(value));
52 return *this;
53 }
54 template <typename AmisT = StringFilter>
55 AmiAggregation& AddAmis(AmisT&& value) {
56 m_amisHasBeenSet = true;
57 m_amis.emplace_back(std::forward<AmisT>(value));
58 return *this;
59 }
61
63
66 inline SortOrder GetSortOrder() const { return m_sortOrder; }
67 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
68 inline void SetSortOrder(SortOrder value) {
69 m_sortOrderHasBeenSet = true;
70 m_sortOrder = value;
71 }
73 SetSortOrder(value);
74 return *this;
75 }
77
79
82 inline AmiSortBy GetSortBy() const { return m_sortBy; }
83 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
84 inline void SetSortBy(AmiSortBy value) {
85 m_sortByHasBeenSet = true;
86 m_sortBy = value;
87 }
89 SetSortBy(value);
90 return *this;
91 }
93 private:
95
96 SortOrder m_sortOrder{SortOrder::NOT_SET};
97
99 bool m_amisHasBeenSet = false;
100 bool m_sortOrderHasBeenSet = false;
101 bool m_sortByHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Inspector2
106} // namespace Aws
AmiAggregation & WithAmis(AmisT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API AmiAggregation(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API AmiAggregation()=default
AWS_INSPECTOR2_API AmiAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< StringFilter > & GetAmis() const
AmiAggregation & AddAmis(AmisT &&value)
AmiAggregation & WithSortOrder(SortOrder value)
AmiAggregation & WithSortBy(AmiSortBy value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue