AWS SDK for C++  0.14.3
AWS SDK for C++
EventInformation.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/ec2/EC2_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  EventInformation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
51  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
52 
57  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
58 
63  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
64 
69  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
70 
75  inline EventInformation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
76 
81  inline EventInformation& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
82 
87  inline EventInformation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
88 
125  inline const Aws::String& GetEventSubType() const{ return m_eventSubType; }
126 
163  inline void SetEventSubType(const Aws::String& value) { m_eventSubTypeHasBeenSet = true; m_eventSubType = value; }
164 
201  inline void SetEventSubType(Aws::String&& value) { m_eventSubTypeHasBeenSet = true; m_eventSubType = value; }
202 
239  inline void SetEventSubType(const char* value) { m_eventSubTypeHasBeenSet = true; m_eventSubType.assign(value); }
240 
277  inline EventInformation& WithEventSubType(const Aws::String& value) { SetEventSubType(value); return *this;}
278 
315  inline EventInformation& WithEventSubType(Aws::String&& value) { SetEventSubType(value); return *this;}
316 
353  inline EventInformation& WithEventSubType(const char* value) { SetEventSubType(value); return *this;}
354 
358  inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
359 
363  inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
364 
368  inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
369 
373  inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
374 
378  inline EventInformation& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;}
379 
383  inline EventInformation& WithEventDescription(Aws::String&& value) { SetEventDescription(value); return *this;}
384 
388  inline EventInformation& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
389 
390  private:
391  Aws::String m_instanceId;
392  bool m_instanceIdHasBeenSet;
393  Aws::String m_eventSubType;
394  bool m_eventSubTypeHasBeenSet;
395  Aws::String m_eventDescription;
396  bool m_eventDescriptionHasBeenSet;
397  };
398 
399 } // namespace Model
400 } // namespace EC2
401 } // namespace Aws
void SetEventDescription(const char *value)
void SetEventSubType(const char *value)
void SetInstanceId(Aws::String &&value)
EventInformation & WithEventSubType(const char *value)
EventInformation & WithEventDescription(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
void SetEventDescription(Aws::String &&value)
EventInformation & WithEventDescription(const Aws::String &value)
EventInformation & WithInstanceId(const Aws::String &value)
const Aws::String & GetEventDescription() const
EventInformation & WithEventSubType(const Aws::String &value)
void SetInstanceId(const char *value)
EventInformation & WithEventSubType(Aws::String &&value)
EventInformation & WithInstanceId(Aws::String &&value)
EventInformation & WithEventDescription(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetInstanceId() const
void SetEventDescription(const Aws::String &value)
void SetEventSubType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetEventSubType() const
void SetEventSubType(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
JSON (JavaScript Object Notation).
EventInformation & WithInstanceId(const char *value)