AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateInsightRequest.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 UpdateInsightRequest() = 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 "UpdateInsight"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetInsightArn() const { return m_insightArn; }
37 inline bool InsightArnHasBeenSet() const { return m_insightArnHasBeenSet; }
38 template <typename InsightArnT = Aws::String>
39 void SetInsightArn(InsightArnT&& value) {
40 m_insightArnHasBeenSet = true;
41 m_insightArn = std::forward<InsightArnT>(value);
42 }
43 template <typename InsightArnT = Aws::String>
44 UpdateInsightRequest& WithInsightArn(InsightArnT&& value) {
45 SetInsightArn(std::forward<InsightArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const AwsSecurityFindingFilters& GetFilters() const { return m_filters; }
73 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
74 template <typename FiltersT = AwsSecurityFindingFilters>
75 void SetFilters(FiltersT&& value) {
76 m_filtersHasBeenSet = true;
77 m_filters = std::forward<FiltersT>(value);
78 }
79 template <typename FiltersT = AwsSecurityFindingFilters>
80 UpdateInsightRequest& WithFilters(FiltersT&& value) {
81 SetFilters(std::forward<FiltersT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetGroupByAttribute() const { return m_groupByAttribute; }
91 inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
92 template <typename GroupByAttributeT = Aws::String>
93 void SetGroupByAttribute(GroupByAttributeT&& value) {
94 m_groupByAttributeHasBeenSet = true;
95 m_groupByAttribute = std::forward<GroupByAttributeT>(value);
96 }
97 template <typename GroupByAttributeT = Aws::String>
98 UpdateInsightRequest& WithGroupByAttribute(GroupByAttributeT&& value) {
99 SetGroupByAttribute(std::forward<GroupByAttributeT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_insightArn;
105
106 Aws::String m_name;
107
109
110 Aws::String m_groupByAttribute;
111 bool m_insightArnHasBeenSet = false;
112 bool m_nameHasBeenSet = false;
113 bool m_filtersHasBeenSet = false;
114 bool m_groupByAttributeHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SecurityHub
119} // namespace Aws
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
UpdateInsightRequest & WithInsightArn(InsightArnT &&value)
const AwsSecurityFindingFilters & GetFilters() const
UpdateInsightRequest & WithGroupByAttribute(GroupByAttributeT &&value)
AWS_SECURITYHUB_API UpdateInsightRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateInsightRequest & WithFilters(FiltersT &&value)
void SetGroupByAttribute(GroupByAttributeT &&value)
UpdateInsightRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String