AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
InvestigationAction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/security-ir/SecurityIR_EXPORTS.h>
10#include <aws/security-ir/model/ActionType.h>
11#include <aws/security-ir/model/ExecutionStatus.h>
12#include <aws/security-ir/model/InvestigationFeedback.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityIR {
24namespace Model {
25
34 public:
35 AWS_SECURITYIR_API InvestigationAction() = default;
36 AWS_SECURITYIR_API InvestigationAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetInvestigationId() const { return m_investigationId; }
46 inline bool InvestigationIdHasBeenSet() const { return m_investigationIdHasBeenSet; }
47 template <typename InvestigationIdT = Aws::String>
48 void SetInvestigationId(InvestigationIdT&& value) {
49 m_investigationIdHasBeenSet = true;
50 m_investigationId = std::forward<InvestigationIdT>(value);
51 }
52 template <typename InvestigationIdT = Aws::String>
53 InvestigationAction& WithInvestigationId(InvestigationIdT&& value) {
54 SetInvestigationId(std::forward<InvestigationIdT>(value));
55 return *this;
56 }
58
60
64 inline ActionType GetActionType() const { return m_actionType; }
65 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
66 inline void SetActionType(ActionType value) {
67 m_actionTypeHasBeenSet = true;
68 m_actionType = value;
69 }
71 SetActionType(value);
72 return *this;
73 }
75
77
81 inline const Aws::String& GetTitle() const { return m_title; }
82 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
83 template <typename TitleT = Aws::String>
84 void SetTitle(TitleT&& value) {
85 m_titleHasBeenSet = true;
86 m_title = std::forward<TitleT>(value);
87 }
88 template <typename TitleT = Aws::String>
89 InvestigationAction& WithTitle(TitleT&& value) {
90 SetTitle(std::forward<TitleT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetContent() const { return m_content; }
102 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
103 template <typename ContentT = Aws::String>
104 void SetContent(ContentT&& value) {
105 m_contentHasBeenSet = true;
106 m_content = std::forward<ContentT>(value);
107 }
108 template <typename ContentT = Aws::String>
109 InvestigationAction& WithContent(ContentT&& value) {
110 SetContent(std::forward<ContentT>(value));
111 return *this;
112 }
114
116
120 inline ExecutionStatus GetStatus() const { return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(ExecutionStatus value) {
123 m_statusHasBeenSet = true;
124 m_status = value;
125 }
127 SetStatus(value);
128 return *this;
129 }
131
133
137 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
138 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
139 template <typename LastUpdatedT = Aws::Utils::DateTime>
140 void SetLastUpdated(LastUpdatedT&& value) {
141 m_lastUpdatedHasBeenSet = true;
142 m_lastUpdated = std::forward<LastUpdatedT>(value);
143 }
144 template <typename LastUpdatedT = Aws::Utils::DateTime>
145 InvestigationAction& WithLastUpdated(LastUpdatedT&& value) {
146 SetLastUpdated(std::forward<LastUpdatedT>(value));
147 return *this;
148 }
150
152
157 inline const InvestigationFeedback& GetFeedback() const { return m_feedback; }
158 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
159 template <typename FeedbackT = InvestigationFeedback>
160 void SetFeedback(FeedbackT&& value) {
161 m_feedbackHasBeenSet = true;
162 m_feedback = std::forward<FeedbackT>(value);
163 }
164 template <typename FeedbackT = InvestigationFeedback>
165 InvestigationAction& WithFeedback(FeedbackT&& value) {
166 SetFeedback(std::forward<FeedbackT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_investigationId;
172
173 ActionType m_actionType{ActionType::NOT_SET};
174
175 Aws::String m_title;
176
177 Aws::String m_content;
178
180
181 Aws::Utils::DateTime m_lastUpdated{};
182
183 InvestigationFeedback m_feedback;
184 bool m_investigationIdHasBeenSet = false;
185 bool m_actionTypeHasBeenSet = false;
186 bool m_titleHasBeenSet = false;
187 bool m_contentHasBeenSet = false;
188 bool m_statusHasBeenSet = false;
189 bool m_lastUpdatedHasBeenSet = false;
190 bool m_feedbackHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace SecurityIR
195} // namespace Aws
InvestigationAction & WithFeedback(FeedbackT &&value)
const Aws::Utils::DateTime & GetLastUpdated() const
const InvestigationFeedback & GetFeedback() const
InvestigationAction & WithInvestigationId(InvestigationIdT &&value)
AWS_SECURITYIR_API InvestigationAction()=default
AWS_SECURITYIR_API InvestigationAction(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const
InvestigationAction & WithActionType(ActionType value)
InvestigationAction & WithLastUpdated(LastUpdatedT &&value)
AWS_SECURITYIR_API InvestigationAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInvestigationId(InvestigationIdT &&value)
InvestigationAction & WithTitle(TitleT &&value)
InvestigationAction & WithStatus(ExecutionStatus value)
InvestigationAction & WithContent(ContentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue