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

Contains information about a Security Hub insight.

See Also:

* AWS * API Reference

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

The ARN of a Security Hub insight.

*/ inline const Aws::String& GetInsightArn() const{ return m_insightArn; } /** *

The ARN of a Security Hub insight.

*/ inline bool InsightArnHasBeenSet() const { return m_insightArnHasBeenSet; } /** *

The ARN of a Security Hub insight.

*/ inline void SetInsightArn(const Aws::String& value) { m_insightArnHasBeenSet = true; m_insightArn = value; } /** *

The ARN of a Security Hub insight.

*/ inline void SetInsightArn(Aws::String&& value) { m_insightArnHasBeenSet = true; m_insightArn = std::move(value); } /** *

The ARN of a Security Hub insight.

*/ inline void SetInsightArn(const char* value) { m_insightArnHasBeenSet = true; m_insightArn.assign(value); } /** *

The ARN of a Security Hub insight.

*/ inline Insight& WithInsightArn(const Aws::String& value) { SetInsightArn(value); return *this;} /** *

The ARN of a Security Hub insight.

*/ inline Insight& WithInsightArn(Aws::String&& value) { SetInsightArn(std::move(value)); return *this;} /** *

The ARN of a Security Hub insight.

*/ inline Insight& WithInsightArn(const char* value) { SetInsightArn(value); return *this;} /** *

The name of a Security Hub insight.

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

The name of a Security Hub insight.

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

The name of a Security Hub insight.

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

The name of a Security Hub insight.

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

The name of a Security Hub insight.

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

The name of a Security Hub insight.

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

The name of a Security Hub insight.

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

The name of a Security Hub insight.

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

One or more attributes used to filter the findings included in the insight. * The insight only includes findings that match the criteria defined in the * filters.

*/ inline const AwsSecurityFindingFilters& GetFilters() const{ return m_filters; } /** *

One or more attributes used to filter the findings included in the insight. * The insight only includes findings that match the criteria defined in the * filters.

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

One or more attributes used to filter the findings included in the insight. * The insight only includes findings that match the criteria defined in the * filters.

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

One or more attributes used to filter the findings included in the insight. * The insight only includes findings that match the criteria defined in the * filters.

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

One or more attributes used to filter the findings included in the insight. * The insight only includes findings that match the criteria defined in the * filters.

*/ inline Insight& WithFilters(const AwsSecurityFindingFilters& value) { SetFilters(value); return *this;} /** *

One or more attributes used to filter the findings included in the insight. * The insight only includes findings that match the criteria defined in the * filters.

*/ inline Insight& WithFilters(AwsSecurityFindingFilters&& value) { SetFilters(std::move(value)); return *this;} /** *

The grouping attribute for the insight's findings. Indicates how to group the * matching findings, and identifies the type of item that the insight applies to. * For example, if an insight is grouped by resource identifier, then the insight * produces a list of resource identifiers.

*/ inline const Aws::String& GetGroupByAttribute() const{ return m_groupByAttribute; } /** *

The grouping attribute for the insight's findings. Indicates how to group the * matching findings, and identifies the type of item that the insight applies to. * For example, if an insight is grouped by resource identifier, then the insight * produces a list of resource identifiers.

*/ inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; } /** *

The grouping attribute for the insight's findings. Indicates how to group the * matching findings, and identifies the type of item that the insight applies to. * For example, if an insight is grouped by resource identifier, then the insight * produces a list of resource identifiers.

*/ inline void SetGroupByAttribute(const Aws::String& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = value; } /** *

The grouping attribute for the insight's findings. Indicates how to group the * matching findings, and identifies the type of item that the insight applies to. * For example, if an insight is grouped by resource identifier, then the insight * produces a list of resource identifiers.

*/ inline void SetGroupByAttribute(Aws::String&& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = std::move(value); } /** *

The grouping attribute for the insight's findings. Indicates how to group the * matching findings, and identifies the type of item that the insight applies to. * For example, if an insight is grouped by resource identifier, then the insight * produces a list of resource identifiers.

*/ inline void SetGroupByAttribute(const char* value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute.assign(value); } /** *

The grouping attribute for the insight's findings. Indicates how to group the * matching findings, and identifies the type of item that the insight applies to. * For example, if an insight is grouped by resource identifier, then the insight * produces a list of resource identifiers.

*/ inline Insight& WithGroupByAttribute(const Aws::String& value) { SetGroupByAttribute(value); return *this;} /** *

The grouping attribute for the insight's findings. Indicates how to group the * matching findings, and identifies the type of item that the insight applies to. * For example, if an insight is grouped by resource identifier, then the insight * produces a list of resource identifiers.

*/ inline Insight& WithGroupByAttribute(Aws::String&& value) { SetGroupByAttribute(std::move(value)); return *this;} /** *

The grouping attribute for the insight's findings. Indicates how to group the * matching findings, and identifies the type of item that the insight applies to. * For example, if an insight is grouped by resource identifier, then the insight * produces a list of resource identifiers.

*/ inline Insight& WithGroupByAttribute(const char* value) { SetGroupByAttribute(value); return *this;} private: Aws::String m_insightArn; bool m_insightArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; AwsSecurityFindingFilters m_filters; bool m_filtersHasBeenSet = false; Aws::String m_groupByAttribute; bool m_groupByAttributeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws