/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector2 { namespace Model { /** *

The details that define an aggregation based on Amazon machine images * (AMIs).

See Also:

AWS * API Reference

*/ class AmiAggregation { public: AWS_INSPECTOR2_API AmiAggregation(); AWS_INSPECTOR2_API AmiAggregation(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_API AmiAggregation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The IDs of AMIs to aggregate findings for.

*/ inline const Aws::Vector& GetAmis() const{ return m_amis; } /** *

The IDs of AMIs to aggregate findings for.

*/ inline bool AmisHasBeenSet() const { return m_amisHasBeenSet; } /** *

The IDs of AMIs to aggregate findings for.

*/ inline void SetAmis(const Aws::Vector& value) { m_amisHasBeenSet = true; m_amis = value; } /** *

The IDs of AMIs to aggregate findings for.

*/ inline void SetAmis(Aws::Vector&& value) { m_amisHasBeenSet = true; m_amis = std::move(value); } /** *

The IDs of AMIs to aggregate findings for.

*/ inline AmiAggregation& WithAmis(const Aws::Vector& value) { SetAmis(value); return *this;} /** *

The IDs of AMIs to aggregate findings for.

*/ inline AmiAggregation& WithAmis(Aws::Vector&& value) { SetAmis(std::move(value)); return *this;} /** *

The IDs of AMIs to aggregate findings for.

*/ inline AmiAggregation& AddAmis(const StringFilter& value) { m_amisHasBeenSet = true; m_amis.push_back(value); return *this; } /** *

The IDs of AMIs to aggregate findings for.

*/ inline AmiAggregation& AddAmis(StringFilter&& value) { m_amisHasBeenSet = true; m_amis.push_back(std::move(value)); return *this; } /** *

The value to sort results by.

*/ inline const AmiSortBy& GetSortBy() const{ return m_sortBy; } /** *

The value to sort results by.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

The value to sort results by.

*/ inline void SetSortBy(const AmiSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The value to sort results by.

*/ inline void SetSortBy(AmiSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

The value to sort results by.

*/ inline AmiAggregation& WithSortBy(const AmiSortBy& value) { SetSortBy(value); return *this;} /** *

The value to sort results by.

*/ inline AmiAggregation& WithSortBy(AmiSortBy&& value) { SetSortBy(std::move(value)); return *this;} /** *

The order to sort results by.

*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *

The order to sort results by.

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

The order to sort results by.

*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

The order to sort results by.

*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

The order to sort results by.

*/ inline AmiAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

The order to sort results by.

*/ inline AmiAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Vector m_amis; bool m_amisHasBeenSet = false; AmiSortBy m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws