AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Insight.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/AwsSecurityFindingFilters.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
29class Insight {
30 public:
31 AWS_SECURITYHUB_API Insight() = default;
32 AWS_SECURITYHUB_API Insight(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Insight& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetInsightArn() const { return m_insightArn; }
41 inline bool InsightArnHasBeenSet() const { return m_insightArnHasBeenSet; }
42 template <typename InsightArnT = Aws::String>
43 void SetInsightArn(InsightArnT&& value) {
44 m_insightArnHasBeenSet = true;
45 m_insightArn = std::forward<InsightArnT>(value);
46 }
47 template <typename InsightArnT = Aws::String>
48 Insight& WithInsightArn(InsightArnT&& value) {
49 SetInsightArn(std::forward<InsightArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 Insight& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
79 inline const AwsSecurityFindingFilters& GetFilters() const { return m_filters; }
80 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
81 template <typename FiltersT = AwsSecurityFindingFilters>
82 void SetFilters(FiltersT&& value) {
83 m_filtersHasBeenSet = true;
84 m_filters = std::forward<FiltersT>(value);
85 }
86 template <typename FiltersT = AwsSecurityFindingFilters>
87 Insight& WithFilters(FiltersT&& value) {
88 SetFilters(std::forward<FiltersT>(value));
89 return *this;
90 }
92
94
100 inline const Aws::String& GetGroupByAttribute() const { return m_groupByAttribute; }
101 inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
102 template <typename GroupByAttributeT = Aws::String>
103 void SetGroupByAttribute(GroupByAttributeT&& value) {
104 m_groupByAttributeHasBeenSet = true;
105 m_groupByAttribute = std::forward<GroupByAttributeT>(value);
106 }
107 template <typename GroupByAttributeT = Aws::String>
108 Insight& WithGroupByAttribute(GroupByAttributeT&& value) {
109 SetGroupByAttribute(std::forward<GroupByAttributeT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_insightArn;
115
116 Aws::String m_name;
117
119
120 Aws::String m_groupByAttribute;
121 bool m_insightArnHasBeenSet = false;
122 bool m_nameHasBeenSet = false;
123 bool m_filtersHasBeenSet = false;
124 bool m_groupByAttributeHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace SecurityHub
129} // namespace Aws
const AwsSecurityFindingFilters & GetFilters() const
Definition Insight.h:79
Insight & WithFilters(FiltersT &&value)
Definition Insight.h:87
Insight & WithInsightArn(InsightArnT &&value)
Definition Insight.h:48
void SetGroupByAttribute(GroupByAttributeT &&value)
Definition Insight.h:103
Insight & WithGroupByAttribute(GroupByAttributeT &&value)
Definition Insight.h:108
void SetInsightArn(InsightArnT &&value)
Definition Insight.h:43
void SetName(NameT &&value)
Definition Insight.h:61
const Aws::String & GetName() const
Definition Insight.h:58
const Aws::String & GetInsightArn() const
Definition Insight.h:40
const Aws::String & GetGroupByAttribute() const
Definition Insight.h:100
AWS_SECURITYHUB_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Insight(Aws::Utils::Json::JsonView jsonValue)
bool InsightArnHasBeenSet() const
Definition Insight.h:41
void SetFilters(FiltersT &&value)
Definition Insight.h:82
Insight & WithName(NameT &&value)
Definition Insight.h:66
AWS_SECURITYHUB_API Insight()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool GroupByAttributeHasBeenSet() const
Definition Insight.h:101
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue