AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateInsightRequest.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/AwsSecurityFindingFilters.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SecurityHub
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SECURITYHUB_API CreateInsightRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateInsight"; }
32
33 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template<typename NameT = Aws::String>
43 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
44 template<typename NameT = Aws::String>
45 CreateInsightRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
47
49
54 inline const AwsSecurityFindingFilters& GetFilters() const { return m_filters; }
55 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
56 template<typename FiltersT = AwsSecurityFindingFilters>
57 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
58 template<typename FiltersT = AwsSecurityFindingFilters>
59 CreateInsightRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
61
63
69 inline const Aws::String& GetGroupByAttribute() const { return m_groupByAttribute; }
70 inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
71 template<typename GroupByAttributeT = Aws::String>
72 void SetGroupByAttribute(GroupByAttributeT&& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = std::forward<GroupByAttributeT>(value); }
73 template<typename GroupByAttributeT = Aws::String>
74 CreateInsightRequest& WithGroupByAttribute(GroupByAttributeT&& value) { SetGroupByAttribute(std::forward<GroupByAttributeT>(value)); return *this;}
76 private:
77
78 Aws::String m_name;
79 bool m_nameHasBeenSet = false;
80
82 bool m_filtersHasBeenSet = false;
83
84 Aws::String m_groupByAttribute;
85 bool m_groupByAttributeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SecurityHub
90} // 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