AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GetFindingHistoryRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/AwsSecurityFindingIdentifier.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityHub {
17namespace Model {
18
22 public:
23 AWS_SECURITYHUB_API GetFindingHistoryRequest() = 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 "GetFindingHistory"; }
30
31 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
32
34
35 inline const AwsSecurityFindingIdentifier& GetFindingIdentifier() const { return m_findingIdentifier; }
36 inline bool FindingIdentifierHasBeenSet() const { return m_findingIdentifierHasBeenSet; }
37 template <typename FindingIdentifierT = AwsSecurityFindingIdentifier>
38 void SetFindingIdentifier(FindingIdentifierT&& value) {
39 m_findingIdentifierHasBeenSet = true;
40 m_findingIdentifier = std::forward<FindingIdentifierT>(value);
41 }
42 template <typename FindingIdentifierT = AwsSecurityFindingIdentifier>
43 GetFindingHistoryRequest& WithFindingIdentifier(FindingIdentifierT&& value) {
44 SetFindingIdentifier(std::forward<FindingIdentifierT>(value));
45 return *this;
46 }
48
50
68 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
69 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
70 template <typename StartTimeT = Aws::Utils::DateTime>
71 void SetStartTime(StartTimeT&& value) {
72 m_startTimeHasBeenSet = true;
73 m_startTime = std::forward<StartTimeT>(value);
74 }
75 template <typename StartTimeT = Aws::Utils::DateTime>
77 SetStartTime(std::forward<StartTimeT>(value));
78 return *this;
79 }
81
83
101 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
102 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
103 template <typename EndTimeT = Aws::Utils::DateTime>
104 void SetEndTime(EndTimeT&& value) {
105 m_endTimeHasBeenSet = true;
106 m_endTime = std::forward<EndTimeT>(value);
107 }
108 template <typename EndTimeT = Aws::Utils::DateTime>
110 SetEndTime(std::forward<EndTimeT>(value));
111 return *this;
112 }
114
116
123 inline const Aws::String& GetNextToken() const { return m_nextToken; }
124 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
125 template <typename NextTokenT = Aws::String>
126 void SetNextToken(NextTokenT&& value) {
127 m_nextTokenHasBeenSet = true;
128 m_nextToken = std::forward<NextTokenT>(value);
129 }
130 template <typename NextTokenT = Aws::String>
132 SetNextToken(std::forward<NextTokenT>(value));
133 return *this;
134 }
136
138
142 inline int GetMaxResults() const { return m_maxResults; }
143 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
144 inline void SetMaxResults(int value) {
145 m_maxResultsHasBeenSet = true;
146 m_maxResults = value;
147 }
149 SetMaxResults(value);
150 return *this;
151 }
153 private:
154 AwsSecurityFindingIdentifier m_findingIdentifier;
155
156 Aws::Utils::DateTime m_startTime{};
157
158 Aws::Utils::DateTime m_endTime{};
159
160 Aws::String m_nextToken;
161
162 int m_maxResults{0};
163 bool m_findingIdentifierHasBeenSet = false;
164 bool m_startTimeHasBeenSet = false;
165 bool m_endTimeHasBeenSet = false;
166 bool m_nextTokenHasBeenSet = false;
167 bool m_maxResultsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace SecurityHub
172} // namespace Aws
AWS_SECURITYHUB_API GetFindingHistoryRequest()=default
const AwsSecurityFindingIdentifier & GetFindingIdentifier() const
GetFindingHistoryRequest & WithFindingIdentifier(FindingIdentifierT &&value)
GetFindingHistoryRequest & WithNextToken(NextTokenT &&value)
GetFindingHistoryRequest & WithEndTime(EndTimeT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
GetFindingHistoryRequest & WithStartTime(StartTimeT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String