AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InstanceStatusEvent.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/ec2/model/EventCode.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EC2_API InstanceStatusEvent() = default;
37 AWS_EC2_API InstanceStatusEvent(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetInstanceEventId() const { return m_instanceEventId; }
49 inline bool InstanceEventIdHasBeenSet() const { return m_instanceEventIdHasBeenSet; }
50 template<typename InstanceEventIdT = Aws::String>
51 void SetInstanceEventId(InstanceEventIdT&& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = std::forward<InstanceEventIdT>(value); }
52 template<typename InstanceEventIdT = Aws::String>
53 InstanceStatusEvent& WithInstanceEventId(InstanceEventIdT&& value) { SetInstanceEventId(std::forward<InstanceEventIdT>(value)); return *this;}
55
57
60 inline EventCode GetCode() const { return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
62 inline void SetCode(EventCode value) { m_codeHasBeenSet = true; m_code = value; }
63 inline InstanceStatusEvent& WithCode(EventCode value) { SetCode(value); return *this;}
65
67
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 InstanceStatusEvent& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
85 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
86 template<typename NotAfterT = Aws::Utils::DateTime>
87 void SetNotAfter(NotAfterT&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::forward<NotAfterT>(value); }
88 template<typename NotAfterT = Aws::Utils::DateTime>
89 InstanceStatusEvent& WithNotAfter(NotAfterT&& value) { SetNotAfter(std::forward<NotAfterT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
97 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
98 template<typename NotBeforeT = Aws::Utils::DateTime>
99 void SetNotBefore(NotBeforeT&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::forward<NotBeforeT>(value); }
100 template<typename NotBeforeT = Aws::Utils::DateTime>
101 InstanceStatusEvent& WithNotBefore(NotBeforeT&& value) { SetNotBefore(std::forward<NotBeforeT>(value)); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetNotBeforeDeadline() const { return m_notBeforeDeadline; }
109 inline bool NotBeforeDeadlineHasBeenSet() const { return m_notBeforeDeadlineHasBeenSet; }
110 template<typename NotBeforeDeadlineT = Aws::Utils::DateTime>
111 void SetNotBeforeDeadline(NotBeforeDeadlineT&& value) { m_notBeforeDeadlineHasBeenSet = true; m_notBeforeDeadline = std::forward<NotBeforeDeadlineT>(value); }
112 template<typename NotBeforeDeadlineT = Aws::Utils::DateTime>
113 InstanceStatusEvent& WithNotBeforeDeadline(NotBeforeDeadlineT&& value) { SetNotBeforeDeadline(std::forward<NotBeforeDeadlineT>(value)); return *this;}
115 private:
116
117 Aws::String m_instanceEventId;
118 bool m_instanceEventIdHasBeenSet = false;
119
121 bool m_codeHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::Utils::DateTime m_notAfter{};
127 bool m_notAfterHasBeenSet = false;
128
129 Aws::Utils::DateTime m_notBefore{};
130 bool m_notBeforeHasBeenSet = false;
131
132 Aws::Utils::DateTime m_notBeforeDeadline{};
133 bool m_notBeforeDeadlineHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace EC2
138} // 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