AWS SDK for C++  1.9.156
AWS SDK for C++
ServiceEvent.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
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 ECS
23 {
24 namespace 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;
158 
159  Aws::Utils::DateTime m_createdAt;
160  bool m_createdAtHasBeenSet;
161 
162  Aws::String m_message;
163  bool m_messageHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace ECS
168 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ECS::Model::ServiceEvent::SetId
void SetId(const char *value)
Definition: ServiceEvent.h:65
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ServiceEvent::operator=
ServiceEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ServiceEvent::WithId
ServiceEvent & WithId(const Aws::String &value)
Definition: ServiceEvent.h:70
DateTime.h
Aws::ECS::Model::ServiceEvent::GetMessage
const Aws::String & GetMessage() const
Definition: ServiceEvent.h:117
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ServiceEvent::WithCreatedAt
ServiceEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ServiceEvent.h:111
Aws::ECS::Model::ServiceEvent::SetId
void SetId(Aws::String &&value)
Definition: ServiceEvent.h:60
Aws::ECS::Model::ServiceEvent::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ServiceEvent.h:122
Aws::ECS::Model::ServiceEvent::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ServiceEvent.h:96
Aws::ECS::Model::ServiceEvent::IdHasBeenSet
bool IdHasBeenSet() const
Definition: ServiceEvent.h:50
Aws::ECS::Model::ServiceEvent::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ServiceEvent.h:101
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ECS::Model::ServiceEvent::SetId
void SetId(const Aws::String &value)
Definition: ServiceEvent.h:55
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::ServiceEvent::ServiceEvent
ServiceEvent()
Aws::ECS::Model::ServiceEvent::WithCreatedAt
ServiceEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ServiceEvent.h:106
Aws::ECS::Model::ServiceEvent::WithId
ServiceEvent & WithId(const char *value)
Definition: ServiceEvent.h:80
Aws::ECS::Model::ServiceEvent::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ServiceEvent.h:91
Aws::ECS::Model::ServiceEvent::SetMessage
void SetMessage(Aws::String &&value)
Definition: ServiceEvent.h:132
Aws::ECS::Model::ServiceEvent::WithMessage
ServiceEvent & WithMessage(const char *value)
Definition: ServiceEvent.h:152
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ServiceEvent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ServiceEvent::GetId
const Aws::String & GetId() const
Definition: ServiceEvent.h:45
Aws::ECS::Model::ServiceEvent
Definition: ServiceEvent.h:34
Aws::ECS::Model::ServiceEvent::SetMessage
void SetMessage(const Aws::String &value)
Definition: ServiceEvent.h:127
ECS_EXPORTS.h
Aws::ECS::Model::ServiceEvent::WithMessage
ServiceEvent & WithMessage(Aws::String &&value)
Definition: ServiceEvent.h:147
Aws::ECS::Model::ServiceEvent::WithId
ServiceEvent & WithId(Aws::String &&value)
Definition: ServiceEvent.h:75
Aws::ECS::Model::ServiceEvent::SetMessage
void SetMessage(const char *value)
Definition: ServiceEvent.h:137
Aws::ECS::Model::ServiceEvent::ServiceEvent
ServiceEvent(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ServiceEvent::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ServiceEvent.h:86
Aws::ECS::Model::ServiceEvent::WithMessage
ServiceEvent & WithMessage(const Aws::String &value)
Definition: ServiceEvent.h:142