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

Describes event topics.

See Also:

AWS * API Reference

*/ class DescribeEventTopicsRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API DescribeEventTopicsRequest(); // 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 "DescribeEventTopics"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Directory ID for which to get the list of associated Amazon SNS topics. * If this member is null, associations for all Directory IDs are returned.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The Directory ID for which to get the list of associated Amazon SNS topics. * If this member is null, associations for all Directory IDs are returned.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The Directory ID for which to get the list of associated Amazon SNS topics. * If this member is null, associations for all Directory IDs are returned.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The Directory ID for which to get the list of associated Amazon SNS topics. * If this member is null, associations for all Directory IDs are returned.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The Directory ID for which to get the list of associated Amazon SNS topics. * If this member is null, associations for all Directory IDs are returned.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The Directory ID for which to get the list of associated Amazon SNS topics. * If this member is null, associations for all Directory IDs are returned.

*/ inline DescribeEventTopicsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The Directory ID for which to get the list of associated Amazon SNS topics. * If this member is null, associations for all Directory IDs are returned.

*/ inline DescribeEventTopicsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The Directory ID for which to get the list of associated Amazon SNS topics. * If this member is null, associations for all Directory IDs are returned.

*/ inline DescribeEventTopicsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline const Aws::Vector& GetTopicNames() const{ return m_topicNames; } /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline bool TopicNamesHasBeenSet() const { return m_topicNamesHasBeenSet; } /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline void SetTopicNames(const Aws::Vector& value) { m_topicNamesHasBeenSet = true; m_topicNames = value; } /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline void SetTopicNames(Aws::Vector&& value) { m_topicNamesHasBeenSet = true; m_topicNames = std::move(value); } /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeEventTopicsRequest& WithTopicNames(const Aws::Vector& value) { SetTopicNames(value); return *this;} /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeEventTopicsRequest& WithTopicNames(Aws::Vector&& value) { SetTopicNames(std::move(value)); return *this;} /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeEventTopicsRequest& AddTopicNames(const Aws::String& value) { m_topicNamesHasBeenSet = true; m_topicNames.push_back(value); return *this; } /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeEventTopicsRequest& AddTopicNames(Aws::String&& value) { m_topicNamesHasBeenSet = true; m_topicNames.push_back(std::move(value)); return *this; } /** *

A list of Amazon SNS topic names for which to obtain the information. If this * member is null, all associations for the specified Directory ID are * returned.

An empty list results in an * InvalidParameterException being thrown.

*/ inline DescribeEventTopicsRequest& AddTopicNames(const char* value) { m_topicNamesHasBeenSet = true; m_topicNames.push_back(value); return *this; } private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::Vector m_topicNames; bool m_topicNamesHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws