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

Describes event categories.

See Also:

AWS * API Reference

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

The source type, such as cluster or cluster-snapshot, that the returned * categories belong to.

*/ inline const Aws::String& GetSourceType() const{ return m_sourceType; } /** *

The source type, such as cluster or cluster-snapshot, that the returned * categories belong to.

*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *

The source type, such as cluster or cluster-snapshot, that the returned * categories belong to.

*/ inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *

The source type, such as cluster or cluster-snapshot, that the returned * categories belong to.

*/ inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *

The source type, such as cluster or cluster-snapshot, that the returned * categories belong to.

*/ inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); } /** *

The source type, such as cluster or cluster-snapshot, that the returned * categories belong to.

*/ inline EventCategoriesMap& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;} /** *

The source type, such as cluster or cluster-snapshot, that the returned * categories belong to.

*/ inline EventCategoriesMap& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;} /** *

The source type, such as cluster or cluster-snapshot, that the returned * categories belong to.

*/ inline EventCategoriesMap& WithSourceType(const char* value) { SetSourceType(value); return *this;} /** *

The events in the event category.

*/ inline const Aws::Vector& GetEvents() const{ return m_events; } /** *

The events in the event category.

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

The events in the event category.

*/ inline void SetEvents(const Aws::Vector& value) { m_eventsHasBeenSet = true; m_events = value; } /** *

The events in the event category.

*/ inline void SetEvents(Aws::Vector&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); } /** *

The events in the event category.

*/ inline EventCategoriesMap& WithEvents(const Aws::Vector& value) { SetEvents(value); return *this;} /** *

The events in the event category.

*/ inline EventCategoriesMap& WithEvents(Aws::Vector&& value) { SetEvents(std::move(value)); return *this;} /** *

The events in the event category.

*/ inline EventCategoriesMap& AddEvents(const EventInfoMap& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *

The events in the event category.

*/ inline EventCategoriesMap& AddEvents(EventInfoMap&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } private: Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; Aws::Vector m_events; bool m_eventsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws