AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateInsightRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsSecurityFindingFilters.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityHub {
16namespace Model {
17
21 public:
22 AWS_SECURITYHUB_API CreateInsightRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateInsight"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
56 inline const AwsSecurityFindingFilters& GetFilters() const { return m_filters; }
57 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
58 template <typename FiltersT = AwsSecurityFindingFilters>
59 void SetFilters(FiltersT&& value) {
60 m_filtersHasBeenSet = true;
61 m_filters = std::forward<FiltersT>(value);
62 }
63 template <typename FiltersT = AwsSecurityFindingFilters>
64 CreateInsightRequest& WithFilters(FiltersT&& value) {
65 SetFilters(std::forward<FiltersT>(value));
66 return *this;
67 }
69
71
77 inline const Aws::String& GetGroupByAttribute() const { return m_groupByAttribute; }
78 inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
79 template <typename GroupByAttributeT = Aws::String>
80 void SetGroupByAttribute(GroupByAttributeT&& value) {
81 m_groupByAttributeHasBeenSet = true;
82 m_groupByAttribute = std::forward<GroupByAttributeT>(value);
83 }
84 template <typename GroupByAttributeT = Aws::String>
85 CreateInsightRequest& WithGroupByAttribute(GroupByAttributeT&& value) {
86 SetGroupByAttribute(std::forward<GroupByAttributeT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_name;
92
94
95 Aws::String m_groupByAttribute;
96 bool m_nameHasBeenSet = false;
97 bool m_filtersHasBeenSet = false;
98 bool m_groupByAttributeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SecurityHub
103} // namespace Aws
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const AwsSecurityFindingFilters & GetFilters() const
AWS_SECURITYHUB_API CreateInsightRequest()=default
CreateInsightRequest & WithName(NameT &&value)
CreateInsightRequest & WithGroupByAttribute(GroupByAttributeT &&value)
void SetGroupByAttribute(GroupByAttributeT &&value)
CreateInsightRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String