/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** */ class DescribeScheduledActionsRequest : public RedshiftRequest { public: AWS_REDSHIFT_API DescribeScheduledActionsRequest(); // 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 "DescribeScheduledActions"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the scheduled action to retrieve.

*/ inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; } /** *

The name of the scheduled action to retrieve.

*/ inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; } /** *

The name of the scheduled action to retrieve.

*/ inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; } /** *

The name of the scheduled action to retrieve.

*/ inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); } /** *

The name of the scheduled action to retrieve.

*/ inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); } /** *

The name of the scheduled action to retrieve.

*/ inline DescribeScheduledActionsRequest& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;} /** *

The name of the scheduled action to retrieve.

*/ inline DescribeScheduledActionsRequest& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;} /** *

The name of the scheduled action to retrieve.

*/ inline DescribeScheduledActionsRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;} /** *

The type of the scheduled actions to retrieve.

*/ inline const ScheduledActionTypeValues& GetTargetActionType() const{ return m_targetActionType; } /** *

The type of the scheduled actions to retrieve.

*/ inline bool TargetActionTypeHasBeenSet() const { return m_targetActionTypeHasBeenSet; } /** *

The type of the scheduled actions to retrieve.

*/ inline void SetTargetActionType(const ScheduledActionTypeValues& value) { m_targetActionTypeHasBeenSet = true; m_targetActionType = value; } /** *

The type of the scheduled actions to retrieve.

*/ inline void SetTargetActionType(ScheduledActionTypeValues&& value) { m_targetActionTypeHasBeenSet = true; m_targetActionType = std::move(value); } /** *

The type of the scheduled actions to retrieve.

*/ inline DescribeScheduledActionsRequest& WithTargetActionType(const ScheduledActionTypeValues& value) { SetTargetActionType(value); return *this;} /** *

The type of the scheduled actions to retrieve.

*/ inline DescribeScheduledActionsRequest& WithTargetActionType(ScheduledActionTypeValues&& value) { SetTargetActionType(std::move(value)); return *this;} /** *

The start time in UTC of the scheduled actions to retrieve. Only active * scheduled actions that have invocations after this time are retrieved.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start time in UTC of the scheduled actions to retrieve. Only active * scheduled actions that have invocations after this time are retrieved.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time in UTC of the scheduled actions to retrieve. Only active * scheduled actions that have invocations after this time are retrieved.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start time in UTC of the scheduled actions to retrieve. Only active * scheduled actions that have invocations after this time are retrieved.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start time in UTC of the scheduled actions to retrieve. Only active * scheduled actions that have invocations after this time are retrieved.

*/ inline DescribeScheduledActionsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start time in UTC of the scheduled actions to retrieve. Only active * scheduled actions that have invocations after this time are retrieved.

*/ inline DescribeScheduledActionsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end time in UTC of the scheduled action to retrieve. Only active * scheduled actions that have invocations before this time are retrieved.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end time in UTC of the scheduled action to retrieve. Only active * scheduled actions that have invocations before this time are retrieved.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time in UTC of the scheduled action to retrieve. Only active * scheduled actions that have invocations before this time are retrieved.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end time in UTC of the scheduled action to retrieve. Only active * scheduled actions that have invocations before this time are retrieved.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end time in UTC of the scheduled action to retrieve. Only active * scheduled actions that have invocations before this time are retrieved.

*/ inline DescribeScheduledActionsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end time in UTC of the scheduled action to retrieve. Only active * scheduled actions that have invocations before this time are retrieved.

*/ inline DescribeScheduledActionsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

If true, retrieve only active scheduled actions. If false, retrieve only * disabled scheduled actions.

*/ inline bool GetActive() const{ return m_active; } /** *

If true, retrieve only active scheduled actions. If false, retrieve only * disabled scheduled actions.

*/ inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; } /** *

If true, retrieve only active scheduled actions. If false, retrieve only * disabled scheduled actions.

*/ inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; } /** *

If true, retrieve only active scheduled actions. If false, retrieve only * disabled scheduled actions.

*/ inline DescribeScheduledActionsRequest& WithActive(bool value) { SetActive(value); return *this;} /** *

List of scheduled action filters.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

List of scheduled action filters.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

List of scheduled action filters.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

List of scheduled action filters.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

List of scheduled action filters.

*/ inline DescribeScheduledActionsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

List of scheduled action filters.

*/ inline DescribeScheduledActionsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

List of scheduled action filters.

*/ inline DescribeScheduledActionsRequest& AddFilters(const ScheduledActionFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

List of scheduled action filters.

*/ inline DescribeScheduledActionsRequest& AddFilters(ScheduledActionFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeScheduledActions request * exceed the value specified in MaxRecords, Amazon Web Services * returns a value in the Marker field of the response. You can * retrieve the next set of response records by providing the returned marker value * in the Marker parameter and retrying the request.

*/ inline const Aws::String& GetMarker() const{ return m_marker; } /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeScheduledActions request * exceed the value specified in MaxRecords, Amazon Web Services * returns a value in the Marker field of the response. You can * retrieve the next set of response records by providing the returned marker value * in the Marker parameter and retrying the request.

*/ inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; } /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeScheduledActions request * exceed the value specified in MaxRecords, Amazon Web Services * returns a value in the Marker field of the response. You can * retrieve the next set of response records by providing the returned marker value * in the Marker parameter and retrying the request.

*/ inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; } /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeScheduledActions request * exceed the value specified in MaxRecords, Amazon Web Services * returns a value in the Marker field of the response. You can * retrieve the next set of response records by providing the returned marker value * in the Marker parameter and retrying the request.

*/ inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); } /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeScheduledActions request * exceed the value specified in MaxRecords, Amazon Web Services * returns a value in the Marker field of the response. You can * retrieve the next set of response records by providing the returned marker value * in the Marker parameter and retrying the request.

*/ inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); } /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeScheduledActions request * exceed the value specified in MaxRecords, Amazon Web Services * returns a value in the Marker field of the response. You can * retrieve the next set of response records by providing the returned marker value * in the Marker parameter and retrying the request.

*/ inline DescribeScheduledActionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;} /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeScheduledActions request * exceed the value specified in MaxRecords, Amazon Web Services * returns a value in the Marker field of the response. You can * retrieve the next set of response records by providing the returned marker value * in the Marker parameter and retrying the request.

*/ inline DescribeScheduledActionsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;} /** *

An optional parameter that specifies the starting point to return a set of * response records. When the results of a DescribeScheduledActions request * exceed the value specified in MaxRecords, Amazon Web Services * returns a value in the Marker field of the response. You can * retrieve the next set of response records by providing the returned marker value * in the Marker parameter and retrying the request.

*/ inline DescribeScheduledActionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;} /** *

The maximum number of response records to return in each call. If the number * of remaining response records exceeds the specified MaxRecords * value, a value is returned in a marker field of the response. You * can retrieve the next set of records by retrying the command with the returned * marker value.

Default: 100

Constraints: minimum 20, * maximum 100.

*/ inline int GetMaxRecords() const{ return m_maxRecords; } /** *

The maximum number of response records to return in each call. If the number * of remaining response records exceeds the specified MaxRecords * value, a value is returned in a marker field of the response. You * can retrieve the next set of records by retrying the command with the returned * marker value.

Default: 100

Constraints: minimum 20, * maximum 100.

*/ inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; } /** *

The maximum number of response records to return in each call. If the number * of remaining response records exceeds the specified MaxRecords * value, a value is returned in a marker field of the response. You * can retrieve the next set of records by retrying the command with the returned * marker value.

Default: 100

Constraints: minimum 20, * maximum 100.

*/ inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; } /** *

The maximum number of response records to return in each call. If the number * of remaining response records exceeds the specified MaxRecords * value, a value is returned in a marker field of the response. You * can retrieve the next set of records by retrying the command with the returned * marker value.

Default: 100

Constraints: minimum 20, * maximum 100.

*/ inline DescribeScheduledActionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;} private: Aws::String m_scheduledActionName; bool m_scheduledActionNameHasBeenSet = false; ScheduledActionTypeValues m_targetActionType; bool m_targetActionTypeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; bool m_active; bool m_activeHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; int m_maxRecords; bool m_maxRecordsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws