AWS SDK for C++  0.12.9
AWS SDK for C++
ServiceEvent.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecs/ECS_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ECS
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  ServiceEvent();
41  ServiceEvent(const Aws::Utils::Json::JsonValue& jsonValue);
42  ServiceEvent& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline ServiceEvent& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline ServiceEvent& WithId(Aws::String&& value) { SetId(value); return *this;}
74 
78  inline ServiceEvent& WithId(const char* value) { SetId(value); return *this;}
79 
83  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
84 
88  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
89 
93  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
94 
98  inline ServiceEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
99 
103  inline ServiceEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
104 
108  inline const Aws::String& GetMessage() const{ return m_message; }
109 
113  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
114 
118  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
119 
123  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
124 
128  inline ServiceEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
129 
133  inline ServiceEvent& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
134 
138  inline ServiceEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
139 
140  private:
141  Aws::String m_id;
142  bool m_idHasBeenSet;
143  Aws::Utils::DateTime m_createdAt;
144  bool m_createdAtHasBeenSet;
145  Aws::String m_message;
146  bool m_messageHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace ECS
151 } // namespace Aws
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ServiceEvent.h:93
void SetId(Aws::String &&value)
Definition: ServiceEvent.h:58
const Aws::String & GetId() const
Definition: ServiceEvent.h:48
ServiceEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ServiceEvent.h:98
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
ServiceEvent & WithMessage(const char *value)
Definition: ServiceEvent.h:138
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ServiceEvent.h:88
ServiceEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ServiceEvent.h:103
ServiceEvent & WithMessage(Aws::String &&value)
Definition: ServiceEvent.h:133
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ServiceEvent.h:83
void SetId(const char *value)
Definition: ServiceEvent.h:63
ServiceEvent & WithId(const char *value)
Definition: ServiceEvent.h:78
void SetMessage(const Aws::String &value)
Definition: ServiceEvent.h:113
void SetMessage(const char *value)
Definition: ServiceEvent.h:123
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetMessage() const
Definition: ServiceEvent.h:108
void SetMessage(Aws::String &&value)
Definition: ServiceEvent.h:118
ServiceEvent & WithMessage(const Aws::String &value)
Definition: ServiceEvent.h:128
ServiceEvent & WithId(Aws::String &&value)
Definition: ServiceEvent.h:73
void SetId(const Aws::String &value)
Definition: ServiceEvent.h:53
ServiceEvent & WithId(const Aws::String &value)
Definition: ServiceEvent.h:68
JSON (JavaScript Object Notation).