AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
ThreatModelJobTask.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/LogLocation.h>
11#include <aws/securityagent/model/TaskExecutionStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityAgent {
23namespace Model {
24
32 public:
33 AWS_SECURITYAGENT_API ThreatModelJobTask() = default;
34 AWS_SECURITYAGENT_API ThreatModelJobTask(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API ThreatModelJobTask& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetTaskId() const { return m_taskId; }
43 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
44 template <typename TaskIdT = Aws::String>
45 void SetTaskId(TaskIdT&& value) {
46 m_taskIdHasBeenSet = true;
47 m_taskId = std::forward<TaskIdT>(value);
48 }
49 template <typename TaskIdT = Aws::String>
50 ThreatModelJobTask& WithTaskId(TaskIdT&& value) {
51 SetTaskId(std::forward<TaskIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetThreatModelId() const { return m_threatModelId; }
61 inline bool ThreatModelIdHasBeenSet() const { return m_threatModelIdHasBeenSet; }
62 template <typename ThreatModelIdT = Aws::String>
63 void SetThreatModelId(ThreatModelIdT&& value) {
64 m_threatModelIdHasBeenSet = true;
65 m_threatModelId = std::forward<ThreatModelIdT>(value);
66 }
67 template <typename ThreatModelIdT = Aws::String>
68 ThreatModelJobTask& WithThreatModelId(ThreatModelIdT&& value) {
69 SetThreatModelId(std::forward<ThreatModelIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetThreatModelJobId() const { return m_threatModelJobId; }
79 inline bool ThreatModelJobIdHasBeenSet() const { return m_threatModelJobIdHasBeenSet; }
80 template <typename ThreatModelJobIdT = Aws::String>
81 void SetThreatModelJobId(ThreatModelJobIdT&& value) {
82 m_threatModelJobIdHasBeenSet = true;
83 m_threatModelJobId = std::forward<ThreatModelJobIdT>(value);
84 }
85 template <typename ThreatModelJobIdT = Aws::String>
86 ThreatModelJobTask& WithThreatModelJobId(ThreatModelJobIdT&& value) {
87 SetThreatModelJobId(std::forward<ThreatModelJobIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
97 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
98 template <typename AgentSpaceIdT = Aws::String>
99 void SetAgentSpaceId(AgentSpaceIdT&& value) {
100 m_agentSpaceIdHasBeenSet = true;
101 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
102 }
103 template <typename AgentSpaceIdT = Aws::String>
104 ThreatModelJobTask& WithAgentSpaceId(AgentSpaceIdT&& value) {
105 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetTitle() const { return m_title; }
115 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
116 template <typename TitleT = Aws::String>
117 void SetTitle(TitleT&& value) {
118 m_titleHasBeenSet = true;
119 m_title = std::forward<TitleT>(value);
120 }
121 template <typename TitleT = Aws::String>
122 ThreatModelJobTask& WithTitle(TitleT&& value) {
123 SetTitle(std::forward<TitleT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetDescription() const { return m_description; }
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 template <typename DescriptionT = Aws::String>
135 void SetDescription(DescriptionT&& value) {
136 m_descriptionHasBeenSet = true;
137 m_description = std::forward<DescriptionT>(value);
138 }
139 template <typename DescriptionT = Aws::String>
140 ThreatModelJobTask& WithDescription(DescriptionT&& value) {
141 SetDescription(std::forward<DescriptionT>(value));
142 return *this;
143 }
145
147
150 inline TaskExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
151 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
153 m_executionStatusHasBeenSet = true;
154 m_executionStatus = value;
155 }
157 SetExecutionStatus(value);
158 return *this;
159 }
161
163
166 inline const LogLocation& GetLogsLocation() const { return m_logsLocation; }
167 inline bool LogsLocationHasBeenSet() const { return m_logsLocationHasBeenSet; }
168 template <typename LogsLocationT = LogLocation>
169 void SetLogsLocation(LogsLocationT&& value) {
170 m_logsLocationHasBeenSet = true;
171 m_logsLocation = std::forward<LogsLocationT>(value);
172 }
173 template <typename LogsLocationT = LogLocation>
174 ThreatModelJobTask& WithLogsLocation(LogsLocationT&& value) {
175 SetLogsLocation(std::forward<LogsLocationT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
185 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
186 template <typename CreatedAtT = Aws::Utils::DateTime>
187 void SetCreatedAt(CreatedAtT&& value) {
188 m_createdAtHasBeenSet = true;
189 m_createdAt = std::forward<CreatedAtT>(value);
190 }
191 template <typename CreatedAtT = Aws::Utils::DateTime>
192 ThreatModelJobTask& WithCreatedAt(CreatedAtT&& value) {
193 SetCreatedAt(std::forward<CreatedAtT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
203 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
204 template <typename UpdatedAtT = Aws::Utils::DateTime>
205 void SetUpdatedAt(UpdatedAtT&& value) {
206 m_updatedAtHasBeenSet = true;
207 m_updatedAt = std::forward<UpdatedAtT>(value);
208 }
209 template <typename UpdatedAtT = Aws::Utils::DateTime>
210 ThreatModelJobTask& WithUpdatedAt(UpdatedAtT&& value) {
211 SetUpdatedAt(std::forward<UpdatedAtT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_taskId;
217
218 Aws::String m_threatModelId;
219
220 Aws::String m_threatModelJobId;
221
222 Aws::String m_agentSpaceId;
223
224 Aws::String m_title;
225
226 Aws::String m_description;
227
229
230 LogLocation m_logsLocation;
231
232 Aws::Utils::DateTime m_createdAt{};
233
234 Aws::Utils::DateTime m_updatedAt{};
235 bool m_taskIdHasBeenSet = false;
236 bool m_threatModelIdHasBeenSet = false;
237 bool m_threatModelJobIdHasBeenSet = false;
238 bool m_agentSpaceIdHasBeenSet = false;
239 bool m_titleHasBeenSet = false;
240 bool m_descriptionHasBeenSet = false;
241 bool m_executionStatusHasBeenSet = false;
242 bool m_logsLocationHasBeenSet = false;
243 bool m_createdAtHasBeenSet = false;
244 bool m_updatedAtHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace SecurityAgent
249} // namespace Aws
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
ThreatModelJobTask & WithTitle(TitleT &&value)
ThreatModelJobTask & WithLogsLocation(LogsLocationT &&value)
ThreatModelJobTask & WithCreatedAt(CreatedAtT &&value)
ThreatModelJobTask & WithExecutionStatus(TaskExecutionStatus value)
ThreatModelJobTask & WithThreatModelJobId(ThreatModelJobIdT &&value)
ThreatModelJobTask & WithAgentSpaceId(AgentSpaceIdT &&value)
ThreatModelJobTask & WithTaskId(TaskIdT &&value)
void SetExecutionStatus(TaskExecutionStatus value)
void SetThreatModelJobId(ThreatModelJobIdT &&value)
ThreatModelJobTask & WithDescription(DescriptionT &&value)
AWS_SECURITYAGENT_API ThreatModelJobTask()=default
ThreatModelJobTask & WithUpdatedAt(UpdatedAtT &&value)
AWS_SECURITYAGENT_API ThreatModelJobTask(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API ThreatModelJobTask & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
ThreatModelJobTask & WithThreatModelId(ThreatModelIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue