/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudWatchEvents { namespace Model { class StartReplayResult { public: AWS_CLOUDWATCHEVENTS_API StartReplayResult(); AWS_CLOUDWATCHEVENTS_API StartReplayResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHEVENTS_API StartReplayResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the replay.

*/ inline const Aws::String& GetReplayArn() const{ return m_replayArn; } /** *

The ARN of the replay.

*/ inline void SetReplayArn(const Aws::String& value) { m_replayArn = value; } /** *

The ARN of the replay.

*/ inline void SetReplayArn(Aws::String&& value) { m_replayArn = std::move(value); } /** *

The ARN of the replay.

*/ inline void SetReplayArn(const char* value) { m_replayArn.assign(value); } /** *

The ARN of the replay.

*/ inline StartReplayResult& WithReplayArn(const Aws::String& value) { SetReplayArn(value); return *this;} /** *

The ARN of the replay.

*/ inline StartReplayResult& WithReplayArn(Aws::String&& value) { SetReplayArn(std::move(value)); return *this;} /** *

The ARN of the replay.

*/ inline StartReplayResult& WithReplayArn(const char* value) { SetReplayArn(value); return *this;} /** *

The state of the replay.

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

The state of the replay.

*/ inline void SetState(const ReplayState& value) { m_state = value; } /** *

The state of the replay.

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

The state of the replay.

*/ inline StartReplayResult& WithState(const ReplayState& value) { SetState(value); return *this;} /** *

The state of the replay.

*/ inline StartReplayResult& WithState(ReplayState&& value) { SetState(std::move(value)); return *this;} /** *

The reason that the replay is in the state.

*/ inline const Aws::String& GetStateReason() const{ return m_stateReason; } /** *

The reason that the replay is in the state.

*/ inline void SetStateReason(const Aws::String& value) { m_stateReason = value; } /** *

The reason that the replay is in the state.

*/ inline void SetStateReason(Aws::String&& value) { m_stateReason = std::move(value); } /** *

The reason that the replay is in the state.

*/ inline void SetStateReason(const char* value) { m_stateReason.assign(value); } /** *

The reason that the replay is in the state.

*/ inline StartReplayResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} /** *

The reason that the replay is in the state.

*/ inline StartReplayResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} /** *

The reason that the replay is in the state.

*/ inline StartReplayResult& WithStateReason(const char* value) { SetStateReason(value); return *this;} /** *

The time at which the replay started.

*/ inline const Aws::Utils::DateTime& GetReplayStartTime() const{ return m_replayStartTime; } /** *

The time at which the replay started.

*/ inline void SetReplayStartTime(const Aws::Utils::DateTime& value) { m_replayStartTime = value; } /** *

The time at which the replay started.

*/ inline void SetReplayStartTime(Aws::Utils::DateTime&& value) { m_replayStartTime = std::move(value); } /** *

The time at which the replay started.

*/ inline StartReplayResult& WithReplayStartTime(const Aws::Utils::DateTime& value) { SetReplayStartTime(value); return *this;} /** *

The time at which the replay started.

*/ inline StartReplayResult& WithReplayStartTime(Aws::Utils::DateTime&& value) { SetReplayStartTime(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline StartReplayResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StartReplayResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StartReplayResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_replayArn; ReplayState m_state; Aws::String m_stateReason; Aws::Utils::DateTime m_replayStartTime; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws