AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
InstanceStatusEvent.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#include <aws/ec2/model/EventCode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
30 public:
31 AWS_EC2_API InstanceStatusEvent() = default;
32 AWS_EC2_API InstanceStatusEvent(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetInstanceEventId() const { return m_instanceEventId; }
43 inline bool InstanceEventIdHasBeenSet() const { return m_instanceEventIdHasBeenSet; }
44 template <typename InstanceEventIdT = Aws::String>
45 void SetInstanceEventId(InstanceEventIdT&& value) {
46 m_instanceEventIdHasBeenSet = true;
47 m_instanceEventId = std::forward<InstanceEventIdT>(value);
48 }
49 template <typename InstanceEventIdT = Aws::String>
50 InstanceStatusEvent& WithInstanceEventId(InstanceEventIdT&& value) {
51 SetInstanceEventId(std::forward<InstanceEventIdT>(value));
52 return *this;
53 }
55
57
60 inline EventCode GetCode() const { return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
62 inline void SetCode(EventCode value) {
63 m_codeHasBeenSet = true;
64 m_code = value;
65 }
67 SetCode(value);
68 return *this;
69 }
71
73
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 InstanceStatusEvent& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
97 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
98 template <typename NotAfterT = Aws::Utils::DateTime>
99 void SetNotAfter(NotAfterT&& value) {
100 m_notAfterHasBeenSet = true;
101 m_notAfter = std::forward<NotAfterT>(value);
102 }
103 template <typename NotAfterT = Aws::Utils::DateTime>
104 InstanceStatusEvent& WithNotAfter(NotAfterT&& value) {
105 SetNotAfter(std::forward<NotAfterT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
115 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
116 template <typename NotBeforeT = Aws::Utils::DateTime>
117 void SetNotBefore(NotBeforeT&& value) {
118 m_notBeforeHasBeenSet = true;
119 m_notBefore = std::forward<NotBeforeT>(value);
120 }
121 template <typename NotBeforeT = Aws::Utils::DateTime>
122 InstanceStatusEvent& WithNotBefore(NotBeforeT&& value) {
123 SetNotBefore(std::forward<NotBeforeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetNotBeforeDeadline() const { return m_notBeforeDeadline; }
133 inline bool NotBeforeDeadlineHasBeenSet() const { return m_notBeforeDeadlineHasBeenSet; }
134 template <typename NotBeforeDeadlineT = Aws::Utils::DateTime>
135 void SetNotBeforeDeadline(NotBeforeDeadlineT&& value) {
136 m_notBeforeDeadlineHasBeenSet = true;
137 m_notBeforeDeadline = std::forward<NotBeforeDeadlineT>(value);
138 }
139 template <typename NotBeforeDeadlineT = Aws::Utils::DateTime>
140 InstanceStatusEvent& WithNotBeforeDeadline(NotBeforeDeadlineT&& value) {
141 SetNotBeforeDeadline(std::forward<NotBeforeDeadlineT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_instanceEventId;
147
149
150 Aws::String m_description;
151
152 Aws::Utils::DateTime m_notAfter{};
153
154 Aws::Utils::DateTime m_notBefore{};
155
156 Aws::Utils::DateTime m_notBeforeDeadline{};
157 bool m_instanceEventIdHasBeenSet = false;
158 bool m_codeHasBeenSet = false;
159 bool m_descriptionHasBeenSet = false;
160 bool m_notAfterHasBeenSet = false;
161 bool m_notBeforeHasBeenSet = false;
162 bool m_notBeforeDeadlineHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
InstanceStatusEvent & WithNotAfter(NotAfterT &&value)
AWS_EC2_API InstanceStatusEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API InstanceStatusEvent()=default
InstanceStatusEvent & WithCode(EventCode value)
const Aws::Utils::DateTime & GetNotAfter() const
AWS_EC2_API InstanceStatusEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceEventId() const
InstanceStatusEvent & WithInstanceEventId(InstanceEventIdT &&value)
InstanceStatusEvent & WithNotBeforeDeadline(NotBeforeDeadlineT &&value)
const Aws::Utils::DateTime & GetNotBeforeDeadline() const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceStatusEvent & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
InstanceStatusEvent & WithNotBefore(NotBeforeT &&value)
void SetNotBeforeDeadline(NotBeforeDeadlineT &&value)
void SetInstanceEventId(InstanceEventIdT &&value)
const Aws::Utils::DateTime & GetNotBefore() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream