AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogEvent.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LIGHTSAIL_API LogEvent() = default;
36 AWS_LIGHTSAIL_API LogEvent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API LogEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
46 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
47 template<typename CreatedAtT = Aws::Utils::DateTime>
48 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
49 template<typename CreatedAtT = Aws::Utils::DateTime>
50 LogEvent& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template<typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
61 template<typename MessageT = Aws::String>
62 LogEvent& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
64 private:
65
66 Aws::Utils::DateTime m_createdAt{};
67 bool m_createdAtHasBeenSet = false;
68
69 Aws::String m_message;
70 bool m_messageHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Lightsail
75} // namespace Aws
LogEvent & WithMessage(MessageT &&value)
Definition LogEvent.h:62
void SetMessage(MessageT &&value)
Definition LogEvent.h:60
AWS_LIGHTSAIL_API LogEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API LogEvent()=default
void SetCreatedAt(CreatedAtT &&value)
Definition LogEvent.h:48
AWS_LIGHTSAIL_API LogEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
Definition LogEvent.h:45
LogEvent & WithCreatedAt(CreatedAtT &&value)
Definition LogEvent.h:50
const Aws::String & GetMessage() const
Definition LogEvent.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue