AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateFindingsRequest.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/securityhub/model/AwsSecurityFindingFilters.h>
10#include <aws/securityhub/model/NoteUpdate.h>
11#include <aws/securityhub/model/RecordState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecurityHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECURITYHUB_API UpdateFindingsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateFindings"; }
33
34 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
35
36
38
42 inline const AwsSecurityFindingFilters& GetFilters() const { return m_filters; }
43 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
44 template<typename FiltersT = AwsSecurityFindingFilters>
45 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
46 template<typename FiltersT = AwsSecurityFindingFilters>
47 UpdateFindingsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
49
51
54 inline const NoteUpdate& GetNote() const { return m_note; }
55 inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; }
56 template<typename NoteT = NoteUpdate>
57 void SetNote(NoteT&& value) { m_noteHasBeenSet = true; m_note = std::forward<NoteT>(value); }
58 template<typename NoteT = NoteUpdate>
59 UpdateFindingsRequest& WithNote(NoteT&& value) { SetNote(std::forward<NoteT>(value)); return *this;}
61
63
66 inline RecordState GetRecordState() const { return m_recordState; }
67 inline bool RecordStateHasBeenSet() const { return m_recordStateHasBeenSet; }
68 inline void SetRecordState(RecordState value) { m_recordStateHasBeenSet = true; m_recordState = value; }
69 inline UpdateFindingsRequest& WithRecordState(RecordState value) { SetRecordState(value); return *this;}
71 private:
72
74 bool m_filtersHasBeenSet = false;
75
76 NoteUpdate m_note;
77 bool m_noteHasBeenSet = false;
78
79 RecordState m_recordState{RecordState::NOT_SET};
80 bool m_recordStateHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace SecurityHub
85} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateFindingsRequest & WithNote(NoteT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
UpdateFindingsRequest & WithFilters(FiltersT &&value)
UpdateFindingsRequest & WithRecordState(RecordState value)
const AwsSecurityFindingFilters & GetFilters() const
AWS_SECURITYHUB_API UpdateFindingsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String