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

See Also:

AWS * API Reference

*/ class DescribeEventCategoriesRequest : public RedshiftRequest { public: AWS_REDSHIFT_API DescribeEventCategoriesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeEventCategories"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The source type, such as cluster or parameter group, to which the described * event categories apply.

Valid values: cluster, cluster-snapshot, * cluster-parameter-group, cluster-security-group, and scheduled-action.

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

The source type, such as cluster or parameter group, to which the described * event categories apply.

Valid values: cluster, cluster-snapshot, * cluster-parameter-group, cluster-security-group, and scheduled-action.

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

The source type, such as cluster or parameter group, to which the described * event categories apply.

Valid values: cluster, cluster-snapshot, * cluster-parameter-group, cluster-security-group, and scheduled-action.

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

The source type, such as cluster or parameter group, to which the described * event categories apply.

Valid values: cluster, cluster-snapshot, * cluster-parameter-group, cluster-security-group, and scheduled-action.

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

The source type, such as cluster or parameter group, to which the described * event categories apply.

Valid values: cluster, cluster-snapshot, * cluster-parameter-group, cluster-security-group, and scheduled-action.

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

The source type, such as cluster or parameter group, to which the described * event categories apply.

Valid values: cluster, cluster-snapshot, * cluster-parameter-group, cluster-security-group, and scheduled-action.

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

The source type, such as cluster or parameter group, to which the described * event categories apply.

Valid values: cluster, cluster-snapshot, * cluster-parameter-group, cluster-security-group, and scheduled-action.

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

The source type, such as cluster or parameter group, to which the described * event categories apply.

Valid values: cluster, cluster-snapshot, * cluster-parameter-group, cluster-security-group, and scheduled-action.

*/ inline DescribeEventCategoriesRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;} private: Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws