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

Describes an Amazon EventBridge bus data source configuration.

See * Also:

AWS * API Reference

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

The ARN of the event bus. For more information about event buses, see Amazon * EventBridge event buses.

*/ inline const Aws::String& GetEventBusArn() const{ return m_eventBusArn; } /** *

The ARN of the event bus. For more information about event buses, see Amazon * EventBridge event buses.

*/ inline bool EventBusArnHasBeenSet() const { return m_eventBusArnHasBeenSet; } /** *

The ARN of the event bus. For more information about event buses, see Amazon * EventBridge event buses.

*/ inline void SetEventBusArn(const Aws::String& value) { m_eventBusArnHasBeenSet = true; m_eventBusArn = value; } /** *

The ARN of the event bus. For more information about event buses, see Amazon * EventBridge event buses.

*/ inline void SetEventBusArn(Aws::String&& value) { m_eventBusArnHasBeenSet = true; m_eventBusArn = std::move(value); } /** *

The ARN of the event bus. For more information about event buses, see Amazon * EventBridge event buses.

*/ inline void SetEventBusArn(const char* value) { m_eventBusArnHasBeenSet = true; m_eventBusArn.assign(value); } /** *

The ARN of the event bus. For more information about event buses, see Amazon * EventBridge event buses.

*/ inline EventBridgeDataSourceConfig& WithEventBusArn(const Aws::String& value) { SetEventBusArn(value); return *this;} /** *

The ARN of the event bus. For more information about event buses, see Amazon * EventBridge event buses.

*/ inline EventBridgeDataSourceConfig& WithEventBusArn(Aws::String&& value) { SetEventBusArn(std::move(value)); return *this;} /** *

The ARN of the event bus. For more information about event buses, see Amazon * EventBridge event buses.

*/ inline EventBridgeDataSourceConfig& WithEventBusArn(const char* value) { SetEventBusArn(value); return *this;} private: Aws::String m_eventBusArn; bool m_eventBusArnHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws