/**
* 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 SecurityHub
{
namespace Model
{
/**
* The insight results returned by the GetInsightResults
* operation.
See Also:
AWS
* API Reference
*/
class InsightResults
{
public:
AWS_SECURITYHUB_API InsightResults();
AWS_SECURITYHUB_API InsightResults(Aws::Utils::Json::JsonView jsonValue);
AWS_SECURITYHUB_API InsightResults& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the insight whose results are returned by the
* GetInsightResults
operation.
*/
inline const Aws::String& GetInsightArn() const{ return m_insightArn; }
/**
* The ARN of the insight whose results are returned by the
* GetInsightResults
operation.
*/
inline bool InsightArnHasBeenSet() const { return m_insightArnHasBeenSet; }
/**
* The ARN of the insight whose results are returned by the
* GetInsightResults
operation.
*/
inline void SetInsightArn(const Aws::String& value) { m_insightArnHasBeenSet = true; m_insightArn = value; }
/**
* The ARN of the insight whose results are returned by the
* GetInsightResults
operation.
*/
inline void SetInsightArn(Aws::String&& value) { m_insightArnHasBeenSet = true; m_insightArn = std::move(value); }
/**
* The ARN of the insight whose results are returned by the
* GetInsightResults
operation.
*/
inline void SetInsightArn(const char* value) { m_insightArnHasBeenSet = true; m_insightArn.assign(value); }
/**
* The ARN of the insight whose results are returned by the
* GetInsightResults
operation.
*/
inline InsightResults& WithInsightArn(const Aws::String& value) { SetInsightArn(value); return *this;}
/**
* The ARN of the insight whose results are returned by the
* GetInsightResults
operation.
*/
inline InsightResults& WithInsightArn(Aws::String&& value) { SetInsightArn(std::move(value)); return *this;}
/**
* The ARN of the insight whose results are returned by the
* GetInsightResults
operation.
*/
inline InsightResults& WithInsightArn(const char* value) { SetInsightArn(value); return *this;}
/**
* The attribute that the findings are grouped by for the insight whose results
* are returned by the GetInsightResults
operation.
*/
inline const Aws::String& GetGroupByAttribute() const{ return m_groupByAttribute; }
/**
* The attribute that the findings are grouped by for the insight whose results
* are returned by the GetInsightResults
operation.
*/
inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
/**
* The attribute that the findings are grouped by for the insight whose results
* are returned by the GetInsightResults
operation.
*/
inline void SetGroupByAttribute(const Aws::String& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = value; }
/**
* The attribute that the findings are grouped by for the insight whose results
* are returned by the GetInsightResults
operation.
*/
inline void SetGroupByAttribute(Aws::String&& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = std::move(value); }
/**
* The attribute that the findings are grouped by for the insight whose results
* are returned by the GetInsightResults
operation.
*/
inline void SetGroupByAttribute(const char* value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute.assign(value); }
/**
* The attribute that the findings are grouped by for the insight whose results
* are returned by the GetInsightResults
operation.
*/
inline InsightResults& WithGroupByAttribute(const Aws::String& value) { SetGroupByAttribute(value); return *this;}
/**
* The attribute that the findings are grouped by for the insight whose results
* are returned by the GetInsightResults
operation.
*/
inline InsightResults& WithGroupByAttribute(Aws::String&& value) { SetGroupByAttribute(std::move(value)); return *this;}
/**
* The attribute that the findings are grouped by for the insight whose results
* are returned by the GetInsightResults
operation.
*/
inline InsightResults& WithGroupByAttribute(const char* value) { SetGroupByAttribute(value); return *this;}
/**
* The list of insight result values returned by the
* GetInsightResults
operation.
*/
inline const Aws::Vector& GetResultValues() const{ return m_resultValues; }
/**
* The list of insight result values returned by the
* GetInsightResults
operation.
*/
inline bool ResultValuesHasBeenSet() const { return m_resultValuesHasBeenSet; }
/**
* The list of insight result values returned by the
* GetInsightResults
operation.
*/
inline void SetResultValues(const Aws::Vector& value) { m_resultValuesHasBeenSet = true; m_resultValues = value; }
/**
* The list of insight result values returned by the
* GetInsightResults
operation.
*/
inline void SetResultValues(Aws::Vector&& value) { m_resultValuesHasBeenSet = true; m_resultValues = std::move(value); }
/**
* The list of insight result values returned by the
* GetInsightResults
operation.
*/
inline InsightResults& WithResultValues(const Aws::Vector& value) { SetResultValues(value); return *this;}
/**
* The list of insight result values returned by the
* GetInsightResults
operation.
*/
inline InsightResults& WithResultValues(Aws::Vector&& value) { SetResultValues(std::move(value)); return *this;}
/**
* The list of insight result values returned by the
* GetInsightResults
operation.
*/
inline InsightResults& AddResultValues(const InsightResultValue& value) { m_resultValuesHasBeenSet = true; m_resultValues.push_back(value); return *this; }
/**
* The list of insight result values returned by the
* GetInsightResults
operation.
*/
inline InsightResults& AddResultValues(InsightResultValue&& value) { m_resultValuesHasBeenSet = true; m_resultValues.push_back(std::move(value)); return *this; }
private:
Aws::String m_insightArn;
bool m_insightArnHasBeenSet = false;
Aws::String m_groupByAttribute;
bool m_groupByAttributeHasBeenSet = false;
Aws::Vector m_resultValues;
bool m_resultValuesHasBeenSet = false;
};
} // namespace Model
} // namespace SecurityHub
} // namespace Aws