AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetInsightsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityHub {
16namespace Model {
17
21 public:
22 AWS_SECURITYHUB_API GetInsightsRequest() = 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 "GetInsights"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::Vector<Aws::String>& GetInsightArns() const { return m_insightArns; }
39 inline bool InsightArnsHasBeenSet() const { return m_insightArnsHasBeenSet; }
40 template <typename InsightArnsT = Aws::Vector<Aws::String>>
41 void SetInsightArns(InsightArnsT&& value) {
42 m_insightArnsHasBeenSet = true;
43 m_insightArns = std::forward<InsightArnsT>(value);
44 }
45 template <typename InsightArnsT = Aws::Vector<Aws::String>>
46 GetInsightsRequest& WithInsightArns(InsightArnsT&& value) {
47 SetInsightArns(std::forward<InsightArnsT>(value));
48 return *this;
49 }
50 template <typename InsightArnsT = Aws::String>
51 GetInsightsRequest& AddInsightArns(InsightArnsT&& value) {
52 m_insightArnsHasBeenSet = true;
53 m_insightArns.emplace_back(std::forward<InsightArnsT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 template <typename NextTokenT = Aws::String>
69 void SetNextToken(NextTokenT&& value) {
70 m_nextTokenHasBeenSet = true;
71 m_nextToken = std::forward<NextTokenT>(value);
72 }
73 template <typename NextTokenT = Aws::String>
74 GetInsightsRequest& WithNextToken(NextTokenT&& value) {
75 SetNextToken(std::forward<NextTokenT>(value));
76 return *this;
77 }
79
81
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) {
87 m_maxResultsHasBeenSet = true;
88 m_maxResults = value;
89 }
91 SetMaxResults(value);
92 return *this;
93 }
95 private:
96 Aws::Vector<Aws::String> m_insightArns;
97
98 Aws::String m_nextToken;
99
100 int m_maxResults{0};
101 bool m_insightArnsHasBeenSet = false;
102 bool m_nextTokenHasBeenSet = false;
103 bool m_maxResultsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SecurityHub
108} // namespace Aws
GetInsightsRequest & AddInsightArns(InsightArnsT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_SECURITYHUB_API GetInsightsRequest()=default
GetInsightsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< Aws::String > & GetInsightArns() const
GetInsightsRequest & WithMaxResults(int value)
GetInsightsRequest & WithInsightArns(InsightArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector