/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudWatchEvents { namespace Model { class CancelReplayResult { public: AWS_CLOUDWATCHEVENTS_API CancelReplayResult(); AWS_CLOUDWATCHEVENTS_API CancelReplayResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHEVENTS_API CancelReplayResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the replay to cancel.

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

The ARN of the replay to cancel.

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

The ARN of the replay to cancel.

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

The ARN of the replay to cancel.

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

The ARN of the replay to cancel.

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

The ARN of the replay to cancel.

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

The ARN of the replay to cancel.

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

The current state of the replay.

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

The current state of the replay.

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

The current state of the replay.

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

The current state of the replay.

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

The current state of the replay.

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

The reason that the replay is in the current state.

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

The reason that the replay is in the current state.

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

The reason that the replay is in the current state.

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

The reason that the replay is in the current state.

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

The reason that the replay is in the current state.

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

The reason that the replay is in the current state.

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

The reason that the replay is in the current state.

*/ inline CancelReplayResult& WithStateReason(const char* value) { SetStateReason(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 CancelReplayResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CancelReplayResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CancelReplayResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_replayArn; ReplayState m_state; Aws::String m_stateReason; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws