AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobLog.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/model/JobLogEvent.h>
9#include <aws/mgn/model/JobLogEventData.h>
10#include <aws/core/utils/memory/stl/AWSString.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 mgn
24{
25namespace Model
26{
27
33 class JobLog
34 {
35 public:
36 AWS_MGN_API JobLog() = default;
37 AWS_MGN_API JobLog(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline JobLogEvent GetEvent() const { return m_event; }
47 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
48 inline void SetEvent(JobLogEvent value) { m_eventHasBeenSet = true; m_event = value; }
49 inline JobLog& WithEvent(JobLogEvent value) { SetEvent(value); return *this;}
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) { m_eventDataHasBeenSet = true; m_eventData = std::forward<EventDataT>(value); }
60 template<typename EventDataT = JobLogEventData>
61 JobLog& WithEventData(EventDataT&& value) { SetEventData(std::forward<EventDataT>(value)); return *this;}
63
65
68 inline const Aws::String& GetLogDateTime() const { return m_logDateTime; }
69 inline bool LogDateTimeHasBeenSet() const { return m_logDateTimeHasBeenSet; }
70 template<typename LogDateTimeT = Aws::String>
71 void SetLogDateTime(LogDateTimeT&& value) { m_logDateTimeHasBeenSet = true; m_logDateTime = std::forward<LogDateTimeT>(value); }
72 template<typename LogDateTimeT = Aws::String>
73 JobLog& WithLogDateTime(LogDateTimeT&& value) { SetLogDateTime(std::forward<LogDateTimeT>(value)); return *this;}
75 private:
76
78 bool m_eventHasBeenSet = false;
79
80 JobLogEventData m_eventData;
81 bool m_eventDataHasBeenSet = false;
82
83 Aws::String m_logDateTime;
84 bool m_logDateTimeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace mgn
89} // namespace Aws
JobLog & WithEventData(EventDataT &&value)
Definition JobLog.h:61
AWS_MGN_API JobLog(Aws::Utils::Json::JsonView jsonValue)
bool EventDataHasBeenSet() const
Definition JobLog.h:57
bool EventHasBeenSet() const
Definition JobLog.h:47
JobLogEvent GetEvent() const
Definition JobLog.h:46
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
const JobLogEventData & GetEventData() const
Definition JobLog.h:56
const Aws::String & GetLogDateTime() const
Definition JobLog.h:68
void SetEventData(EventDataT &&value)
Definition JobLog.h:59
AWS_MGN_API JobLog()=default
AWS_MGN_API JobLog & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEvent(JobLogEvent value)
Definition JobLog.h:48
void SetLogDateTime(LogDateTimeT &&value)
Definition JobLog.h:71
JobLog & WithEvent(JobLogEvent value)
Definition JobLog.h:49
JobLog & WithLogDateTime(LogDateTimeT &&value)
Definition JobLog.h:73
bool LogDateTimeHasBeenSet() const
Definition JobLog.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue