AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ServiceEvent.h
Go to the documentation of this file.
1
6#pragma once
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 ECS
23{
24namespace Model
25{
26
34 {
35 public:
40
41
45 inline const Aws::String& GetId() const{ return m_id; }
46
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51
55 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56
60 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61
65 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66
70 inline ServiceEvent& WithId(const Aws::String& value) { SetId(value); return *this;}
71
75 inline ServiceEvent& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
76
80 inline ServiceEvent& WithId(const char* value) { SetId(value); return *this;}
81
82
86 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
87
91 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92
96 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
97
101 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
102
106 inline ServiceEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
107
111 inline ServiceEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
112
113
117 inline const Aws::String& GetMessage() const{ return m_message; }
118
122 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
123
127 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
128
132 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
133
137 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
138
142 inline ServiceEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
143
147 inline ServiceEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
148
152 inline ServiceEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
153
154 private:
155
156 Aws::String m_id;
157 bool m_idHasBeenSet = false;
158
159 Aws::Utils::DateTime m_createdAt;
160 bool m_createdAtHasBeenSet = false;
161
162 Aws::String m_message;
163 bool m_messageHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace ECS
168} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetId(Aws::String &&value)
Definition: ServiceEvent.h:60
ServiceEvent & WithMessage(Aws::String &&value)
Definition: ServiceEvent.h:147
void SetMessage(const Aws::String &value)
Definition: ServiceEvent.h:127
const Aws::String & GetMessage() const
Definition: ServiceEvent.h:117
const Aws::String & GetId() const
Definition: ServiceEvent.h:45
void SetMessage(const char *value)
Definition: ServiceEvent.h:137
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ServiceEvent.h:101
ServiceEvent & WithId(const Aws::String &value)
Definition: ServiceEvent.h:70
ServiceEvent & WithMessage(const char *value)
Definition: ServiceEvent.h:152
ServiceEvent & WithId(Aws::String &&value)
Definition: ServiceEvent.h:75
ServiceEvent & WithMessage(const Aws::String &value)
Definition: ServiceEvent.h:142
AWS_ECS_API ServiceEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ServiceEvent.h:96
AWS_ECS_API ServiceEvent(Aws::Utils::Json::JsonView jsonValue)
ServiceEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ServiceEvent.h:111
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ServiceEvent.h:86
ServiceEvent & WithId(const char *value)
Definition: ServiceEvent.h:80
ServiceEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ServiceEvent.h:106
void SetMessage(Aws::String &&value)
Definition: ServiceEvent.h:132
void SetId(const Aws::String &value)
Definition: ServiceEvent.h:55
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const char *value)
Definition: ServiceEvent.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String