AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInstanceEventId(const Aws::String& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = value; }
51 inline void SetInstanceEventId(Aws::String&& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = std::move(value); }
52 inline void SetInstanceEventId(const char* value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId.assign(value); }
53 inline InstanceStatusEvent& WithInstanceEventId(const Aws::String& value) { SetInstanceEventId(value); return *this;}
54 inline InstanceStatusEvent& WithInstanceEventId(Aws::String&& value) { SetInstanceEventId(std::move(value)); return *this;}
55 inline InstanceStatusEvent& WithInstanceEventId(const char* value) { SetInstanceEventId(value); return *this;}
57
59
62 inline const EventCode& GetCode() const{ return m_code; }
63 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
64 inline void SetCode(const EventCode& value) { m_codeHasBeenSet = true; m_code = value; }
65 inline void SetCode(EventCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
66 inline InstanceStatusEvent& WithCode(const EventCode& value) { SetCode(value); return *this;}
67 inline InstanceStatusEvent& WithCode(EventCode&& value) { SetCode(std::move(value)); return *this;}
69
71
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline InstanceStatusEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline InstanceStatusEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline InstanceStatusEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
91 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
92 inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
93 inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); }
94 inline InstanceStatusEvent& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
95 inline InstanceStatusEvent& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
103 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
104 inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
105 inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
106 inline InstanceStatusEvent& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
107 inline InstanceStatusEvent& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetNotBeforeDeadline() const{ return m_notBeforeDeadline; }
115 inline bool NotBeforeDeadlineHasBeenSet() const { return m_notBeforeDeadlineHasBeenSet; }
116 inline void SetNotBeforeDeadline(const Aws::Utils::DateTime& value) { m_notBeforeDeadlineHasBeenSet = true; m_notBeforeDeadline = value; }
117 inline void SetNotBeforeDeadline(Aws::Utils::DateTime&& value) { m_notBeforeDeadlineHasBeenSet = true; m_notBeforeDeadline = std::move(value); }
119 inline InstanceStatusEvent& WithNotBeforeDeadline(Aws::Utils::DateTime&& value) { SetNotBeforeDeadline(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_instanceEventId;
124 bool m_instanceEventIdHasBeenSet = false;
125
126 EventCode m_code;
127 bool m_codeHasBeenSet = false;
128
129 Aws::String m_description;
130 bool m_descriptionHasBeenSet = false;
131
132 Aws::Utils::DateTime m_notAfter;
133 bool m_notAfterHasBeenSet = false;
134
135 Aws::Utils::DateTime m_notBefore;
136 bool m_notBeforeHasBeenSet = false;
137
138 Aws::Utils::DateTime m_notBeforeDeadline;
139 bool m_notBeforeDeadlineHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace EC2
144} // namespace Aws
void SetNotBefore(Aws::Utils::DateTime &&value)
AWS_EC2_API InstanceStatusEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceStatusEvent & WithNotBeforeDeadline(Aws::Utils::DateTime &&value)
void SetInstanceEventId(const Aws::String &value)
InstanceStatusEvent & WithInstanceEventId(const Aws::String &value)
void SetNotBefore(const Aws::Utils::DateTime &value)
void SetNotBeforeDeadline(const Aws::Utils::DateTime &value)
void SetDescription(Aws::String &&value)
InstanceStatusEvent & WithNotAfter(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetNotAfter() const
AWS_EC2_API InstanceStatusEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceStatusEvent & WithCode(EventCode &&value)
const Aws::String & GetInstanceEventId() const
InstanceStatusEvent & WithNotAfter(const Aws::Utils::DateTime &value)
InstanceStatusEvent & WithCode(const EventCode &value)
InstanceStatusEvent & WithInstanceEventId(Aws::String &&value)
const Aws::Utils::DateTime & GetNotBeforeDeadline() const
void SetNotAfter(Aws::Utils::DateTime &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetNotBeforeDeadline(Aws::Utils::DateTime &&value)
void SetCode(const EventCode &value)
InstanceStatusEvent & WithDescription(const char *value)
InstanceStatusEvent & WithInstanceEventId(const char *value)
void SetDescription(const Aws::String &value)
InstanceStatusEvent & WithNotBefore(Aws::Utils::DateTime &&value)
const Aws::String & GetDescription() const
InstanceStatusEvent & WithNotBefore(const Aws::Utils::DateTime &value)
void SetNotAfter(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetNotBefore() const
InstanceStatusEvent & WithDescription(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceStatusEvent & WithDescription(const Aws::String &value)
InstanceStatusEvent & WithNotBeforeDeadline(const Aws::Utils::DateTime &value)
void SetInstanceEventId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream