AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
43 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
44 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
45 inline CreateInsightRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
46 inline CreateInsightRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
47 inline CreateInsightRequest& WithName(const char* value) { SetName(value); return *this;}
49
51
56 inline const AwsSecurityFindingFilters& GetFilters() const{ return m_filters; }
57 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
58 inline void SetFilters(const AwsSecurityFindingFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
59 inline void SetFilters(AwsSecurityFindingFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
60 inline CreateInsightRequest& WithFilters(const AwsSecurityFindingFilters& value) { SetFilters(value); return *this;}
61 inline CreateInsightRequest& WithFilters(AwsSecurityFindingFilters&& value) { SetFilters(std::move(value)); return *this;}
63
65
71 inline const Aws::String& GetGroupByAttribute() const{ return m_groupByAttribute; }
72 inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
73 inline void SetGroupByAttribute(const Aws::String& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = value; }
74 inline void SetGroupByAttribute(Aws::String&& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = std::move(value); }
75 inline void SetGroupByAttribute(const char* value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute.assign(value); }
76 inline CreateInsightRequest& WithGroupByAttribute(const Aws::String& value) { SetGroupByAttribute(value); return *this;}
77 inline CreateInsightRequest& WithGroupByAttribute(Aws::String&& value) { SetGroupByAttribute(std::move(value)); return *this;}
78 inline CreateInsightRequest& WithGroupByAttribute(const char* value) { SetGroupByAttribute(value); return *this;}
80 private:
81
82 Aws::String m_name;
83 bool m_nameHasBeenSet = false;
84
86 bool m_filtersHasBeenSet = false;
87
88 Aws::String m_groupByAttribute;
89 bool m_groupByAttributeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SecurityHub
94} // namespace Aws
CreateInsightRequest & WithName(const Aws::String &value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
CreateInsightRequest & WithGroupByAttribute(const char *value)
virtual const char * GetServiceRequestName() const override
CreateInsightRequest & WithFilters(const AwsSecurityFindingFilters &value)
const AwsSecurityFindingFilters & GetFilters() const
CreateInsightRequest & WithGroupByAttribute(const Aws::String &value)
void SetFilters(const AwsSecurityFindingFilters &value)
CreateInsightRequest & WithFilters(AwsSecurityFindingFilters &&value)
void SetGroupByAttribute(const Aws::String &value)
CreateInsightRequest & WithName(Aws::String &&value)
void SetFilters(AwsSecurityFindingFilters &&value)
CreateInsightRequest & WithGroupByAttribute(Aws::String &&value)
CreateInsightRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String