/** * 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 #include #include namespace Aws { namespace Route53Domains { namespace Model { /** *

The ListOperations request includes the following elements.

See * Also:

AWS * API Reference

*/ class ListOperationsRequest : public Route53DomainsRequest { public: AWS_ROUTE53DOMAINS_API ListOperationsRequest(); // 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 "ListOperations"; } AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override; AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An optional parameter that lets you get information about all the operations * that you submitted after a specified date and time. Specify the date and time in * Unix time format and Coordinated Universal time (UTC).

*/ inline const Aws::Utils::DateTime& GetSubmittedSince() const{ return m_submittedSince; } /** *

An optional parameter that lets you get information about all the operations * that you submitted after a specified date and time. Specify the date and time in * Unix time format and Coordinated Universal time (UTC).

*/ inline bool SubmittedSinceHasBeenSet() const { return m_submittedSinceHasBeenSet; } /** *

An optional parameter that lets you get information about all the operations * that you submitted after a specified date and time. Specify the date and time in * Unix time format and Coordinated Universal time (UTC).

*/ inline void SetSubmittedSince(const Aws::Utils::DateTime& value) { m_submittedSinceHasBeenSet = true; m_submittedSince = value; } /** *

An optional parameter that lets you get information about all the operations * that you submitted after a specified date and time. Specify the date and time in * Unix time format and Coordinated Universal time (UTC).

*/ inline void SetSubmittedSince(Aws::Utils::DateTime&& value) { m_submittedSinceHasBeenSet = true; m_submittedSince = std::move(value); } /** *

An optional parameter that lets you get information about all the operations * that you submitted after a specified date and time. Specify the date and time in * Unix time format and Coordinated Universal time (UTC).

*/ inline ListOperationsRequest& WithSubmittedSince(const Aws::Utils::DateTime& value) { SetSubmittedSince(value); return *this;} /** *

An optional parameter that lets you get information about all the operations * that you submitted after a specified date and time. Specify the date and time in * Unix time format and Coordinated Universal time (UTC).

*/ inline ListOperationsRequest& WithSubmittedSince(Aws::Utils::DateTime&& value) { SetSubmittedSince(std::move(value)); return *this;} /** *

For an initial request for a list of operations, omit this element. If the * number of operations that are not yet complete is greater than the value that * you specified for MaxItems, you can use Marker to * return additional operations. Get the value of NextPageMarker from * the previous response, and submit another request that includes the value of * NextPageMarker in the Marker element.

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

For an initial request for a list of operations, omit this element. If the * number of operations that are not yet complete is greater than the value that * you specified for MaxItems, you can use Marker to * return additional operations. Get the value of NextPageMarker from * the previous response, and submit another request that includes the value of * NextPageMarker in the Marker element.

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

For an initial request for a list of operations, omit this element. If the * number of operations that are not yet complete is greater than the value that * you specified for MaxItems, you can use Marker to * return additional operations. Get the value of NextPageMarker from * the previous response, and submit another request that includes the value of * NextPageMarker in the Marker element.

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

For an initial request for a list of operations, omit this element. If the * number of operations that are not yet complete is greater than the value that * you specified for MaxItems, you can use Marker to * return additional operations. Get the value of NextPageMarker from * the previous response, and submit another request that includes the value of * NextPageMarker in the Marker element.

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

For an initial request for a list of operations, omit this element. If the * number of operations that are not yet complete is greater than the value that * you specified for MaxItems, you can use Marker to * return additional operations. Get the value of NextPageMarker from * the previous response, and submit another request that includes the value of * NextPageMarker in the Marker element.

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

For an initial request for a list of operations, omit this element. If the * number of operations that are not yet complete is greater than the value that * you specified for MaxItems, you can use Marker to * return additional operations. Get the value of NextPageMarker from * the previous response, and submit another request that includes the value of * NextPageMarker in the Marker element.

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

For an initial request for a list of operations, omit this element. If the * number of operations that are not yet complete is greater than the value that * you specified for MaxItems, you can use Marker to * return additional operations. Get the value of NextPageMarker from * the previous response, and submit another request that includes the value of * NextPageMarker in the Marker element.

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

For an initial request for a list of operations, omit this element. If the * number of operations that are not yet complete is greater than the value that * you specified for MaxItems, you can use Marker to * return additional operations. Get the value of NextPageMarker from * the previous response, and submit another request that includes the value of * NextPageMarker in the Marker element.

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

Number of domains to be returned.

Default: 20

*/ inline int GetMaxItems() const{ return m_maxItems; } /** *

Number of domains to be returned.

Default: 20

*/ inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } /** *

Number of domains to be returned.

Default: 20

*/ inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } /** *

Number of domains to be returned.

Default: 20

*/ inline ListOperationsRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;} /** *

The status of the operations.

*/ inline const Aws::Vector& GetStatus() const{ return m_status; } /** *

The status of the operations.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the operations.

*/ inline void SetStatus(const Aws::Vector& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the operations.

*/ inline void SetStatus(Aws::Vector&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the operations.

*/ inline ListOperationsRequest& WithStatus(const Aws::Vector& value) { SetStatus(value); return *this;} /** *

The status of the operations.

*/ inline ListOperationsRequest& WithStatus(Aws::Vector&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the operations.

*/ inline ListOperationsRequest& AddStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status.push_back(value); return *this; } /** *

The status of the operations.

*/ inline ListOperationsRequest& AddStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status.push_back(std::move(value)); return *this; } /** *

An arrays of the domains operation types.

*/ inline const Aws::Vector& GetType() const{ return m_type; } /** *

An arrays of the domains operation types.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

An arrays of the domains operation types.

*/ inline void SetType(const Aws::Vector& value) { m_typeHasBeenSet = true; m_type = value; } /** *

An arrays of the domains operation types.

*/ inline void SetType(Aws::Vector&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

An arrays of the domains operation types.

*/ inline ListOperationsRequest& WithType(const Aws::Vector& value) { SetType(value); return *this;} /** *

An arrays of the domains operation types.

*/ inline ListOperationsRequest& WithType(Aws::Vector&& value) { SetType(std::move(value)); return *this;} /** *

An arrays of the domains operation types.

*/ inline ListOperationsRequest& AddType(const OperationType& value) { m_typeHasBeenSet = true; m_type.push_back(value); return *this; } /** *

An arrays of the domains operation types.

*/ inline ListOperationsRequest& AddType(OperationType&& value) { m_typeHasBeenSet = true; m_type.push_back(std::move(value)); return *this; } /** *

The sort type for returned values.

*/ inline const ListOperationsSortAttributeName& GetSortBy() const{ return m_sortBy; } /** *

The sort type for returned values.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

The sort type for returned values.

*/ inline void SetSortBy(const ListOperationsSortAttributeName& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The sort type for returned values.

*/ inline void SetSortBy(ListOperationsSortAttributeName&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

The sort type for returned values.

*/ inline ListOperationsRequest& WithSortBy(const ListOperationsSortAttributeName& value) { SetSortBy(value); return *this;} /** *

The sort type for returned values.

*/ inline ListOperationsRequest& WithSortBy(ListOperationsSortAttributeName&& value) { SetSortBy(std::move(value)); return *this;} /** *

The sort order ofr returned values, either ascending or descending.

*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *

The sort order ofr returned values, either ascending or descending.

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

The sort order ofr returned values, either ascending or descending.

*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

The sort order ofr returned values, either ascending or descending.

*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

The sort order ofr returned values, either ascending or descending.

*/ inline ListOperationsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

The sort order ofr returned values, either ascending or descending.

*/ inline ListOperationsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::Utils::DateTime m_submittedSince; bool m_submittedSinceHasBeenSet = false; Aws::String m_marker; bool m_markerHasBeenSet = false; int m_maxItems; bool m_maxItemsHasBeenSet = false; Aws::Vector m_status; bool m_statusHasBeenSet = false; Aws::Vector m_type; bool m_typeHasBeenSet = false; ListOperationsSortAttributeName m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Route53Domains } // namespace Aws