AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchUpdateFindingsV2Request.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#include <aws/securityhub/model/OcsfFindingIdentifier.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityHub {
17namespace Model {
18
22 public:
23 AWS_SECURITYHUB_API BatchUpdateFindingsV2Request() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchUpdateFindingsV2"; }
30
31 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
32
34
40 inline const Aws::Vector<Aws::String>& GetMetadataUids() const { return m_metadataUids; }
41 inline bool MetadataUidsHasBeenSet() const { return m_metadataUidsHasBeenSet; }
42 template <typename MetadataUidsT = Aws::Vector<Aws::String>>
43 void SetMetadataUids(MetadataUidsT&& value) {
44 m_metadataUidsHasBeenSet = true;
45 m_metadataUids = std::forward<MetadataUidsT>(value);
46 }
47 template <typename MetadataUidsT = Aws::Vector<Aws::String>>
49 SetMetadataUids(std::forward<MetadataUidsT>(value));
50 return *this;
51 }
52 template <typename MetadataUidsT = Aws::String>
54 m_metadataUidsHasBeenSet = true;
55 m_metadataUids.emplace_back(std::forward<MetadataUidsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<OcsfFindingIdentifier>& GetFindingIdentifiers() const { return m_findingIdentifiers; }
65 inline bool FindingIdentifiersHasBeenSet() const { return m_findingIdentifiersHasBeenSet; }
66 template <typename FindingIdentifiersT = Aws::Vector<OcsfFindingIdentifier>>
67 void SetFindingIdentifiers(FindingIdentifiersT&& value) {
68 m_findingIdentifiersHasBeenSet = true;
69 m_findingIdentifiers = std::forward<FindingIdentifiersT>(value);
70 }
71 template <typename FindingIdentifiersT = Aws::Vector<OcsfFindingIdentifier>>
73 SetFindingIdentifiers(std::forward<FindingIdentifiersT>(value));
74 return *this;
75 }
76 template <typename FindingIdentifiersT = OcsfFindingIdentifier>
78 m_findingIdentifiersHasBeenSet = true;
79 m_findingIdentifiers.emplace_back(std::forward<FindingIdentifiersT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetComment() const { return m_comment; }
90 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
91 template <typename CommentT = Aws::String>
92 void SetComment(CommentT&& value) {
93 m_commentHasBeenSet = true;
94 m_comment = std::forward<CommentT>(value);
95 }
96 template <typename CommentT = Aws::String>
98 SetComment(std::forward<CommentT>(value));
99 return *this;
100 }
102
104
110 inline int GetSeverityId() const { return m_severityId; }
111 inline bool SeverityIdHasBeenSet() const { return m_severityIdHasBeenSet; }
112 inline void SetSeverityId(int value) {
113 m_severityIdHasBeenSet = true;
114 m_severityId = value;
115 }
117 SetSeverityId(value);
118 return *this;
119 }
121
123
129 inline int GetStatusId() const { return m_statusId; }
130 inline bool StatusIdHasBeenSet() const { return m_statusIdHasBeenSet; }
131 inline void SetStatusId(int value) {
132 m_statusIdHasBeenSet = true;
133 m_statusId = value;
134 }
136 SetStatusId(value);
137 return *this;
138 }
140 private:
141 Aws::Vector<Aws::String> m_metadataUids;
142
143 Aws::Vector<OcsfFindingIdentifier> m_findingIdentifiers;
144
145 Aws::String m_comment;
146
147 int m_severityId{0};
148
149 int m_statusId{0};
150 bool m_metadataUidsHasBeenSet = false;
151 bool m_findingIdentifiersHasBeenSet = false;
152 bool m_commentHasBeenSet = false;
153 bool m_severityIdHasBeenSet = false;
154 bool m_statusIdHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace SecurityHub
159} // namespace Aws
BatchUpdateFindingsV2Request & AddMetadataUids(MetadataUidsT &&value)
BatchUpdateFindingsV2Request & WithComment(CommentT &&value)
const Aws::Vector< OcsfFindingIdentifier > & GetFindingIdentifiers() const
BatchUpdateFindingsV2Request & WithFindingIdentifiers(FindingIdentifiersT &&value)
BatchUpdateFindingsV2Request & AddFindingIdentifiers(FindingIdentifiersT &&value)
AWS_SECURITYHUB_API BatchUpdateFindingsV2Request()=default
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetMetadataUids() const
BatchUpdateFindingsV2Request & WithMetadataUids(MetadataUidsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector