AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Insight.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/AwsSecurityFindingFilters.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
33 class Insight
34 {
35 public:
36 AWS_SECURITYHUB_API Insight() = default;
37 AWS_SECURITYHUB_API Insight(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Insight& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetInsightArn() const { return m_insightArn; }
47 inline bool InsightArnHasBeenSet() const { return m_insightArnHasBeenSet; }
48 template<typename InsightArnT = Aws::String>
49 void SetInsightArn(InsightArnT&& value) { m_insightArnHasBeenSet = true; m_insightArn = std::forward<InsightArnT>(value); }
50 template<typename InsightArnT = Aws::String>
51 Insight& WithInsightArn(InsightArnT&& value) { SetInsightArn(std::forward<InsightArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 Insight& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
73 inline const AwsSecurityFindingFilters& GetFilters() const { return m_filters; }
74 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
75 template<typename FiltersT = AwsSecurityFindingFilters>
76 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
77 template<typename FiltersT = AwsSecurityFindingFilters>
78 Insight& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
80
82
88 inline const Aws::String& GetGroupByAttribute() const { return m_groupByAttribute; }
89 inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
90 template<typename GroupByAttributeT = Aws::String>
91 void SetGroupByAttribute(GroupByAttributeT&& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = std::forward<GroupByAttributeT>(value); }
92 template<typename GroupByAttributeT = Aws::String>
93 Insight& WithGroupByAttribute(GroupByAttributeT&& value) { SetGroupByAttribute(std::forward<GroupByAttributeT>(value)); return *this;}
95 private:
96
97 Aws::String m_insightArn;
98 bool m_insightArnHasBeenSet = false;
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
104 bool m_filtersHasBeenSet = false;
105
106 Aws::String m_groupByAttribute;
107 bool m_groupByAttributeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SecurityHub
112} // namespace Aws
const AwsSecurityFindingFilters & GetFilters() const
Definition Insight.h:73
Insight & WithFilters(FiltersT &&value)
Definition Insight.h:78
Insight & WithInsightArn(InsightArnT &&value)
Definition Insight.h:51
void SetGroupByAttribute(GroupByAttributeT &&value)
Definition Insight.h:91
Insight & WithGroupByAttribute(GroupByAttributeT &&value)
Definition Insight.h:93
void SetInsightArn(InsightArnT &&value)
Definition Insight.h:49
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:46
const Aws::String & GetGroupByAttribute() const
Definition Insight.h:88
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:47
void SetFilters(FiltersT &&value)
Definition Insight.h:76
Insight & WithName(NameT &&value)
Definition Insight.h:63
AWS_SECURITYHUB_API Insight()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool GroupByAttributeHasBeenSet() const
Definition Insight.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue