AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuditMitigationActionExecutionMetadata.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/AuditMitigationActionsExecutionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
36 {
37 public:
42
43
45
48 inline const Aws::String& GetTaskId() const{ return m_taskId; }
49 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
50 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
51 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
52 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
53 inline AuditMitigationActionExecutionMetadata& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
54 inline AuditMitigationActionExecutionMetadata& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
55 inline AuditMitigationActionExecutionMetadata& WithTaskId(const char* value) { SetTaskId(value); return *this;}
57
59
63 inline const Aws::String& GetFindingId() const{ return m_findingId; }
64 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
65 inline void SetFindingId(const Aws::String& value) { m_findingIdHasBeenSet = true; m_findingId = value; }
66 inline void SetFindingId(Aws::String&& value) { m_findingIdHasBeenSet = true; m_findingId = std::move(value); }
67 inline void SetFindingId(const char* value) { m_findingIdHasBeenSet = true; m_findingId.assign(value); }
69 inline AuditMitigationActionExecutionMetadata& WithFindingId(Aws::String&& value) { SetFindingId(std::move(value)); return *this;}
70 inline AuditMitigationActionExecutionMetadata& WithFindingId(const char* value) { SetFindingId(value); return *this;}
72
74
77 inline const Aws::String& GetActionName() const{ return m_actionName; }
78 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
79 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
80 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
81 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
83 inline AuditMitigationActionExecutionMetadata& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
84 inline AuditMitigationActionExecutionMetadata& WithActionName(const char* value) { SetActionName(value); return *this;}
86
88
92 inline const Aws::String& GetActionId() const{ return m_actionId; }
93 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
94 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
95 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
96 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
97 inline AuditMitigationActionExecutionMetadata& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
98 inline AuditMitigationActionExecutionMetadata& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
99 inline AuditMitigationActionExecutionMetadata& WithActionId(const char* value) { SetActionId(value); return *this;}
101
103
106 inline const AuditMitigationActionsExecutionStatus& GetStatus() const{ return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(const AuditMitigationActionsExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
109 inline void SetStatus(AuditMitigationActionsExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113
115
118 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
119 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
120 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
121 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
125
127
131 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
132 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
133 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
134 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
136 inline AuditMitigationActionExecutionMetadata& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
138
140
144 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
145 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
146 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
147 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
148 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
150 inline AuditMitigationActionExecutionMetadata& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
151 inline AuditMitigationActionExecutionMetadata& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
153
155
158 inline const Aws::String& GetMessage() const{ return m_message; }
159 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
160 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
161 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
162 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
163 inline AuditMitigationActionExecutionMetadata& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
164 inline AuditMitigationActionExecutionMetadata& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
165 inline AuditMitigationActionExecutionMetadata& WithMessage(const char* value) { SetMessage(value); return *this;}
167 private:
168
169 Aws::String m_taskId;
170 bool m_taskIdHasBeenSet = false;
171
172 Aws::String m_findingId;
173 bool m_findingIdHasBeenSet = false;
174
175 Aws::String m_actionName;
176 bool m_actionNameHasBeenSet = false;
177
178 Aws::String m_actionId;
179 bool m_actionIdHasBeenSet = false;
180
182 bool m_statusHasBeenSet = false;
183
184 Aws::Utils::DateTime m_startTime;
185 bool m_startTimeHasBeenSet = false;
186
187 Aws::Utils::DateTime m_endTime;
188 bool m_endTimeHasBeenSet = false;
189
190 Aws::String m_errorCode;
191 bool m_errorCodeHasBeenSet = false;
192
193 Aws::String m_message;
194 bool m_messageHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace IoT
199} // namespace Aws
AuditMitigationActionExecutionMetadata & WithActionName(Aws::String &&value)
AuditMitigationActionExecutionMetadata & WithActionId(const Aws::String &value)
void SetStatus(const AuditMitigationActionsExecutionStatus &value)
AuditMitigationActionExecutionMetadata & WithEndTime(const Aws::Utils::DateTime &value)
AuditMitigationActionExecutionMetadata & WithActionName(const Aws::String &value)
AWS_IOT_API AuditMitigationActionExecutionMetadata(Aws::Utils::Json::JsonView jsonValue)
AuditMitigationActionExecutionMetadata & WithTaskId(const Aws::String &value)
AuditMitigationActionExecutionMetadata & WithTaskId(Aws::String &&value)
AuditMitigationActionExecutionMetadata & WithFindingId(Aws::String &&value)
AuditMitigationActionExecutionMetadata & WithErrorCode(const char *value)
AuditMitigationActionExecutionMetadata & WithActionName(const char *value)
AuditMitigationActionExecutionMetadata & WithStartTime(Aws::Utils::DateTime &&value)
AuditMitigationActionExecutionMetadata & WithEndTime(Aws::Utils::DateTime &&value)
AuditMitigationActionExecutionMetadata & WithFindingId(const Aws::String &value)
AuditMitigationActionExecutionMetadata & WithFindingId(const char *value)
AuditMitigationActionExecutionMetadata & WithMessage(const Aws::String &value)
AuditMitigationActionExecutionMetadata & WithActionId(Aws::String &&value)
AuditMitigationActionExecutionMetadata & WithMessage(Aws::String &&value)
AWS_IOT_API AuditMitigationActionExecutionMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AuditMitigationActionExecutionMetadata & WithTaskId(const char *value)
AuditMitigationActionExecutionMetadata & WithStartTime(const Aws::Utils::DateTime &value)
AuditMitigationActionExecutionMetadata & WithActionId(const char *value)
AuditMitigationActionExecutionMetadata & WithStatus(const AuditMitigationActionsExecutionStatus &value)
AuditMitigationActionExecutionMetadata & WithMessage(const char *value)
AuditMitigationActionExecutionMetadata & WithStatus(AuditMitigationActionsExecutionStatus &&value)
AuditMitigationActionExecutionMetadata & WithErrorCode(const Aws::String &value)
AuditMitigationActionExecutionMetadata & WithErrorCode(Aws::String &&value)
const AuditMitigationActionsExecutionStatus & GetStatus() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue