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

Contains the results of a successful invocation of the * DescribeEventCategories action.

See Also:

AWS * API Reference

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

The source type that the returned categories belong to

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

The source type that the returned categories belong to

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

The source type that the returned categories belong to

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

The source type that the returned categories belong to

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

The source type that the returned categories belong to

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

The source type that the returned categories belong to

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

The source type that the returned categories belong to

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

The source type that the returned categories belong to

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

The event categories for the specified source type

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

The event categories for the specified source type

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

The event categories for the specified source type

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

The event categories for the specified source type

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

The event categories for the specified source type

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

The event categories for the specified source type

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

The event categories for the specified source type

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

The event categories for the specified source type

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

The event categories for the specified source type

*/ inline EventCategoriesMap& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } private: Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; Aws::Vector m_eventCategories; bool m_eventCategoriesHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws