AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CodeT = Aws::String>
50 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
51 template<typename CodeT = Aws::String>
52 VolumeStatusAction& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 VolumeStatusAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetEventId() const { return m_eventId; }
72 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
73 template<typename EventIdT = Aws::String>
74 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
75 template<typename EventIdT = Aws::String>
76 VolumeStatusAction& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetEventType() const { return m_eventType; }
84 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
85 template<typename EventTypeT = Aws::String>
86 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
87 template<typename EventTypeT = Aws::String>
88 VolumeStatusAction& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
90 private:
91
92 Aws::String m_code;
93 bool m_codeHasBeenSet = false;
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97
98 Aws::String m_eventId;
99 bool m_eventIdHasBeenSet = false;
100
101 Aws::String m_eventType;
102 bool m_eventTypeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EC2
107} // 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