AWS SDK for C++  1.9.75
AWS SDK for C++
EventInformation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetEventDescription() const{ return m_eventDescription; }
46 
50  inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; }
51 
55  inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; }
56 
60  inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::move(value); }
61 
65  inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); }
66 
70  inline EventInformation& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;}
71 
75  inline EventInformation& WithEventDescription(Aws::String&& value) { SetEventDescription(std::move(value)); return *this;}
76 
80  inline EventInformation& WithEventDescription(const char* value) { SetEventDescription(value); return *this;}
81 
82 
126  inline const Aws::String& GetEventSubType() const{ return m_eventSubType; }
127 
171  inline bool EventSubTypeHasBeenSet() const { return m_eventSubTypeHasBeenSet; }
172 
216  inline void SetEventSubType(const Aws::String& value) { m_eventSubTypeHasBeenSet = true; m_eventSubType = value; }
217 
261  inline void SetEventSubType(Aws::String&& value) { m_eventSubTypeHasBeenSet = true; m_eventSubType = std::move(value); }
262 
306  inline void SetEventSubType(const char* value) { m_eventSubTypeHasBeenSet = true; m_eventSubType.assign(value); }
307 
351  inline EventInformation& WithEventSubType(const Aws::String& value) { SetEventSubType(value); return *this;}
352 
396  inline EventInformation& WithEventSubType(Aws::String&& value) { SetEventSubType(std::move(value)); return *this;}
397 
441  inline EventInformation& WithEventSubType(const char* value) { SetEventSubType(value); return *this;}
442 
443 
448  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
449 
454  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
455 
460  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
461 
466  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
467 
472  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
473 
478  inline EventInformation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
479 
484  inline EventInformation& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
485 
490  inline EventInformation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
491 
492  private:
493 
494  Aws::String m_eventDescription;
495  bool m_eventDescriptionHasBeenSet;
496 
497  Aws::String m_eventSubType;
498  bool m_eventSubTypeHasBeenSet;
499 
500  Aws::String m_instanceId;
501  bool m_instanceIdHasBeenSet;
502  };
503 
504 } // namespace Model
505 } // namespace EC2
506 } // namespace Aws
Aws::EC2::Model::EventInformation::SetEventDescription
void SetEventDescription(Aws::String &&value)
Definition: EventInformation.h:60
Aws::EC2::Model::EventInformation
Definition: EventInformation.h:32
Aws::EC2::Model::EventInformation::EventSubTypeHasBeenSet
bool EventSubTypeHasBeenSet() const
Definition: EventInformation.h:171
Aws::EC2::Model::EventInformation::GetEventSubType
const Aws::String & GetEventSubType() const
Definition: EventInformation.h:126
Aws::EC2::Model::EventInformation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::EventInformation::SetEventSubType
void SetEventSubType(const char *value)
Definition: EventInformation.h:306
Aws::EC2::Model::EventInformation::WithEventDescription
EventInformation & WithEventDescription(const char *value)
Definition: EventInformation.h:80
Aws::EC2::Model::EventInformation::SetEventDescription
void SetEventDescription(const char *value)
Definition: EventInformation.h:65
AWSStreamFwd.h
Aws::EC2::Model::EventInformation::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: EventInformation.h:460
Aws::EC2::Model::EventInformation::EventInformation
EventInformation()
Aws::EC2::Model::EventInformation::GetEventDescription
const Aws::String & GetEventDescription() const
Definition: EventInformation.h:45
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::EventInformation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::EventInformation::SetEventDescription
void SetEventDescription(const Aws::String &value)
Definition: EventInformation.h:55
Aws::EC2::Model::EventInformation::WithEventDescription
EventInformation & WithEventDescription(const Aws::String &value)
Definition: EventInformation.h:70
Aws::EC2::Model::EventInformation::WithEventSubType
EventInformation & WithEventSubType(const char *value)
Definition: EventInformation.h:441
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::EventInformation::WithInstanceId
EventInformation & WithInstanceId(const Aws::String &value)
Definition: EventInformation.h:478
Aws::EC2::Model::EventInformation::operator=
EventInformation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::EventInformation::WithEventSubType
EventInformation & WithEventSubType(const Aws::String &value)
Definition: EventInformation.h:351
Aws::EC2::Model::EventInformation::WithEventSubType
EventInformation & WithEventSubType(Aws::String &&value)
Definition: EventInformation.h:396
Aws::EC2::Model::EventInformation::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: EventInformation.h:454
AWSString.h
Aws::EC2::Model::EventInformation::WithInstanceId
EventInformation & WithInstanceId(const char *value)
Definition: EventInformation.h:490
Aws::EC2::Model::EventInformation::EventInformation
EventInformation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::EventInformation::WithInstanceId
EventInformation & WithInstanceId(Aws::String &&value)
Definition: EventInformation.h:484
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::EventInformation::EventDescriptionHasBeenSet
bool EventDescriptionHasBeenSet() const
Definition: EventInformation.h:50
Aws::EC2::Model::EventInformation::WithEventDescription
EventInformation & WithEventDescription(Aws::String &&value)
Definition: EventInformation.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::EventInformation::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: EventInformation.h:448
Aws::EC2::Model::EventInformation::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: EventInformation.h:466
Aws::EC2::Model::EventInformation::SetEventSubType
void SetEventSubType(const Aws::String &value)
Definition: EventInformation.h:216
Aws::EC2::Model::EventInformation::SetEventSubType
void SetEventSubType(Aws::String &&value)
Definition: EventInformation.h:261
EC2_EXPORTS.h
Aws::EC2::Model::EventInformation::SetInstanceId
void SetInstanceId(const char *value)
Definition: EventInformation.h:472