/** * 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 ElasticBeanstalk { namespace Model { /** *

Describes an event.

See Also:

AWS * API Reference

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

The date when the event occurred.

*/ inline const Aws::Utils::DateTime& GetEventDate() const{ return m_eventDate; } /** *

The date when the event occurred.

*/ inline bool EventDateHasBeenSet() const { return m_eventDateHasBeenSet; } /** *

The date when the event occurred.

*/ inline void SetEventDate(const Aws::Utils::DateTime& value) { m_eventDateHasBeenSet = true; m_eventDate = value; } /** *

The date when the event occurred.

*/ inline void SetEventDate(Aws::Utils::DateTime&& value) { m_eventDateHasBeenSet = true; m_eventDate = std::move(value); } /** *

The date when the event occurred.

*/ inline EventDescription& WithEventDate(const Aws::Utils::DateTime& value) { SetEventDate(value); return *this;} /** *

The date when the event occurred.

*/ inline EventDescription& WithEventDate(Aws::Utils::DateTime&& value) { SetEventDate(std::move(value)); return *this;} /** *

The event message.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The event message.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The event message.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The event message.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The event message.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The event message.

*/ inline EventDescription& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The event message.

*/ inline EventDescription& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The event message.

*/ inline EventDescription& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The application associated with the event.

*/ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** *

The application associated with the event.

*/ inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } /** *

The application associated with the event.

*/ inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } /** *

The application associated with the event.

*/ inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } /** *

The application associated with the event.

*/ inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } /** *

The application associated with the event.

*/ inline EventDescription& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} /** *

The application associated with the event.

*/ inline EventDescription& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} /** *

The application associated with the event.

*/ inline EventDescription& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** *

The release label for the application version associated with this event.

*/ inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; } /** *

The release label for the application version associated with this event.

*/ inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; } /** *

The release label for the application version associated with this event.

*/ inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; } /** *

The release label for the application version associated with this event.

*/ inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); } /** *

The release label for the application version associated with this event.

*/ inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); } /** *

The release label for the application version associated with this event.

*/ inline EventDescription& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;} /** *

The release label for the application version associated with this event.

*/ inline EventDescription& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;} /** *

The release label for the application version associated with this event.

*/ inline EventDescription& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;} /** *

The name of the configuration associated with this event.

*/ inline const Aws::String& GetTemplateName() const{ return m_templateName; } /** *

The name of the configuration associated with this event.

*/ inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; } /** *

The name of the configuration associated with this event.

*/ inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; } /** *

The name of the configuration associated with this event.

*/ inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); } /** *

The name of the configuration associated with this event.

*/ inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); } /** *

The name of the configuration associated with this event.

*/ inline EventDescription& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;} /** *

The name of the configuration associated with this event.

*/ inline EventDescription& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;} /** *

The name of the configuration associated with this event.

*/ inline EventDescription& WithTemplateName(const char* value) { SetTemplateName(value); return *this;} /** *

The name of the environment associated with this event.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The name of the environment associated with this event.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

The name of the environment associated with this event.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

The name of the environment associated with this event.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

The name of the environment associated with this event.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

The name of the environment associated with this event.

*/ inline EventDescription& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The name of the environment associated with this event.

*/ inline EventDescription& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The name of the environment associated with this event.

*/ inline EventDescription& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

The ARN of the platform version.

*/ inline const Aws::String& GetPlatformArn() const{ return m_platformArn; } /** *

The ARN of the platform version.

*/ inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; } /** *

The ARN of the platform version.

*/ inline void SetPlatformArn(const Aws::String& value) { m_platformArnHasBeenSet = true; m_platformArn = value; } /** *

The ARN of the platform version.

*/ inline void SetPlatformArn(Aws::String&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::move(value); } /** *

The ARN of the platform version.

*/ inline void SetPlatformArn(const char* value) { m_platformArnHasBeenSet = true; m_platformArn.assign(value); } /** *

The ARN of the platform version.

*/ inline EventDescription& WithPlatformArn(const Aws::String& value) { SetPlatformArn(value); return *this;} /** *

The ARN of the platform version.

*/ inline EventDescription& WithPlatformArn(Aws::String&& value) { SetPlatformArn(std::move(value)); return *this;} /** *

The ARN of the platform version.

*/ inline EventDescription& WithPlatformArn(const char* value) { SetPlatformArn(value); return *this;} /** *

The web service request ID for the activity of this event.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The web service request ID for the activity of this event.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

The web service request ID for the activity of this event.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

The web service request ID for the activity of this event.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

The web service request ID for the activity of this event.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

The web service request ID for the activity of this event.

*/ inline EventDescription& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The web service request ID for the activity of this event.

*/ inline EventDescription& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The web service request ID for the activity of this event.

*/ inline EventDescription& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The severity level of this event.

*/ inline const EventSeverity& GetSeverity() const{ return m_severity; } /** *

The severity level of this event.

*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *

The severity level of this event.

*/ inline void SetSeverity(const EventSeverity& value) { m_severityHasBeenSet = true; m_severity = value; } /** *

The severity level of this event.

*/ inline void SetSeverity(EventSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *

The severity level of this event.

*/ inline EventDescription& WithSeverity(const EventSeverity& value) { SetSeverity(value); return *this;} /** *

The severity level of this event.

*/ inline EventDescription& WithSeverity(EventSeverity&& value) { SetSeverity(std::move(value)); return *this;} private: Aws::Utils::DateTime m_eventDate; bool m_eventDateHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; Aws::String m_versionLabel; bool m_versionLabelHasBeenSet = false; Aws::String m_templateName; bool m_templateNameHasBeenSet = false; Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::String m_platformArn; bool m_platformArnHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; EventSeverity m_severity; bool m_severityHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws