AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
JobLog.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9#include <aws/mgn/model/JobLogEvent.h>
10#include <aws/mgn/model/JobLogEventData.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace mgn {
22namespace Model {
23
29class JobLog {
30 public:
31 AWS_MGN_API JobLog() = default;
32 AWS_MGN_API JobLog(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetLogDateTime() const { return m_logDateTime; }
41 inline bool LogDateTimeHasBeenSet() const { return m_logDateTimeHasBeenSet; }
42 template <typename LogDateTimeT = Aws::String>
43 void SetLogDateTime(LogDateTimeT&& value) {
44 m_logDateTimeHasBeenSet = true;
45 m_logDateTime = std::forward<LogDateTimeT>(value);
46 }
47 template <typename LogDateTimeT = Aws::String>
48 JobLog& WithLogDateTime(LogDateTimeT&& value) {
49 SetLogDateTime(std::forward<LogDateTimeT>(value));
50 return *this;
51 }
53
55
58 inline JobLogEvent GetEvent() const { return m_event; }
59 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
60 inline void SetEvent(JobLogEvent value) {
61 m_eventHasBeenSet = true;
62 m_event = value;
63 }
64 inline JobLog& WithEvent(JobLogEvent value) {
65 SetEvent(value);
66 return *this;
67 }
69
71
74 inline const JobLogEventData& GetEventData() const { return m_eventData; }
75 inline bool EventDataHasBeenSet() const { return m_eventDataHasBeenSet; }
76 template <typename EventDataT = JobLogEventData>
77 void SetEventData(EventDataT&& value) {
78 m_eventDataHasBeenSet = true;
79 m_eventData = std::forward<EventDataT>(value);
80 }
81 template <typename EventDataT = JobLogEventData>
82 JobLog& WithEventData(EventDataT&& value) {
83 SetEventData(std::forward<EventDataT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_logDateTime;
89
91
92 JobLogEventData m_eventData;
93 bool m_logDateTimeHasBeenSet = false;
94 bool m_eventHasBeenSet = false;
95 bool m_eventDataHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace mgn
100} // namespace Aws
JobLog & WithEventData(EventDataT &&value)
Definition JobLog.h:82
AWS_MGN_API JobLog(Aws::Utils::Json::JsonView jsonValue)
bool EventDataHasBeenSet() const
Definition JobLog.h:75
bool EventHasBeenSet() const
Definition JobLog.h:59
JobLogEvent GetEvent() const
Definition JobLog.h:58
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
const JobLogEventData & GetEventData() const
Definition JobLog.h:74
const Aws::String & GetLogDateTime() const
Definition JobLog.h:40
void SetEventData(EventDataT &&value)
Definition JobLog.h:77
AWS_MGN_API JobLog()=default
AWS_MGN_API JobLog & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEvent(JobLogEvent value)
Definition JobLog.h:60
void SetLogDateTime(LogDateTimeT &&value)
Definition JobLog.h:43
JobLog & WithEvent(JobLogEvent value)
Definition JobLog.h:64
JobLog & WithLogDateTime(LogDateTimeT &&value)
Definition JobLog.h:48
bool LogDateTimeHasBeenSet() const
Definition JobLog.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue