/** * 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 { namespace EventBridge { namespace Model { /** */ class StartReplayRequest : public EventBridgeRequest { public: AWS_EVENTBRIDGE_API StartReplayRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartReplay"; } AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override; AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the replay to start.

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

The name of the replay to start.

*/ inline bool ReplayNameHasBeenSet() const { return m_replayNameHasBeenSet; } /** *

The name of the replay to start.

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

The name of the replay to start.

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

The name of the replay to start.

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

The name of the replay to start.

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

The name of the replay to start.

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

The name of the replay to start.

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

A description for the replay to start.

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

A description for the replay to start.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the replay to start.

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

A description for the replay to start.

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

A description for the replay to start.

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

A description for the replay to start.

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

A description for the replay to start.

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

A description for the replay to start.

*/ inline StartReplayRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ARN of the archive to replay events from.

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

The ARN of the archive to replay events from.

*/ inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; } /** *

The ARN of the archive to replay events from.

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

The ARN of the archive to replay events from.

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

The ARN of the archive to replay events from.

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

The ARN of the archive to replay events from.

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

The ARN of the archive to replay events from.

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

The ARN of the archive to replay events from.

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

A time stamp for the time to start replaying events. Only events that * occurred between the EventStartTime and EventEndTime * are replayed.

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

A time stamp for the time to start replaying events. Only events that * occurred between the EventStartTime and EventEndTime * are replayed.

*/ inline bool EventStartTimeHasBeenSet() const { return m_eventStartTimeHasBeenSet; } /** *

A time stamp for the time to start replaying events. Only events that * occurred between the EventStartTime and EventEndTime * are replayed.

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

A time stamp for the time to start replaying events. Only events that * occurred between the EventStartTime and EventEndTime * are replayed.

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

A time stamp for the time to start replaying events. Only events that * occurred between the EventStartTime and EventEndTime * are replayed.

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

A time stamp for the time to start replaying events. Only events that * occurred between the EventStartTime and EventEndTime * are replayed.

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

A time stamp for the time to stop replaying events. Only events that occurred * between the EventStartTime and EventEndTime are * replayed.

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

A time stamp for the time to stop replaying events. Only events that occurred * between the EventStartTime and EventEndTime are * replayed.

*/ inline bool EventEndTimeHasBeenSet() const { return m_eventEndTimeHasBeenSet; } /** *

A time stamp for the time to stop replaying events. Only events that occurred * between the EventStartTime and EventEndTime are * replayed.

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

A time stamp for the time to stop replaying events. Only events that occurred * between the EventStartTime and EventEndTime are * replayed.

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

A time stamp for the time to stop replaying events. Only events that occurred * between the EventStartTime and EventEndTime are * replayed.

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

A time stamp for the time to stop replaying events. Only events that occurred * between the EventStartTime and EventEndTime are * replayed.

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

A ReplayDestination object that includes details about the * destination for the replay.

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

A ReplayDestination object that includes details about the * destination for the replay.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

A ReplayDestination object that includes details about the * destination for the replay.

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

A ReplayDestination object that includes details about the * destination for the replay.

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

A ReplayDestination object that includes details about the * destination for the replay.

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

A ReplayDestination object that includes details about the * destination for the replay.

*/ inline StartReplayRequest& WithDestination(ReplayDestination&& value) { SetDestination(std::move(value)); return *this;} private: Aws::String m_replayName; bool m_replayNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_eventSourceArn; bool m_eventSourceArnHasBeenSet = false; Aws::Utils::DateTime m_eventStartTime; bool m_eventStartTimeHasBeenSet = false; Aws::Utils::DateTime m_eventEndTime; bool m_eventEndTimeHasBeenSet = false; ReplayDestination m_destination; bool m_destinationHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws