/** * 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 Http { class URI; } //namespace Http namespace Scheduler { namespace Model { /** */ class ListSchedulesRequest : public SchedulerRequest { public: AWS_SCHEDULER_API ListSchedulesRequest(); // 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 "ListSchedules"; } AWS_SCHEDULER_API Aws::String SerializePayload() const override; AWS_SCHEDULER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

If specified, only lists the schedules whose associated schedule group * matches the given filter.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

If specified, only lists the schedules whose associated schedule group * matches the given filter.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

If specified, only lists the schedules whose associated schedule group * matches the given filter.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

If specified, only lists the schedules whose associated schedule group * matches the given filter.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

If specified, only lists the schedules whose associated schedule group * matches the given filter.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

If specified, only lists the schedules whose associated schedule group * matches the given filter.

*/ inline ListSchedulesRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

If specified, only lists the schedules whose associated schedule group * matches the given filter.

*/ inline ListSchedulesRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

If specified, only lists the schedules whose associated schedule group * matches the given filter.

*/ inline ListSchedulesRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

If specified, limits the number of results returned by this operation. The * operation also returns a NextToken which you can use in a * subsequent operation to retrieve the next set of results.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

If specified, limits the number of results returned by this operation. The * operation also returns a NextToken which you can use in a * subsequent operation to retrieve the next set of results.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

If specified, limits the number of results returned by this operation. The * operation also returns a NextToken which you can use in a * subsequent operation to retrieve the next set of results.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

If specified, limits the number of results returned by this operation. The * operation also returns a NextToken which you can use in a * subsequent operation to retrieve the next set of results.

*/ inline ListSchedulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Schedule name prefix to return the filtered list of resources.

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

Schedule name prefix to return the filtered list of resources.

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

Schedule name prefix to return the filtered list of resources.

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

Schedule name prefix to return the filtered list of resources.

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

Schedule name prefix to return the filtered list of resources.

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

Schedule name prefix to return the filtered list of resources.

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

Schedule name prefix to return the filtered list of resources.

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

Schedule name prefix to return the filtered list of resources.

*/ inline ListSchedulesRequest& WithNamePrefix(const char* value) { SetNamePrefix(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 ListSchedulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

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

*/ inline ListSchedulesRequest& 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 ListSchedulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

If specified, only lists the schedules whose current state matches the given * filter.

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

If specified, only lists the schedules whose current state matches the given * filter.

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

If specified, only lists the schedules whose current state matches the given * filter.

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

If specified, only lists the schedules whose current state matches the given * filter.

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

If specified, only lists the schedules whose current state matches the given * filter.

*/ inline ListSchedulesRequest& WithState(const ScheduleState& value) { SetState(value); return *this;} /** *

If specified, only lists the schedules whose current state matches the given * filter.

*/ inline ListSchedulesRequest& WithState(ScheduleState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_groupName; bool m_groupNameHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_namePrefix; bool m_namePrefixHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; ScheduleState m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace Scheduler } // namespace Aws