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

A user-defined set of one or more filters on which to aggregate inventory * data. Groups return a count of resources that match and don't match the * specified criteria.

See Also:

AWS * API Reference

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

The name of the group.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the group.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the group.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the group.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the group.

*/ inline InventoryGroup& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the group.

*/ inline InventoryGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the group.

*/ inline InventoryGroup& WithName(const char* value) { SetName(value); return *this;} /** *

Filters define the criteria for the group. The matchingCount * field displays the number of resources that match the criteria. The * notMatchingCount field displays the number of resources that don't * match the criteria.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

Filters define the criteria for the group. The matchingCount * field displays the number of resources that match the criteria. The * notMatchingCount field displays the number of resources that don't * match the criteria.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Filters define the criteria for the group. The matchingCount * field displays the number of resources that match the criteria. The * notMatchingCount field displays the number of resources that don't * match the criteria.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Filters define the criteria for the group. The matchingCount * field displays the number of resources that match the criteria. The * notMatchingCount field displays the number of resources that don't * match the criteria.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Filters define the criteria for the group. The matchingCount * field displays the number of resources that match the criteria. The * notMatchingCount field displays the number of resources that don't * match the criteria.

*/ inline InventoryGroup& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

Filters define the criteria for the group. The matchingCount * field displays the number of resources that match the criteria. The * notMatchingCount field displays the number of resources that don't * match the criteria.

*/ inline InventoryGroup& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

Filters define the criteria for the group. The matchingCount * field displays the number of resources that match the criteria. The * notMatchingCount field displays the number of resources that don't * match the criteria.

*/ inline InventoryGroup& AddFilters(const InventoryFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

Filters define the criteria for the group. The matchingCount * field displays the number of resources that match the criteria. The * notMatchingCount field displays the number of resources that don't * match the criteria.

*/ inline InventoryGroup& AddFilters(InventoryFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws