AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobLog.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/model/JobLogEvent.h>
9#include <aws/drs/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 drs
24{
25namespace Model
26{
27
33 class JobLog
34 {
35 public:
36 AWS_DRS_API JobLog();
37 AWS_DRS_API JobLog(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const JobLogEvent& GetEvent() const{ return m_event; }
47 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
48 inline void SetEvent(const JobLogEvent& value) { m_eventHasBeenSet = true; m_event = value; }
49 inline void SetEvent(JobLogEvent&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
50 inline JobLog& WithEvent(const JobLogEvent& value) { SetEvent(value); return *this;}
51 inline JobLog& WithEvent(JobLogEvent&& value) { SetEvent(std::move(value)); return *this;}
53
55
58 inline const JobLogEventData& GetEventData() const{ return m_eventData; }
59 inline bool EventDataHasBeenSet() const { return m_eventDataHasBeenSet; }
60 inline void SetEventData(const JobLogEventData& value) { m_eventDataHasBeenSet = true; m_eventData = value; }
61 inline void SetEventData(JobLogEventData&& value) { m_eventDataHasBeenSet = true; m_eventData = std::move(value); }
62 inline JobLog& WithEventData(const JobLogEventData& value) { SetEventData(value); return *this;}
63 inline JobLog& WithEventData(JobLogEventData&& value) { SetEventData(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetLogDateTime() const{ return m_logDateTime; }
71 inline bool LogDateTimeHasBeenSet() const { return m_logDateTimeHasBeenSet; }
72 inline void SetLogDateTime(const Aws::String& value) { m_logDateTimeHasBeenSet = true; m_logDateTime = value; }
73 inline void SetLogDateTime(Aws::String&& value) { m_logDateTimeHasBeenSet = true; m_logDateTime = std::move(value); }
74 inline void SetLogDateTime(const char* value) { m_logDateTimeHasBeenSet = true; m_logDateTime.assign(value); }
75 inline JobLog& WithLogDateTime(const Aws::String& value) { SetLogDateTime(value); return *this;}
76 inline JobLog& WithLogDateTime(Aws::String&& value) { SetLogDateTime(std::move(value)); return *this;}
77 inline JobLog& WithLogDateTime(const char* value) { SetLogDateTime(value); return *this;}
79 private:
80
81 JobLogEvent m_event;
82 bool m_eventHasBeenSet = false;
83
84 JobLogEventData m_eventData;
85 bool m_eventDataHasBeenSet = false;
86
87 Aws::String m_logDateTime;
88 bool m_logDateTimeHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace drs
93} // namespace Aws
JobLog & WithLogDateTime(const Aws::String &value)
Definition JobLog.h:75
JobLog & WithEventData(JobLogEventData &&value)
Definition JobLog.h:63
bool EventHasBeenSet() const
Definition JobLog.h:47
void SetLogDateTime(const char *value)
Definition JobLog.h:74
JobLog & WithEventData(const JobLogEventData &value)
Definition JobLog.h:62
JobLog & WithLogDateTime(const char *value)
Definition JobLog.h:77
const JobLogEvent & GetEvent() const
Definition JobLog.h:46
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:71
JobLog & WithEvent(JobLogEvent &&value)
Definition JobLog.h:51
AWS_DRS_API JobLog(Aws::Utils::Json::JsonView jsonValue)
void SetEventData(const JobLogEventData &value)
Definition JobLog.h:60
void SetLogDateTime(Aws::String &&value)
Definition JobLog.h:73
JobLog & WithLogDateTime(Aws::String &&value)
Definition JobLog.h:76
const Aws::String & GetLogDateTime() const
Definition JobLog.h:70
void SetEvent(const JobLogEvent &value)
Definition JobLog.h:48
void SetEventData(JobLogEventData &&value)
Definition JobLog.h:61
void SetLogDateTime(const Aws::String &value)
Definition JobLog.h:72
bool EventDataHasBeenSet() const
Definition JobLog.h:59
void SetEvent(JobLogEvent &&value)
Definition JobLog.h:49
const JobLogEventData & GetEventData() const
Definition JobLog.h:58
JobLog & WithEvent(const JobLogEvent &value)
Definition JobLog.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue