AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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