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

Describes event information.

See Also:

AWS * API Reference

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

The identifier of an Amazon Redshift event.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

The identifier of an Amazon Redshift event.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

The identifier of an Amazon Redshift event.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

The identifier of an Amazon Redshift event.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

The identifier of an Amazon Redshift event.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

The identifier of an Amazon Redshift event.

*/ inline EventInfoMap& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

The identifier of an Amazon Redshift event.

*/ inline EventInfoMap& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

The identifier of an Amazon Redshift event.

*/ inline EventInfoMap& WithEventId(const char* value) { SetEventId(value); return *this;} /** *

The category of an Amazon Redshift event.

*/ inline const Aws::Vector& GetEventCategories() const{ return m_eventCategories; } /** *

The category of an Amazon Redshift event.

*/ inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; } /** *

The category of an Amazon Redshift event.

*/ inline void SetEventCategories(const Aws::Vector& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; } /** *

The category of an Amazon Redshift event.

*/ inline void SetEventCategories(Aws::Vector&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); } /** *

The category of an Amazon Redshift event.

*/ inline EventInfoMap& WithEventCategories(const Aws::Vector& value) { SetEventCategories(value); return *this;} /** *

The category of an Amazon Redshift event.

*/ inline EventInfoMap& WithEventCategories(Aws::Vector&& value) { SetEventCategories(std::move(value)); return *this;} /** *

The category of an Amazon Redshift event.

*/ inline EventInfoMap& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *

The category of an Amazon Redshift event.

*/ inline EventInfoMap& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; } /** *

The category of an Amazon Redshift event.

*/ inline EventInfoMap& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *

The description of an Amazon Redshift event.

*/ inline const Aws::String& GetEventDescription() const{ return m_eventDescription; } /** *

The description of an Amazon Redshift event.

*/ inline bool EventDescriptionHasBeenSet() const { return m_eventDescriptionHasBeenSet; } /** *

The description of an Amazon Redshift event.

*/ inline void SetEventDescription(const Aws::String& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = value; } /** *

The description of an Amazon Redshift event.

*/ inline void SetEventDescription(Aws::String&& value) { m_eventDescriptionHasBeenSet = true; m_eventDescription = std::move(value); } /** *

The description of an Amazon Redshift event.

*/ inline void SetEventDescription(const char* value) { m_eventDescriptionHasBeenSet = true; m_eventDescription.assign(value); } /** *

The description of an Amazon Redshift event.

*/ inline EventInfoMap& WithEventDescription(const Aws::String& value) { SetEventDescription(value); return *this;} /** *

The description of an Amazon Redshift event.

*/ inline EventInfoMap& WithEventDescription(Aws::String&& value) { SetEventDescription(std::move(value)); return *this;} /** *

The description of an Amazon Redshift event.

*/ inline EventInfoMap& WithEventDescription(const char* value) { SetEventDescription(value); return *this;} /** *

The severity of the event.

Values: ERROR, INFO

*/ inline const Aws::String& GetSeverity() const{ return m_severity; } /** *

The severity of the event.

Values: ERROR, INFO

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

The severity of the event.

Values: ERROR, INFO

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

The severity of the event.

Values: ERROR, INFO

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

The severity of the event.

Values: ERROR, INFO

*/ inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); } /** *

The severity of the event.

Values: ERROR, INFO

*/ inline EventInfoMap& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;} /** *

The severity of the event.

Values: ERROR, INFO

*/ inline EventInfoMap& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;} /** *

The severity of the event.

Values: ERROR, INFO

*/ inline EventInfoMap& WithSeverity(const char* value) { SetSeverity(value); return *this;} private: Aws::String m_eventId; bool m_eventIdHasBeenSet; Aws::Vector m_eventCategories; bool m_eventCategoriesHasBeenSet; Aws::String m_eventDescription; bool m_eventDescriptionHasBeenSet; Aws::String m_severity; bool m_severityHasBeenSet; }; } // namespace Model } // namespace Redshift } // namespace Aws