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

The insight result values returned by the GetInsightResults * operation.

See Also:

AWS * API Reference

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

The value of the attribute that the findings are grouped by for the insight * whose results are returned by the GetInsightResults operation.

*/ inline const Aws::String& GetGroupByAttributeValue() const{ return m_groupByAttributeValue; } /** *

The value of the attribute that the findings are grouped by for the insight * whose results are returned by the GetInsightResults operation.

*/ inline bool GroupByAttributeValueHasBeenSet() const { return m_groupByAttributeValueHasBeenSet; } /** *

The value of the attribute that the findings are grouped by for the insight * whose results are returned by the GetInsightResults operation.

*/ inline void SetGroupByAttributeValue(const Aws::String& value) { m_groupByAttributeValueHasBeenSet = true; m_groupByAttributeValue = value; } /** *

The value of the attribute that the findings are grouped by for the insight * whose results are returned by the GetInsightResults operation.

*/ inline void SetGroupByAttributeValue(Aws::String&& value) { m_groupByAttributeValueHasBeenSet = true; m_groupByAttributeValue = std::move(value); } /** *

The value of the attribute that the findings are grouped by for the insight * whose results are returned by the GetInsightResults operation.

*/ inline void SetGroupByAttributeValue(const char* value) { m_groupByAttributeValueHasBeenSet = true; m_groupByAttributeValue.assign(value); } /** *

The value of the attribute that the findings are grouped by for the insight * whose results are returned by the GetInsightResults operation.

*/ inline InsightResultValue& WithGroupByAttributeValue(const Aws::String& value) { SetGroupByAttributeValue(value); return *this;} /** *

The value of the attribute that the findings are grouped by for the insight * whose results are returned by the GetInsightResults operation.

*/ inline InsightResultValue& WithGroupByAttributeValue(Aws::String&& value) { SetGroupByAttributeValue(std::move(value)); return *this;} /** *

The value of the attribute that the findings are grouped by for the insight * whose results are returned by the GetInsightResults operation.

*/ inline InsightResultValue& WithGroupByAttributeValue(const char* value) { SetGroupByAttributeValue(value); return *this;} /** *

The number of findings returned for each * GroupByAttributeValue.

*/ inline int GetCount() const{ return m_count; } /** *

The number of findings returned for each * GroupByAttributeValue.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of findings returned for each * GroupByAttributeValue.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of findings returned for each * GroupByAttributeValue.

*/ inline InsightResultValue& WithCount(int value) { SetCount(value); return *this;} private: Aws::String m_groupByAttributeValue; bool m_groupByAttributeValueHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws