AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateInsightRequest.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 UpdateInsightRequest() = 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 "UpdateInsight"; }
32
33 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
34
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) { m_insightArnHasBeenSet = true; m_insightArn = std::forward<InsightArnT>(value); }
44 template<typename InsightArnT = Aws::String>
45 UpdateInsightRequest& WithInsightArn(InsightArnT&& value) { SetInsightArn(std::forward<InsightArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 UpdateInsightRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
64 inline const AwsSecurityFindingFilters& GetFilters() const { return m_filters; }
65 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
66 template<typename FiltersT = AwsSecurityFindingFilters>
67 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
68 template<typename FiltersT = AwsSecurityFindingFilters>
69 UpdateInsightRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
71
73
76 inline const Aws::String& GetGroupByAttribute() const { return m_groupByAttribute; }
77 inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
78 template<typename GroupByAttributeT = Aws::String>
79 void SetGroupByAttribute(GroupByAttributeT&& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = std::forward<GroupByAttributeT>(value); }
80 template<typename GroupByAttributeT = Aws::String>
81 UpdateInsightRequest& WithGroupByAttribute(GroupByAttributeT&& value) { SetGroupByAttribute(std::forward<GroupByAttributeT>(value)); return *this;}
83 private:
84
85 Aws::String m_insightArn;
86 bool m_insightArnHasBeenSet = false;
87
88 Aws::String m_name;
89 bool m_nameHasBeenSet = false;
90
92 bool m_filtersHasBeenSet = false;
93
94 Aws::String m_groupByAttribute;
95 bool m_groupByAttributeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SecurityHub
100} // 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