AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VolumeStatusEvent.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 <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API VolumeStatusEvent() = default;
36 AWS_EC2_API VolumeStatusEvent(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetDescription() const { return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 template<typename DescriptionT = Aws::String>
50 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
51 template<typename DescriptionT = Aws::String>
52 VolumeStatusEvent& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
63 template<typename EventIdT = Aws::String>
64 VolumeStatusEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetEventType() const { return m_eventType; }
72 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
73 template<typename EventTypeT = Aws::String>
74 void SetEventType(EventTypeT&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::forward<EventTypeT>(value); }
75 template<typename EventTypeT = Aws::String>
76 VolumeStatusEvent& WithEventType(EventTypeT&& value) { SetEventType(std::forward<EventTypeT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
84 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
85 template<typename NotAfterT = Aws::Utils::DateTime>
86 void SetNotAfter(NotAfterT&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::forward<NotAfterT>(value); }
87 template<typename NotAfterT = Aws::Utils::DateTime>
88 VolumeStatusEvent& WithNotAfter(NotAfterT&& value) { SetNotAfter(std::forward<NotAfterT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
96 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
97 template<typename NotBeforeT = Aws::Utils::DateTime>
98 void SetNotBefore(NotBeforeT&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::forward<NotBeforeT>(value); }
99 template<typename NotBeforeT = Aws::Utils::DateTime>
100 VolumeStatusEvent& WithNotBefore(NotBeforeT&& value) { SetNotBefore(std::forward<NotBeforeT>(value)); return *this;}
102
104
107 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
108 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
109 template<typename InstanceIdT = Aws::String>
110 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
111 template<typename InstanceIdT = Aws::String>
112 VolumeStatusEvent& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
114 private:
115
116 Aws::String m_description;
117 bool m_descriptionHasBeenSet = false;
118
119 Aws::String m_eventId;
120 bool m_eventIdHasBeenSet = false;
121
122 Aws::String m_eventType;
123 bool m_eventTypeHasBeenSet = false;
124
125 Aws::Utils::DateTime m_notAfter{};
126 bool m_notAfterHasBeenSet = false;
127
128 Aws::Utils::DateTime m_notBefore{};
129 bool m_notBeforeHasBeenSet = false;
130
131 Aws::String m_instanceId;
132 bool m_instanceIdHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // 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