AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceEvent.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 ECS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ECS_API ServiceEvent();
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline ServiceEvent& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline ServiceEvent& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline ServiceEvent& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
61 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
62 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
63 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
64 inline ServiceEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
65 inline ServiceEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetMessage() const{ return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
76 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
77 inline ServiceEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
78 inline ServiceEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
79 inline ServiceEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
81 private:
82
83 Aws::String m_id;
84 bool m_idHasBeenSet = false;
85
86 Aws::Utils::DateTime m_createdAt;
87 bool m_createdAtHasBeenSet = false;
88
89 Aws::String m_message;
90 bool m_messageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ECS
95} // namespace Aws
void SetId(Aws::String &&value)
ServiceEvent & WithMessage(Aws::String &&value)
void SetMessage(const Aws::String &value)
const Aws::String & GetMessage() const
const Aws::String & GetId() const
void SetMessage(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ServiceEvent & WithId(const Aws::String &value)
ServiceEvent & WithMessage(const char *value)
ServiceEvent & WithId(Aws::String &&value)
ServiceEvent & WithMessage(const Aws::String &value)
AWS_ECS_API ServiceEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AWS_ECS_API ServiceEvent(Aws::Utils::Json::JsonView jsonValue)
ServiceEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceEvent & WithId(const char *value)
ServiceEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetMessage(Aws::String &&value)
void SetId(const Aws::String &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue