AWS SDK for C++  1.9.104
AWS SDK for C++
ContainerServiceLogEvent.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 
34  {
35  public:
40 
41 
45  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
46 
50  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
51 
55  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
56 
60  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
61 
65  inline ContainerServiceLogEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
66 
70  inline ContainerServiceLogEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetMessage() const{ return m_message; }
77 
81  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 
86  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
87 
91  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
92 
96  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
97 
101  inline ContainerServiceLogEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
102 
106  inline ContainerServiceLogEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
107 
111  inline ContainerServiceLogEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
112 
113  private:
114 
115  Aws::Utils::DateTime m_createdAt;
116  bool m_createdAtHasBeenSet;
117 
118  Aws::String m_message;
119  bool m_messageHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace Lightsail
124 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::ContainerServiceLogEvent::SetMessage
void SetMessage(const char *value)
Definition: ContainerServiceLogEvent.h:96
Aws::Lightsail::Model::ContainerServiceLogEvent::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ContainerServiceLogEvent.h:50
Aws::Lightsail::Model::ContainerServiceLogEvent::SetMessage
void SetMessage(Aws::String &&value)
Definition: ContainerServiceLogEvent.h:91
Aws::Lightsail::Model::ContainerServiceLogEvent::ContainerServiceLogEvent
ContainerServiceLogEvent(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::Lightsail::Model::ContainerServiceLogEvent::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ContainerServiceLogEvent.h:81
Aws::Lightsail::Model::ContainerServiceLogEvent::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ContainerServiceLogEvent.h:55
Aws::Lightsail::Model::ContainerServiceLogEvent::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ContainerServiceLogEvent.h:60
Aws::Lightsail::Model::ContainerServiceLogEvent::WithMessage
ContainerServiceLogEvent & WithMessage(const char *value)
Definition: ContainerServiceLogEvent.h:111
Aws::Lightsail::Model::ContainerServiceLogEvent::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ContainerServiceLogEvent.h:45
Aws::Lightsail::Model::ContainerServiceLogEvent::WithMessage
ContainerServiceLogEvent & WithMessage(const Aws::String &value)
Definition: ContainerServiceLogEvent.h:101
Aws::Lightsail::Model::ContainerServiceLogEvent::operator=
ContainerServiceLogEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::ContainerServiceLogEvent::WithCreatedAt
ContainerServiceLogEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ContainerServiceLogEvent.h:70
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ContainerServiceLogEvent::WithMessage
ContainerServiceLogEvent & WithMessage(Aws::String &&value)
Definition: ContainerServiceLogEvent.h:106
Aws::Lightsail::Model::ContainerServiceLogEvent
Definition: ContainerServiceLogEvent.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ContainerServiceLogEvent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContainerServiceLogEvent::WithCreatedAt
ContainerServiceLogEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ContainerServiceLogEvent.h:65
Aws::Lightsail::Model::ContainerServiceLogEvent::SetMessage
void SetMessage(const Aws::String &value)
Definition: ContainerServiceLogEvent.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContainerServiceLogEvent::ContainerServiceLogEvent
ContainerServiceLogEvent()
Aws::Lightsail::Model::ContainerServiceLogEvent::GetMessage
const Aws::String & GetMessage() const
Definition: ContainerServiceLogEvent.h:76