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

Endpoints can replicate all events to the secondary Region.

See * Also:

AWS * API Reference

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

The state of event replication.

*/ inline const ReplicationState& GetState() const{ return m_state; } /** *

The state of event replication.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of event replication.

*/ inline void SetState(const ReplicationState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of event replication.

*/ inline void SetState(ReplicationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of event replication.

*/ inline ReplicationConfig& WithState(const ReplicationState& value) { SetState(value); return *this;} /** *

The state of event replication.

*/ inline ReplicationConfig& WithState(ReplicationState&& value) { SetState(std::move(value)); return *this;} private: ReplicationState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws