/** * 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 { namespace CloudWatchEvents { namespace Model { /** */ class ListReplaysRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API ListReplaysRequest(); // 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 "ListReplays"; } AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name prefix to filter the replays returned. Only replays with name that * match the prefix are returned.

*/ inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; } /** *

A name prefix to filter the replays returned. Only replays with name that * match the prefix are returned.

*/ inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; } /** *

A name prefix to filter the replays returned. Only replays with name that * match the prefix are returned.

*/ inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; } /** *

A name prefix to filter the replays returned. Only replays with name that * match the prefix are returned.

*/ inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); } /** *

A name prefix to filter the replays returned. Only replays with name that * match the prefix are returned.

*/ inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); } /** *

A name prefix to filter the replays returned. Only replays with name that * match the prefix are returned.

*/ inline ListReplaysRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;} /** *

A name prefix to filter the replays returned. Only replays with name that * match the prefix are returned.

*/ inline ListReplaysRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;} /** *

A name prefix to filter the replays returned. Only replays with name that * match the prefix are returned.

*/ inline ListReplaysRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;} /** *

The state of the replay.

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

The state of the replay.

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

The state of the replay.

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

The state of the replay.

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

The state of the replay.

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

The state of the replay.

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

The ARN of the archive from which the events are replayed.

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

The ARN of the archive from which the events are replayed.

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

The ARN of the archive from which the events are replayed.

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

The ARN of the archive from which the events are replayed.

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

The ARN of the archive from which the events are replayed.

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

The ARN of the archive from which the events are replayed.

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

The ARN of the archive from which the events are replayed.

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

The ARN of the archive from which the events are replayed.

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

The token returned by a previous call to retrieve the next set of * results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline ListReplaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline ListReplaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline ListReplaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of replays to retrieve.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of replays to retrieve.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of replays to retrieve.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of replays to retrieve.

*/ inline ListReplaysRequest& WithLimit(int value) { SetLimit(value); return *this;} private: Aws::String m_namePrefix; bool m_namePrefixHasBeenSet = false; ReplayState m_state; bool m_stateHasBeenSet = false; Aws::String m_eventSourceArn; bool m_eventSourceArnHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws