/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 DescribeReplayResult { public: AWS_CLOUDWATCHEVENTS_API DescribeReplayResult(); AWS_CLOUDWATCHEVENTS_API DescribeReplayResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHEVENTS_API DescribeReplayResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the replay.

*/ inline const Aws::String& GetReplayName() const{ return m_replayName; } /** *

The name of the replay.

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

The name of the replay.

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

The name of the replay.

*/ inline void SetReplayName(const char* value) { m_replayName.assign(value); } /** *

The name of the replay.

*/ inline DescribeReplayResult& WithReplayName(const Aws::String& value) { SetReplayName(value); return *this;} /** *

The name of the replay.

*/ inline DescribeReplayResult& WithReplayName(Aws::String&& value) { SetReplayName(std::move(value)); return *this;} /** *

The name of the replay.

*/ inline DescribeReplayResult& WithReplayName(const char* value) { SetReplayName(value); return *this;} /** *

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 DescribeReplayResult& WithReplayArn(const Aws::String& value) { SetReplayArn(value); return *this;} /** *

The ARN of the replay.

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

The ARN of the replay.

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

The description of the replay.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the replay.

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

The description of the replay.

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

The description of the replay.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the replay.

*/ inline DescribeReplayResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the replay.

*/ inline DescribeReplayResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the replay.

*/ inline DescribeReplayResult& WithDescription(const char* value) { SetDescription(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 DescribeReplayResult& WithState(const ReplayState& value) { SetState(value); return *this;} /** *

The current state of the replay.

*/ inline DescribeReplayResult& 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 DescribeReplayResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} /** *

The reason that the replay is in the current state.

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

The reason that the replay is in the current state.

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

The ARN of the archive events were replayed from.

*/ inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; } /** *

The ARN of the archive events were replayed from.

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

The ARN of the archive events were replayed from.

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

The ARN of the archive events were replayed from.

*/ inline void SetEventSourceArn(const char* value) { m_eventSourceArn.assign(value); } /** *

The ARN of the archive events were replayed from.

*/ inline DescribeReplayResult& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;} /** *

The ARN of the archive events were replayed from.

*/ inline DescribeReplayResult& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;} /** *

The ARN of the archive events were replayed from.

*/ inline DescribeReplayResult& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;} /** *

A ReplayDestination object that contains details about the * replay.

*/ inline const ReplayDestination& GetDestination() const{ return m_destination; } /** *

A ReplayDestination object that contains details about the * replay.

*/ inline void SetDestination(const ReplayDestination& value) { m_destination = value; } /** *

A ReplayDestination object that contains details about the * replay.

*/ inline void SetDestination(ReplayDestination&& value) { m_destination = std::move(value); } /** *

A ReplayDestination object that contains details about the * replay.

*/ inline DescribeReplayResult& WithDestination(const ReplayDestination& value) { SetDestination(value); return *this;} /** *

A ReplayDestination object that contains details about the * replay.

*/ inline DescribeReplayResult& WithDestination(ReplayDestination&& value) { SetDestination(std::move(value)); return *this;} /** *

The time stamp of the first event that was last replayed from the * archive.

*/ inline const Aws::Utils::DateTime& GetEventStartTime() const{ return m_eventStartTime; } /** *

The time stamp of the first event that was last replayed from the * archive.

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

The time stamp of the first event that was last replayed from the * archive.

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

The time stamp of the first event that was last replayed from the * archive.

*/ inline DescribeReplayResult& WithEventStartTime(const Aws::Utils::DateTime& value) { SetEventStartTime(value); return *this;} /** *

The time stamp of the first event that was last replayed from the * archive.

*/ inline DescribeReplayResult& WithEventStartTime(Aws::Utils::DateTime&& value) { SetEventStartTime(std::move(value)); return *this;} /** *

The time stamp for the last event that was replayed from the archive.

*/ inline const Aws::Utils::DateTime& GetEventEndTime() const{ return m_eventEndTime; } /** *

The time stamp for the last event that was replayed from the archive.

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

The time stamp for the last event that was replayed from the archive.

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

The time stamp for the last event that was replayed from the archive.

*/ inline DescribeReplayResult& WithEventEndTime(const Aws::Utils::DateTime& value) { SetEventEndTime(value); return *this;} /** *

The time stamp for the last event that was replayed from the archive.

*/ inline DescribeReplayResult& WithEventEndTime(Aws::Utils::DateTime&& value) { SetEventEndTime(std::move(value)); return *this;} /** *

The time that the event was last replayed.

*/ inline const Aws::Utils::DateTime& GetEventLastReplayedTime() const{ return m_eventLastReplayedTime; } /** *

The time that the event was last replayed.

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

The time that the event was last replayed.

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

The time that the event was last replayed.

*/ inline DescribeReplayResult& WithEventLastReplayedTime(const Aws::Utils::DateTime& value) { SetEventLastReplayedTime(value); return *this;} /** *

The time that the event was last replayed.

*/ inline DescribeReplayResult& WithEventLastReplayedTime(Aws::Utils::DateTime&& value) { SetEventLastReplayedTime(std::move(value)); return *this;} /** *

A time stamp for the time that the replay started.

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

A time stamp for the time that the replay started.

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

A time stamp for the time that the replay started.

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

A time stamp for the time that the replay started.

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

A time stamp for the time that the replay started.

*/ inline DescribeReplayResult& WithReplayStartTime(Aws::Utils::DateTime&& value) { SetReplayStartTime(std::move(value)); return *this;} /** *

A time stamp for the time that the replay stopped.

*/ inline const Aws::Utils::DateTime& GetReplayEndTime() const{ return m_replayEndTime; } /** *

A time stamp for the time that the replay stopped.

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

A time stamp for the time that the replay stopped.

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

A time stamp for the time that the replay stopped.

*/ inline DescribeReplayResult& WithReplayEndTime(const Aws::Utils::DateTime& value) { SetReplayEndTime(value); return *this;} /** *

A time stamp for the time that the replay stopped.

*/ inline DescribeReplayResult& WithReplayEndTime(Aws::Utils::DateTime&& value) { SetReplayEndTime(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 DescribeReplayResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeReplayResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeReplayResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_replayName; Aws::String m_replayArn; Aws::String m_description; ReplayState m_state; Aws::String m_stateReason; Aws::String m_eventSourceArn; ReplayDestination m_destination; Aws::Utils::DateTime m_eventStartTime; Aws::Utils::DateTime m_eventEndTime; Aws::Utils::DateTime m_eventLastReplayedTime; Aws::Utils::DateTime m_replayStartTime; Aws::Utils::DateTime m_replayEndTime; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws