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

Lists categories of events subscribed to, and generated by, the applicable * DMS resource type. This data type appears in response to the * DescribeEventCategories action.

See Also:

AWS * API Reference

*/ class EventCategoryGroup { public: AWS_DATABASEMIGRATIONSERVICE_API EventCategoryGroup(); AWS_DATABASEMIGRATIONSERVICE_API EventCategoryGroup(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API EventCategoryGroup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of DMS resource that generates events.

Valid values: * replication-instance | replication-server | security-group | * replication-task

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

The type of DMS resource that generates events.

Valid values: * replication-instance | replication-server | security-group | * replication-task

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

The type of DMS resource that generates events.

Valid values: * replication-instance | replication-server | security-group | * replication-task

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

The type of DMS resource that generates events.

Valid values: * replication-instance | replication-server | security-group | * replication-task

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

The type of DMS resource that generates events.

Valid values: * replication-instance | replication-server | security-group | * replication-task

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

The type of DMS resource that generates events.

Valid values: * replication-instance | replication-server | security-group | * replication-task

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

The type of DMS resource that generates events.

Valid values: * replication-instance | replication-server | security-group | * replication-task

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

The type of DMS resource that generates events.

Valid values: * replication-instance | replication-server | security-group | * replication-task

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

A list of event categories from a source type that you've chosen.

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

A list of event categories from a source type that you've chosen.

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

A list of event categories from a source type that you've chosen.

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

A list of event categories from a source type that you've chosen.

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

A list of event categories from a source type that you've chosen.

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

A list of event categories from a source type that you've chosen.

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

A list of event categories from a source type that you've chosen.

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

A list of event categories from a source type that you've chosen.

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

A list of event categories from a source type that you've chosen.

*/ inline EventCategoryGroup& 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 DatabaseMigrationService } // namespace Aws