AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AmiAggregation.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/AmiSortBy.h>
10#include <aws/inspector2/model/SortOrder.h>
11#include <aws/inspector2/model/StringFilter.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 Inspector2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR2_API AmiAggregation() = default;
39 AWS_INSPECTOR2_API AmiAggregation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR2_API AmiAggregation& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<StringFilter>& GetAmis() const { return m_amis; }
49 inline bool AmisHasBeenSet() const { return m_amisHasBeenSet; }
50 template<typename AmisT = Aws::Vector<StringFilter>>
51 void SetAmis(AmisT&& value) { m_amisHasBeenSet = true; m_amis = std::forward<AmisT>(value); }
52 template<typename AmisT = Aws::Vector<StringFilter>>
53 AmiAggregation& WithAmis(AmisT&& value) { SetAmis(std::forward<AmisT>(value)); return *this;}
54 template<typename AmisT = StringFilter>
55 AmiAggregation& AddAmis(AmisT&& value) { m_amisHasBeenSet = true; m_amis.emplace_back(std::forward<AmisT>(value)); return *this; }
57
59
62 inline AmiSortBy GetSortBy() const { return m_sortBy; }
63 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
64 inline void SetSortBy(AmiSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
65 inline AmiAggregation& WithSortBy(AmiSortBy value) { SetSortBy(value); return *this;}
67
69
72 inline SortOrder GetSortOrder() const { return m_sortOrder; }
73 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
74 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
75 inline AmiAggregation& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
77 private:
78
80 bool m_amisHasBeenSet = false;
81
83 bool m_sortByHasBeenSet = false;
84
85 SortOrder m_sortOrder{SortOrder::NOT_SET};
86 bool m_sortOrderHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Inspector2
91} // 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