AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VolumeStatusEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API VolumeStatusEvent() = default;
31 AWS_EC2_API VolumeStatusEvent(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template <typename DescriptionT = Aws::String>
44 void SetDescription(DescriptionT&& value) {
45 m_descriptionHasBeenSet = true;
46 m_description = std::forward<DescriptionT>(value);
47 }
48 template <typename DescriptionT = Aws::String>
49 VolumeStatusEvent& WithDescription(DescriptionT&& value) {
50 SetDescription(std::forward<DescriptionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEventId() const { return m_eventId; }
60 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
61 template <typename EventIdT = Aws::String>
62 void SetEventId(EventIdT&& value) {
63 m_eventIdHasBeenSet = true;
64 m_eventId = std::forward<EventIdT>(value);
65 }
66 template <typename EventIdT = Aws::String>
67 VolumeStatusEvent& WithEventId(EventIdT&& value) {
68 SetEventId(std::forward<EventIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetEventType() const { return m_eventType; }
78 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
79 template <typename EventTypeT = Aws::String>
80 void SetEventType(EventTypeT&& value) {
81 m_eventTypeHasBeenSet = true;
82 m_eventType = std::forward<EventTypeT>(value);
83 }
84 template <typename EventTypeT = Aws::String>
85 VolumeStatusEvent& WithEventType(EventTypeT&& value) {
86 SetEventType(std::forward<EventTypeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
96 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
97 template <typename NotAfterT = Aws::Utils::DateTime>
98 void SetNotAfter(NotAfterT&& value) {
99 m_notAfterHasBeenSet = true;
100 m_notAfter = std::forward<NotAfterT>(value);
101 }
102 template <typename NotAfterT = Aws::Utils::DateTime>
103 VolumeStatusEvent& WithNotAfter(NotAfterT&& value) {
104 SetNotAfter(std::forward<NotAfterT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
114 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
115 template <typename NotBeforeT = Aws::Utils::DateTime>
116 void SetNotBefore(NotBeforeT&& value) {
117 m_notBeforeHasBeenSet = true;
118 m_notBefore = std::forward<NotBeforeT>(value);
119 }
120 template <typename NotBeforeT = Aws::Utils::DateTime>
121 VolumeStatusEvent& WithNotBefore(NotBeforeT&& value) {
122 SetNotBefore(std::forward<NotBeforeT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
132 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
133 template <typename InstanceIdT = Aws::String>
134 void SetInstanceId(InstanceIdT&& value) {
135 m_instanceIdHasBeenSet = true;
136 m_instanceId = std::forward<InstanceIdT>(value);
137 }
138 template <typename InstanceIdT = Aws::String>
139 VolumeStatusEvent& WithInstanceId(InstanceIdT&& value) {
140 SetInstanceId(std::forward<InstanceIdT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_description;
146
147 Aws::String m_eventId;
148
149 Aws::String m_eventType;
150
151 Aws::Utils::DateTime m_notAfter{};
152
153 Aws::Utils::DateTime m_notBefore{};
154
155 Aws::String m_instanceId;
156 bool m_descriptionHasBeenSet = false;
157 bool m_eventIdHasBeenSet = false;
158 bool m_eventTypeHasBeenSet = false;
159 bool m_notAfterHasBeenSet = false;
160 bool m_notBeforeHasBeenSet = false;
161 bool m_instanceIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
VolumeStatusEvent & WithInstanceId(InstanceIdT &&value)
const Aws::String & GetEventType() const
AWS_EC2_API VolumeStatusEvent()=default
void SetDescription(DescriptionT &&value)
void SetNotBefore(NotBeforeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VolumeStatusEvent & WithNotBefore(NotBeforeT &&value)
AWS_EC2_API VolumeStatusEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEventId() const
void SetNotAfter(NotAfterT &&value)
VolumeStatusEvent & WithEventId(EventIdT &&value)
VolumeStatusEvent & WithNotAfter(NotAfterT &&value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetNotAfter() const
void SetInstanceId(InstanceIdT &&value)
VolumeStatusEvent & WithDescription(DescriptionT &&value)
void SetEventType(EventTypeT &&value)
AWS_EC2_API VolumeStatusEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeStatusEvent & WithEventType(EventTypeT &&value)
const Aws::String & GetInstanceId() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetNotBefore() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream