AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchImportFindingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsSecurityFinding.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityHub {
16namespace Model {
17
21 public:
22 AWS_SECURITYHUB_API BatchImportFindingsRequest() = 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 "BatchImportFindings"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
40 inline const Aws::Vector<AwsSecurityFinding>& GetFindings() const { return m_findings; }
41 inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
42 template <typename FindingsT = Aws::Vector<AwsSecurityFinding>>
43 void SetFindings(FindingsT&& value) {
44 m_findingsHasBeenSet = true;
45 m_findings = std::forward<FindingsT>(value);
46 }
47 template <typename FindingsT = Aws::Vector<AwsSecurityFinding>>
49 SetFindings(std::forward<FindingsT>(value));
50 return *this;
51 }
52 template <typename FindingsT = AwsSecurityFinding>
54 m_findingsHasBeenSet = true;
55 m_findings.emplace_back(std::forward<FindingsT>(value));
56 return *this;
57 }
59 private:
61 bool m_findingsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace SecurityHub
66} // namespace Aws
AWS_SECURITYHUB_API BatchImportFindingsRequest()=default
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
BatchImportFindingsRequest & AddFindings(FindingsT &&value)
BatchImportFindingsRequest & WithFindings(FindingsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< AwsSecurityFinding > & GetFindings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector