AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
52 inline VolumeStatusEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
53 inline VolumeStatusEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline VolumeStatusEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
61 inline const Aws::String& GetEventId() const{ return m_eventId; }
62 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
63 inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
64 inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
65 inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
66 inline VolumeStatusEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
67 inline VolumeStatusEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
68 inline VolumeStatusEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
70
72
75 inline const Aws::String& GetEventType() const{ return m_eventType; }
76 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
77 inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
78 inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
79 inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
80 inline VolumeStatusEvent& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
81 inline VolumeStatusEvent& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
82 inline VolumeStatusEvent& WithEventType(const char* value) { SetEventType(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
90 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
91 inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
92 inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); }
93 inline VolumeStatusEvent& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
94 inline VolumeStatusEvent& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
102 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
103 inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
104 inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
105 inline VolumeStatusEvent& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
106 inline VolumeStatusEvent& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
108
110
113 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
114 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
115 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
116 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
117 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
118 inline VolumeStatusEvent& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
119 inline VolumeStatusEvent& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
120 inline VolumeStatusEvent& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
122 private:
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 Aws::String m_eventId;
128 bool m_eventIdHasBeenSet = false;
129
130 Aws::String m_eventType;
131 bool m_eventTypeHasBeenSet = false;
132
133 Aws::Utils::DateTime m_notAfter;
134 bool m_notAfterHasBeenSet = false;
135
136 Aws::Utils::DateTime m_notBefore;
137 bool m_notBeforeHasBeenSet = false;
138
139 Aws::String m_instanceId;
140 bool m_instanceIdHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace EC2
145} // namespace Aws
const Aws::String & GetEventType() const
void SetNotAfter(const Aws::Utils::DateTime &value)
VolumeStatusEvent & WithInstanceId(const char *value)
VolumeStatusEvent & WithInstanceId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VolumeStatusEvent & WithNotBefore(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
void SetEventId(const Aws::String &value)
AWS_EC2_API VolumeStatusEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEventId() const
void SetDescription(Aws::String &&value)
VolumeStatusEvent & WithNotAfter(Aws::Utils::DateTime &&value)
void SetEventType(const char *value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetNotAfter() const
void SetInstanceId(const Aws::String &value)
void SetDescription(const char *value)
AWS_EC2_API VolumeStatusEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VolumeStatusEvent & WithEventId(const char *value)
VolumeStatusEvent & WithDescription(Aws::String &&value)
VolumeStatusEvent & WithNotAfter(const Aws::Utils::DateTime &value)
VolumeStatusEvent & WithEventType(const char *value)
const Aws::String & GetInstanceId() const
VolumeStatusEvent & WithEventId(const Aws::String &value)
VolumeStatusEvent & WithEventId(Aws::String &&value)
VolumeStatusEvent & WithDescription(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetNotBefore(const Aws::Utils::DateTime &value)
void SetEventType(Aws::String &&value)
void SetInstanceId(Aws::String &&value)
VolumeStatusEvent & WithEventType(Aws::String &&value)
VolumeStatusEvent & WithDescription(const char *value)
void SetInstanceId(const char *value)
VolumeStatusEvent & WithInstanceId(const Aws::String &value)
void SetNotAfter(Aws::Utils::DateTime &&value)
VolumeStatusEvent & WithNotBefore(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetNotBefore() const
void SetNotBefore(Aws::Utils::DateTime &&value)
void SetEventId(Aws::String &&value)
VolumeStatusEvent & WithEventType(const Aws::String &value)
void SetEventType(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