AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
InsightResults.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/InsightResultValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API InsightResults() = default;
33 AWS_SECURITYHUB_API InsightResults(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API InsightResults& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetInsightArn() const { return m_insightArn; }
43 inline bool InsightArnHasBeenSet() const { return m_insightArnHasBeenSet; }
44 template <typename InsightArnT = Aws::String>
45 void SetInsightArn(InsightArnT&& value) {
46 m_insightArnHasBeenSet = true;
47 m_insightArn = std::forward<InsightArnT>(value);
48 }
49 template <typename InsightArnT = Aws::String>
50 InsightResults& WithInsightArn(InsightArnT&& value) {
51 SetInsightArn(std::forward<InsightArnT>(value));
52 return *this;
53 }
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) {
65 m_groupByAttributeHasBeenSet = true;
66 m_groupByAttribute = std::forward<GroupByAttributeT>(value);
67 }
68 template <typename GroupByAttributeT = Aws::String>
69 InsightResults& WithGroupByAttribute(GroupByAttributeT&& value) {
70 SetGroupByAttribute(std::forward<GroupByAttributeT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<InsightResultValue>& GetResultValues() const { return m_resultValues; }
81 inline bool ResultValuesHasBeenSet() const { return m_resultValuesHasBeenSet; }
82 template <typename ResultValuesT = Aws::Vector<InsightResultValue>>
83 void SetResultValues(ResultValuesT&& value) {
84 m_resultValuesHasBeenSet = true;
85 m_resultValues = std::forward<ResultValuesT>(value);
86 }
87 template <typename ResultValuesT = Aws::Vector<InsightResultValue>>
88 InsightResults& WithResultValues(ResultValuesT&& value) {
89 SetResultValues(std::forward<ResultValuesT>(value));
90 return *this;
91 }
92 template <typename ResultValuesT = InsightResultValue>
93 InsightResults& AddResultValues(ResultValuesT&& value) {
94 m_resultValuesHasBeenSet = true;
95 m_resultValues.emplace_back(std::forward<ResultValuesT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_insightArn;
101
102 Aws::String m_groupByAttribute;
103
104 Aws::Vector<InsightResultValue> m_resultValues;
105 bool m_insightArnHasBeenSet = false;
106 bool m_groupByAttributeHasBeenSet = false;
107 bool m_resultValuesHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace SecurityHub
112} // 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