/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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::VectorA 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::VectorA list of event categories from a source type that you've chosen.
*/ inline void SetEventCategories(Aws::VectorA list of event categories from a source type that you've chosen.
*/ inline EventCategoryGroup& WithEventCategories(const Aws::VectorA list of event categories from a source type that you've chosen.
*/ inline EventCategoryGroup& WithEventCategories(Aws::VectorA 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