/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EventBridge { namespace Model { /** *

A ReplayDestination object that contains details about a * replay.

See Also:

AWS * API Reference

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

The ARN of the event bus to replay event to. You can replay events only to * the event bus specified to create the archive.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the event bus to replay event to. You can replay events only to * the event bus specified to create the archive.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the event bus to replay event to. You can replay events only to * the event bus specified to create the archive.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the event bus to replay event to. You can replay events only to * the event bus specified to create the archive.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the event bus to replay event to. You can replay events only to * the event bus specified to create the archive.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the event bus to replay event to. You can replay events only to * the event bus specified to create the archive.

*/ inline ReplayDestination& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the event bus to replay event to. You can replay events only to * the event bus specified to create the archive.

*/ inline ReplayDestination& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the event bus to replay event to. You can replay events only to * the event bus specified to create the archive.

*/ inline ReplayDestination& WithArn(const char* value) { SetArn(value); return *this;} /** *

A list of ARNs for rules to replay events to.

*/ inline const Aws::Vector& GetFilterArns() const{ return m_filterArns; } /** *

A list of ARNs for rules to replay events to.

*/ inline bool FilterArnsHasBeenSet() const { return m_filterArnsHasBeenSet; } /** *

A list of ARNs for rules to replay events to.

*/ inline void SetFilterArns(const Aws::Vector& value) { m_filterArnsHasBeenSet = true; m_filterArns = value; } /** *

A list of ARNs for rules to replay events to.

*/ inline void SetFilterArns(Aws::Vector&& value) { m_filterArnsHasBeenSet = true; m_filterArns = std::move(value); } /** *

A list of ARNs for rules to replay events to.

*/ inline ReplayDestination& WithFilterArns(const Aws::Vector& value) { SetFilterArns(value); return *this;} /** *

A list of ARNs for rules to replay events to.

*/ inline ReplayDestination& WithFilterArns(Aws::Vector&& value) { SetFilterArns(std::move(value)); return *this;} /** *

A list of ARNs for rules to replay events to.

*/ inline ReplayDestination& AddFilterArns(const Aws::String& value) { m_filterArnsHasBeenSet = true; m_filterArns.push_back(value); return *this; } /** *

A list of ARNs for rules to replay events to.

*/ inline ReplayDestination& AddFilterArns(Aws::String&& value) { m_filterArnsHasBeenSet = true; m_filterArns.push_back(std::move(value)); return *this; } /** *

A list of ARNs for rules to replay events to.

*/ inline ReplayDestination& AddFilterArns(const char* value) { m_filterArnsHasBeenSet = true; m_filterArns.push_back(value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Vector m_filterArns; bool m_filterArnsHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws