AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InsightResults.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/InsightResultValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API InsightResults() = default;
38 AWS_SECURITYHUB_API InsightResults(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API InsightResults& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetInsightArn() const { return m_insightArn; }
49 inline bool InsightArnHasBeenSet() const { return m_insightArnHasBeenSet; }
50 template<typename InsightArnT = Aws::String>
51 void SetInsightArn(InsightArnT&& value) { m_insightArnHasBeenSet = true; m_insightArn = std::forward<InsightArnT>(value); }
52 template<typename InsightArnT = Aws::String>
53 InsightResults& WithInsightArn(InsightArnT&& value) { SetInsightArn(std::forward<InsightArnT>(value)); return *this;}
55
57
61 inline const Aws::String& GetGroupByAttribute() const { return m_groupByAttribute; }
62 inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
63 template<typename GroupByAttributeT = Aws::String>
64 void SetGroupByAttribute(GroupByAttributeT&& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = std::forward<GroupByAttributeT>(value); }
65 template<typename GroupByAttributeT = Aws::String>
66 InsightResults& WithGroupByAttribute(GroupByAttributeT&& value) { SetGroupByAttribute(std::forward<GroupByAttributeT>(value)); return *this;}
68
70
74 inline const Aws::Vector<InsightResultValue>& GetResultValues() const { return m_resultValues; }
75 inline bool ResultValuesHasBeenSet() const { return m_resultValuesHasBeenSet; }
76 template<typename ResultValuesT = Aws::Vector<InsightResultValue>>
77 void SetResultValues(ResultValuesT&& value) { m_resultValuesHasBeenSet = true; m_resultValues = std::forward<ResultValuesT>(value); }
78 template<typename ResultValuesT = Aws::Vector<InsightResultValue>>
79 InsightResults& WithResultValues(ResultValuesT&& value) { SetResultValues(std::forward<ResultValuesT>(value)); return *this;}
80 template<typename ResultValuesT = InsightResultValue>
81 InsightResults& AddResultValues(ResultValuesT&& value) { m_resultValuesHasBeenSet = true; m_resultValues.emplace_back(std::forward<ResultValuesT>(value)); return *this; }
83 private:
84
85 Aws::String m_insightArn;
86 bool m_insightArnHasBeenSet = false;
87
88 Aws::String m_groupByAttribute;
89 bool m_groupByAttributeHasBeenSet = false;
90
92 bool m_resultValuesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SecurityHub
97} // namespace Aws
InsightResults & WithInsightArn(InsightArnT &&value)
AWS_SECURITYHUB_API InsightResults & operator=(Aws::Utils::Json::JsonView jsonValue)
InsightResults & WithGroupByAttribute(GroupByAttributeT &&value)
const Aws::String & GetInsightArn() const
void SetGroupByAttribute(GroupByAttributeT &&value)
void SetResultValues(ResultValuesT &&value)
AWS_SECURITYHUB_API InsightResults()=default
AWS_SECURITYHUB_API InsightResults(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetGroupByAttribute() const
InsightResults & AddResultValues(ResultValuesT &&value)
void SetInsightArn(InsightArnT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
InsightResults & WithResultValues(ResultValuesT &&value)
const Aws::Vector< InsightResultValue > & GetResultValues() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue