AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VolumeStatusAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API VolumeStatusAction() = default;
30 AWS_EC2_API VolumeStatusAction(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
41 inline const Aws::String& GetCode() const { return m_code; }
42 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
43 template <typename CodeT = Aws::String>
44 void SetCode(CodeT&& value) {
45 m_codeHasBeenSet = true;
46 m_code = std::forward<CodeT>(value);
47 }
48 template <typename CodeT = Aws::String>
49 VolumeStatusAction& WithCode(CodeT&& value) {
50 SetCode(std::forward<CodeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 VolumeStatusAction& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetEventId() const { return m_eventId; }
78 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
79 template <typename EventIdT = Aws::String>
80 void SetEventId(EventIdT&& value) {
81 m_eventIdHasBeenSet = true;
82 m_eventId = std::forward<EventIdT>(value);
83 }
84 template <typename EventIdT = Aws::String>
85 VolumeStatusAction& WithEventId(EventIdT&& value) {
86 SetEventId(std::forward<EventIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetEventType() const { return m_eventType; }
96 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
97 template <typename EventTypeT = Aws::String>
98 void SetEventType(EventTypeT&& value) {
99 m_eventTypeHasBeenSet = true;
100 m_eventType = std::forward<EventTypeT>(value);
101 }
102 template <typename EventTypeT = Aws::String>
103 VolumeStatusAction& WithEventType(EventTypeT&& value) {
104 SetEventType(std::forward<EventTypeT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_code;
110
111 Aws::String m_description;
112
113 Aws::String m_eventId;
114
115 Aws::String m_eventType;
116 bool m_codeHasBeenSet = false;
117 bool m_descriptionHasBeenSet = false;
118 bool m_eventIdHasBeenSet = false;
119 bool m_eventTypeHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
VolumeStatusAction & WithEventType(EventTypeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API VolumeStatusAction(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API VolumeStatusAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEventId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VolumeStatusAction & WithCode(CodeT &&value)
const Aws::String & GetCode() const
const Aws::String & GetDescription() const
const Aws::String & GetEventType() const
void SetEventType(EventTypeT &&value)
VolumeStatusAction & WithDescription(DescriptionT &&value)
VolumeStatusAction & WithEventId(EventIdT &&value)
void SetDescription(DescriptionT &&value)
AWS_EC2_API VolumeStatusAction()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream