/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Registers a new event topic.See Also:
AWS
* API Reference
The Directory ID that will publish status messages to the Amazon SNS * topic.
*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *The Directory ID that will publish status messages to the Amazon SNS * topic.
*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *The Directory ID that will publish status messages to the Amazon SNS * topic.
*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *The Directory ID that will publish status messages to the Amazon SNS * topic.
*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *The Directory ID that will publish status messages to the Amazon SNS * topic.
*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *The Directory ID that will publish status messages to the Amazon SNS * topic.
*/ inline RegisterEventTopicRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *The Directory ID that will publish status messages to the Amazon SNS * topic.
*/ inline RegisterEventTopicRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *The Directory ID that will publish status messages to the Amazon SNS * topic.
*/ inline RegisterEventTopicRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *The Amazon SNS topic name to which the directory will publish status * messages. This Amazon SNS topic must be in the same region as the specified * Directory ID.
*/ inline const Aws::String& GetTopicName() const{ return m_topicName; } /** *The Amazon SNS topic name to which the directory will publish status * messages. This Amazon SNS topic must be in the same region as the specified * Directory ID.
*/ inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; } /** *The Amazon SNS topic name to which the directory will publish status * messages. This Amazon SNS topic must be in the same region as the specified * Directory ID.
*/ inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; } /** *The Amazon SNS topic name to which the directory will publish status * messages. This Amazon SNS topic must be in the same region as the specified * Directory ID.
*/ inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); } /** *The Amazon SNS topic name to which the directory will publish status * messages. This Amazon SNS topic must be in the same region as the specified * Directory ID.
*/ inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); } /** *The Amazon SNS topic name to which the directory will publish status * messages. This Amazon SNS topic must be in the same region as the specified * Directory ID.
*/ inline RegisterEventTopicRequest& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;} /** *The Amazon SNS topic name to which the directory will publish status * messages. This Amazon SNS topic must be in the same region as the specified * Directory ID.
*/ inline RegisterEventTopicRequest& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;} /** *The Amazon SNS topic name to which the directory will publish status * messages. This Amazon SNS topic must be in the same region as the specified * Directory ID.
*/ inline RegisterEventTopicRequest& WithTopicName(const char* value) { SetTopicName(value); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::String m_topicName; bool m_topicNameHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws