AWS SDK for C++  0.12.9
AWS SDK for C++
Event.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace GameLift
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  Event();
43  Event(const Aws::Utils::Json::JsonValue& jsonValue);
44  Event& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetEventId() const{ return m_eventId; }
51 
55  inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
56 
60  inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
61 
65  inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
66 
70  inline Event& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
71 
75  inline Event& WithEventId(Aws::String&& value) { SetEventId(value); return *this;}
76 
80  inline Event& WithEventId(const char* value) { SetEventId(value); return *this;}
81 
85  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
86 
90  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
91 
95  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
96 
100  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
101 
105  inline Event& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
106 
110  inline Event& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
111 
115  inline Event& WithResourceId(const char* value) { SetResourceId(value); return *this;}
116 
120  inline const EventCode& GetEventCode() const{ return m_eventCode; }
121 
125  inline void SetEventCode(const EventCode& value) { m_eventCodeHasBeenSet = true; m_eventCode = value; }
126 
130  inline void SetEventCode(EventCode&& value) { m_eventCodeHasBeenSet = true; m_eventCode = value; }
131 
135  inline Event& WithEventCode(const EventCode& value) { SetEventCode(value); return *this;}
136 
140  inline Event& WithEventCode(EventCode&& value) { SetEventCode(value); return *this;}
141 
145  inline const Aws::String& GetMessage() const{ return m_message; }
146 
150  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
151 
155  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
156 
160  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
161 
165  inline Event& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
166 
170  inline Event& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
171 
175  inline Event& WithMessage(const char* value) { SetMessage(value); return *this;}
176 
181  inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; }
182 
187  inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
188 
193  inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; }
194 
199  inline Event& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;}
200 
205  inline Event& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(value); return *this;}
206 
207  private:
208  Aws::String m_eventId;
209  bool m_eventIdHasBeenSet;
210  Aws::String m_resourceId;
211  bool m_resourceIdHasBeenSet;
212  EventCode m_eventCode;
213  bool m_eventCodeHasBeenSet;
214  Aws::String m_message;
215  bool m_messageHasBeenSet;
216  Aws::Utils::DateTime m_eventTime;
217  bool m_eventTimeHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace GameLift
222 } // namespace Aws
const Aws::Utils::DateTime & GetEventTime() const
Definition: Event.h:181
const Aws::String & GetEventId() const
Definition: Event.h:50
Event & WithEventCode(EventCode &&value)
Definition: Event.h:140
void SetEventId(Aws::String &&value)
Definition: Event.h:60
#define AWS_GAMELIFT_API
const EventCode & GetEventCode() const
Definition: Event.h:120
void SetEventTime(const Aws::Utils::DateTime &value)
Definition: Event.h:187
Event & WithMessage(Aws::String &&value)
Definition: Event.h:170
Event & WithEventId(const Aws::String &value)
Definition: Event.h:70
Event & WithResourceId(const Aws::String &value)
Definition: Event.h:105
void SetMessage(Aws::String &&value)
Definition: Event.h:155
const Aws::String & GetResourceId() const
Definition: Event.h:85
void SetResourceId(const Aws::String &value)
Definition: Event.h:90
void SetEventCode(const EventCode &value)
Definition: Event.h:125
void SetResourceId(const char *value)
Definition: Event.h:100
void SetResourceId(Aws::String &&value)
Definition: Event.h:95
Event & WithEventId(const char *value)
Definition: Event.h:80
void SetEventId(const char *value)
Definition: Event.h:65
Event & WithEventId(Aws::String &&value)
Definition: Event.h:75
Event & WithEventTime(const Aws::Utils::DateTime &value)
Definition: Event.h:199
void SetMessage(const Aws::String &value)
Definition: Event.h:150
Event & WithEventCode(const EventCode &value)
Definition: Event.h:135
Event & WithResourceId(const char *value)
Definition: Event.h:115
void SetMessage(const char *value)
Definition: Event.h:160
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetMessage() const
Definition: Event.h:145
Event & WithMessage(const char *value)
Definition: Event.h:175
void SetEventTime(Aws::Utils::DateTime &&value)
Definition: Event.h:193
void SetEventCode(EventCode &&value)
Definition: Event.h:130
Event & WithResourceId(Aws::String &&value)
Definition: Event.h:110
void SetEventId(const Aws::String &value)
Definition: Event.h:55
JSON (JavaScript Object Notation).
Event & WithMessage(const Aws::String &value)
Definition: Event.h:165
Event & WithEventTime(Aws::Utils::DateTime &&value)
Definition: Event.h:205