/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a scheduled event for an instance.

See Also:

AWS * API Reference

*/ class InstanceStatusEvent { public: AWS_EC2_API InstanceStatusEvent(); AWS_EC2_API InstanceStatusEvent(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceStatusEvent& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the event.

*/ inline const Aws::String& GetInstanceEventId() const{ return m_instanceEventId; } /** *

The ID of the event.

*/ inline bool InstanceEventIdHasBeenSet() const { return m_instanceEventIdHasBeenSet; } /** *

The ID of the event.

*/ inline void SetInstanceEventId(const Aws::String& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = value; } /** *

The ID of the event.

*/ inline void SetInstanceEventId(Aws::String&& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = std::move(value); } /** *

The ID of the event.

*/ inline void SetInstanceEventId(const char* value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId.assign(value); } /** *

The ID of the event.

*/ inline InstanceStatusEvent& WithInstanceEventId(const Aws::String& value) { SetInstanceEventId(value); return *this;} /** *

The ID of the event.

*/ inline InstanceStatusEvent& WithInstanceEventId(Aws::String&& value) { SetInstanceEventId(std::move(value)); return *this;} /** *

The ID of the event.

*/ inline InstanceStatusEvent& WithInstanceEventId(const char* value) { SetInstanceEventId(value); return *this;} /** *

The event code.

*/ inline const EventCode& GetCode() const{ return m_code; } /** *

The event code.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The event code.

*/ inline void SetCode(const EventCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The event code.

*/ inline void SetCode(EventCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The event code.

*/ inline InstanceStatusEvent& WithCode(const EventCode& value) { SetCode(value); return *this;} /** *

The event code.

*/ inline InstanceStatusEvent& WithCode(EventCode&& value) { SetCode(std::move(value)); return *this;} /** *

A description of the event.

After a scheduled event is completed, it * can still be described for up to a week. If the event has been completed, this * description starts with the following text: [Completed].

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the event.

After a scheduled event is completed, it * can still be described for up to a week. If the event has been completed, this * description starts with the following text: [Completed].

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the event.

After a scheduled event is completed, it * can still be described for up to a week. If the event has been completed, this * description starts with the following text: [Completed].

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the event.

After a scheduled event is completed, it * can still be described for up to a week. If the event has been completed, this * description starts with the following text: [Completed].

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the event.

After a scheduled event is completed, it * can still be described for up to a week. If the event has been completed, this * description starts with the following text: [Completed].

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the event.

After a scheduled event is completed, it * can still be described for up to a week. If the event has been completed, this * description starts with the following text: [Completed].

*/ inline InstanceStatusEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the event.

After a scheduled event is completed, it * can still be described for up to a week. If the event has been completed, this * description starts with the following text: [Completed].

*/ inline InstanceStatusEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the event.

After a scheduled event is completed, it * can still be described for up to a week. If the event has been completed, this * description starts with the following text: [Completed].

*/ inline InstanceStatusEvent& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The latest scheduled end time for the event.

*/ inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; } /** *

The latest scheduled end time for the event.

*/ inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; } /** *

The latest scheduled end time for the event.

*/ inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; } /** *

The latest scheduled end time for the event.

*/ inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); } /** *

The latest scheduled end time for the event.

*/ inline InstanceStatusEvent& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;} /** *

The latest scheduled end time for the event.

*/ inline InstanceStatusEvent& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(value)); return *this;} /** *

The earliest scheduled start time for the event.

*/ inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; } /** *

The earliest scheduled start time for the event.

*/ inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; } /** *

The earliest scheduled start time for the event.

*/ inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; } /** *

The earliest scheduled start time for the event.

*/ inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); } /** *

The earliest scheduled start time for the event.

*/ inline InstanceStatusEvent& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;} /** *

The earliest scheduled start time for the event.

*/ inline InstanceStatusEvent& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;} /** *

The deadline for starting the event.

*/ inline const Aws::Utils::DateTime& GetNotBeforeDeadline() const{ return m_notBeforeDeadline; } /** *

The deadline for starting the event.

*/ inline bool NotBeforeDeadlineHasBeenSet() const { return m_notBeforeDeadlineHasBeenSet; } /** *

The deadline for starting the event.

*/ inline void SetNotBeforeDeadline(const Aws::Utils::DateTime& value) { m_notBeforeDeadlineHasBeenSet = true; m_notBeforeDeadline = value; } /** *

The deadline for starting the event.

*/ inline void SetNotBeforeDeadline(Aws::Utils::DateTime&& value) { m_notBeforeDeadlineHasBeenSet = true; m_notBeforeDeadline = std::move(value); } /** *

The deadline for starting the event.

*/ inline InstanceStatusEvent& WithNotBeforeDeadline(const Aws::Utils::DateTime& value) { SetNotBeforeDeadline(value); return *this;} /** *

The deadline for starting the event.

*/ inline InstanceStatusEvent& WithNotBeforeDeadline(Aws::Utils::DateTime&& value) { SetNotBeforeDeadline(std::move(value)); return *this;} private: Aws::String m_instanceEventId; bool m_instanceEventIdHasBeenSet = false; EventCode m_code; bool m_codeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_notAfter; bool m_notAfterHasBeenSet = false; Aws::Utils::DateTime m_notBefore; bool m_notBeforeHasBeenSet = false; Aws::Utils::DateTime m_notBeforeDeadline; bool m_notBeforeDeadlineHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws