AWS SDK for C++  1.9.16
AWS SDK for C++
LogEvent.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
45 
49  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
50 
54  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
55 
59  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
60 
64  inline LogEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
65 
69  inline LogEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
70 
71 
75  inline const Aws::String& GetMessage() const{ return m_message; }
76 
80  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 
85  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
86 
90  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
91 
95  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
96 
100  inline LogEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
101 
105  inline LogEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
106 
110  inline LogEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
111 
112  private:
113 
114  Aws::Utils::DateTime m_createdAt;
115  bool m_createdAtHasBeenSet;
116 
117  Aws::String m_message;
118  bool m_messageHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace Lightsail
123 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::LogEvent::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: LogEvent.h:59
Aws::Lightsail::Model::LogEvent::SetMessage
void SetMessage(Aws::String &&value)
Definition: LogEvent.h:90
DateTime.h
Aws::Lightsail::Model::LogEvent::operator=
LogEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::LogEvent::WithCreatedAt
LogEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: LogEvent.h:64
Aws::Lightsail::Model::LogEvent::LogEvent
LogEvent()
Aws::Lightsail::Model::LogEvent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::LogEvent::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: LogEvent.h:44
Aws::Lightsail::Model::LogEvent::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: LogEvent.h:54
Aws::Lightsail::Model::LogEvent::GetMessage
const Aws::String & GetMessage() const
Definition: LogEvent.h:75
Aws::Lightsail::Model::LogEvent::SetMessage
void SetMessage(const Aws::String &value)
Definition: LogEvent.h:85
Aws::Lightsail::Model::LogEvent::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: LogEvent.h:49
Aws::Lightsail::Model::LogEvent::WithMessage
LogEvent & WithMessage(Aws::String &&value)
Definition: LogEvent.h:105
Aws::Lightsail::Model::LogEvent::WithMessage
LogEvent & WithMessage(const Aws::String &value)
Definition: LogEvent.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::LogEvent::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: LogEvent.h:80
Aws::Lightsail::Model::LogEvent
Definition: LogEvent.h:33
Aws::Lightsail::Model::LogEvent::WithMessage
LogEvent & WithMessage(const char *value)
Definition: LogEvent.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::LogEvent::SetMessage
void SetMessage(const char *value)
Definition: LogEvent.h:95
Aws::Lightsail::Model::LogEvent::WithCreatedAt
LogEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: LogEvent.h:69
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::LogEvent::LogEvent
LogEvent(Aws::Utils::Json::JsonView jsonValue)