/** * 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 GuardDuty { namespace Model { /** *

Contains information about the criteria used to query usage * statistics.

See Also:

AWS * API Reference

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

The account IDs to aggregate usage statistics from.

*/ inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } /** *

The account IDs to aggregate usage statistics from.

*/ inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; } /** *

The account IDs to aggregate usage statistics from.

*/ inline void SetAccountIds(const Aws::Vector& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; } /** *

The account IDs to aggregate usage statistics from.

*/ inline void SetAccountIds(Aws::Vector&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); } /** *

The account IDs to aggregate usage statistics from.

*/ inline UsageCriteria& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} /** *

The account IDs to aggregate usage statistics from.

*/ inline UsageCriteria& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} /** *

The account IDs to aggregate usage statistics from.

*/ inline UsageCriteria& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

The account IDs to aggregate usage statistics from.

*/ inline UsageCriteria& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; } /** *

The account IDs to aggregate usage statistics from.

*/ inline UsageCriteria& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; } /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline UsageCriteria& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline UsageCriteria& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline UsageCriteria& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline UsageCriteria& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } /** *

The resources to aggregate usage statistics from. Only accepts exact resource * names.

*/ inline UsageCriteria& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

The features to aggregate usage statistics from.

*/ inline const Aws::Vector& GetFeatures() const{ return m_features; } /** *

The features to aggregate usage statistics from.

*/ inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; } /** *

The features to aggregate usage statistics from.

*/ inline void SetFeatures(const Aws::Vector& value) { m_featuresHasBeenSet = true; m_features = value; } /** *

The features to aggregate usage statistics from.

*/ inline void SetFeatures(Aws::Vector&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); } /** *

The features to aggregate usage statistics from.

*/ inline UsageCriteria& WithFeatures(const Aws::Vector& value) { SetFeatures(value); return *this;} /** *

The features to aggregate usage statistics from.

*/ inline UsageCriteria& WithFeatures(Aws::Vector&& value) { SetFeatures(std::move(value)); return *this;} /** *

The features to aggregate usage statistics from.

*/ inline UsageCriteria& AddFeatures(const UsageFeature& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; } /** *

The features to aggregate usage statistics from.

*/ inline UsageCriteria& AddFeatures(UsageFeature&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; } private: Aws::Vector m_accountIds; bool m_accountIdsHasBeenSet = false; Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; Aws::Vector m_features; bool m_featuresHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws