AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VolumeStatusAction.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API VolumeStatusAction();
35 AWS_EC2_API VolumeStatusAction(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
47 inline const Aws::String& GetCode() const{ return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
50 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
51 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
52 inline VolumeStatusAction& WithCode(const Aws::String& value) { SetCode(value); return *this;}
53 inline VolumeStatusAction& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
54 inline VolumeStatusAction& WithCode(const char* value) { SetCode(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline VolumeStatusAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline VolumeStatusAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline VolumeStatusAction& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const Aws::String& GetEventId() const{ return m_eventId; }
76 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
77 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
78 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
79 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
80 inline VolumeStatusAction& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
81 inline VolumeStatusAction& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
82 inline VolumeStatusAction& WithEventId(const char* value) { SetEventId(value); return *this;}
84
86
89 inline const Aws::String& GetEventType() const{ return m_eventType; }
90 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
91 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
92 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
93 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
94 inline VolumeStatusAction& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
95 inline VolumeStatusAction& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
96 inline VolumeStatusAction& WithEventType(const char* value) { SetEventType(value); return *this;}
98 private:
99
100 Aws::String m_code;
101 bool m_codeHasBeenSet = false;
102
103 Aws::String m_description;
104 bool m_descriptionHasBeenSet = false;
105
106 Aws::String m_eventId;
107 bool m_eventIdHasBeenSet = false;
108
109 Aws::String m_eventType;
110 bool m_eventTypeHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace EC2
115} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VolumeStatusAction & WithEventType(const char *value)
VolumeStatusAction & WithEventId(const Aws::String &value)
VolumeStatusAction & WithEventId(const char *value)
AWS_EC2_API VolumeStatusAction(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEventType(Aws::String &&value)
AWS_EC2_API VolumeStatusAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeStatusAction & WithDescription(Aws::String &&value)
VolumeStatusAction & WithEventType(const Aws::String &value)
VolumeStatusAction & WithDescription(const char *value)
VolumeStatusAction & WithEventId(Aws::String &&value)
void SetEventType(const Aws::String &value)
const Aws::String & GetEventId() const
VolumeStatusAction & WithEventType(Aws::String &&value)
VolumeStatusAction & WithDescription(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VolumeStatusAction & WithCode(const Aws::String &value)
VolumeStatusAction & WithCode(const char *value)
void SetDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
VolumeStatusAction & WithCode(Aws::String &&value)
const Aws::String & GetCode() const
const Aws::String & GetDescription() const
const Aws::String & GetEventType() const
void SetEventId(Aws::String &&value)
void SetCode(const Aws::String &value)
void SetEventId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream