AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAmis(const Aws::Vector<StringFilter>& value) { m_amisHasBeenSet = true; m_amis = value; }
51 inline void SetAmis(Aws::Vector<StringFilter>&& value) { m_amisHasBeenSet = true; m_amis = std::move(value); }
52 inline AmiAggregation& WithAmis(const Aws::Vector<StringFilter>& value) { SetAmis(value); return *this;}
53 inline AmiAggregation& WithAmis(Aws::Vector<StringFilter>&& value) { SetAmis(std::move(value)); return *this;}
54 inline AmiAggregation& AddAmis(const StringFilter& value) { m_amisHasBeenSet = true; m_amis.push_back(value); return *this; }
55 inline AmiAggregation& AddAmis(StringFilter&& value) { m_amisHasBeenSet = true; m_amis.push_back(std::move(value)); return *this; }
57
59
62 inline const AmiSortBy& GetSortBy() const{ return m_sortBy; }
63 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
64 inline void SetSortBy(const AmiSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
65 inline void SetSortBy(AmiSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
66 inline AmiAggregation& WithSortBy(const AmiSortBy& value) { SetSortBy(value); return *this;}
67 inline AmiAggregation& WithSortBy(AmiSortBy&& value) { SetSortBy(std::move(value)); return *this;}
69
71
74 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
75 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
76 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
77 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
78 inline AmiAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
79 inline AmiAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
81 private:
82
84 bool m_amisHasBeenSet = false;
85
86 AmiSortBy m_sortBy;
87 bool m_sortByHasBeenSet = false;
88
89 SortOrder m_sortOrder;
90 bool m_sortOrderHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Inspector2
95} // namespace Aws
void SetSortBy(const AmiSortBy &value)
void SetAmis(Aws::Vector< StringFilter > &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const SortOrder & GetSortOrder() const
AmiAggregation & AddAmis(const StringFilter &value)
AmiAggregation & WithSortOrder(SortOrder &&value)
AmiAggregation & WithSortBy(const AmiSortBy &value)
AmiAggregation & WithAmis(const Aws::Vector< StringFilter > &value)
AWS_INSPECTOR2_API AmiAggregation(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API AmiAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
AmiAggregation & WithAmis(Aws::Vector< StringFilter > &&value)
const Aws::Vector< StringFilter > & GetAmis() const
AmiAggregation & WithSortBy(AmiSortBy &&value)
void SetAmis(const Aws::Vector< StringFilter > &value)
AmiAggregation & WithSortOrder(const SortOrder &value)
AmiAggregation & AddAmis(StringFilter &&value)
void SetSortOrder(const SortOrder &value)
const AmiSortBy & GetSortBy() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue