AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
LogEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
28class LogEvent {
29 public:
30 AWS_LIGHTSAIL_API LogEvent() = default;
31 AWS_LIGHTSAIL_API LogEvent(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LIGHTSAIL_API LogEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
40 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
41 template <typename CreatedAtT = Aws::Utils::DateTime>
42 void SetCreatedAt(CreatedAtT&& value) {
43 m_createdAtHasBeenSet = true;
44 m_createdAt = std::forward<CreatedAtT>(value);
45 }
46 template <typename CreatedAtT = Aws::Utils::DateTime>
47 LogEvent& WithCreatedAt(CreatedAtT&& value) {
48 SetCreatedAt(std::forward<CreatedAtT>(value));
49 return *this;
50 }
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) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 LogEvent& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70 private:
71 Aws::Utils::DateTime m_createdAt{};
72
73 Aws::String m_message;
74 bool m_createdAtHasBeenSet = false;
75 bool m_messageHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Lightsail
80} // namespace Aws
LogEvent & WithMessage(MessageT &&value)
Definition LogEvent.h:65
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:42
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:39
LogEvent & WithCreatedAt(CreatedAtT &&value)
Definition LogEvent.h:47
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