/** * 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 ServiceDiscovery { namespace Model { /** */ class ListOperationsRequest : public ServiceDiscoveryRequest { public: AWS_SERVICEDISCOVERY_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_SERVICEDISCOVERY_API Aws::String SerializePayload() const override; AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

For the first ListOperations request, omit this value.

If * the response contains NextToken, submit another * ListOperations request to get the next group of results. Specify * the value of NextToken from the previous response in the next * request.

Cloud Map gets MaxResults operations and * then filters them based on the specified criteria. It's possible that no * operations in the first MaxResults operations matched the specified * criteria but that subsequent groups of MaxResults operations do * contain operations that match the criteria.

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

For the first ListOperations request, omit this value.

If * the response contains NextToken, submit another * ListOperations request to get the next group of results. Specify * the value of NextToken from the previous response in the next * request.

Cloud Map gets MaxResults operations and * then filters them based on the specified criteria. It's possible that no * operations in the first MaxResults operations matched the specified * criteria but that subsequent groups of MaxResults operations do * contain operations that match the criteria.

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

For the first ListOperations request, omit this value.

If * the response contains NextToken, submit another * ListOperations request to get the next group of results. Specify * the value of NextToken from the previous response in the next * request.

Cloud Map gets MaxResults operations and * then filters them based on the specified criteria. It's possible that no * operations in the first MaxResults operations matched the specified * criteria but that subsequent groups of MaxResults operations do * contain operations that match the criteria.

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

For the first ListOperations request, omit this value.

If * the response contains NextToken, submit another * ListOperations request to get the next group of results. Specify * the value of NextToken from the previous response in the next * request.

Cloud Map gets MaxResults operations and * then filters them based on the specified criteria. It's possible that no * operations in the first MaxResults operations matched the specified * criteria but that subsequent groups of MaxResults operations do * contain operations that match the criteria.

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

For the first ListOperations request, omit this value.

If * the response contains NextToken, submit another * ListOperations request to get the next group of results. Specify * the value of NextToken from the previous response in the next * request.

Cloud Map gets MaxResults operations and * then filters them based on the specified criteria. It's possible that no * operations in the first MaxResults operations matched the specified * criteria but that subsequent groups of MaxResults operations do * contain operations that match the criteria.

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

For the first ListOperations request, omit this value.

If * the response contains NextToken, submit another * ListOperations request to get the next group of results. Specify * the value of NextToken from the previous response in the next * request.

Cloud Map gets MaxResults operations and * then filters them based on the specified criteria. It's possible that no * operations in the first MaxResults operations matched the specified * criteria but that subsequent groups of MaxResults operations do * contain operations that match the criteria.

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

For the first ListOperations request, omit this value.

If * the response contains NextToken, submit another * ListOperations request to get the next group of results. Specify * the value of NextToken from the previous response in the next * request.

Cloud Map gets MaxResults operations and * then filters them based on the specified criteria. It's possible that no * operations in the first MaxResults operations matched the specified * criteria but that subsequent groups of MaxResults operations do * contain operations that match the criteria.

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

For the first ListOperations request, omit this value.

If * the response contains NextToken, submit another * ListOperations request to get the next group of results. Specify * the value of NextToken from the previous response in the next * request.

Cloud Map gets MaxResults operations and * then filters them based on the specified criteria. It's possible that no * operations in the first MaxResults operations matched the specified * criteria but that subsequent groups of MaxResults operations do * contain operations that match the criteria.

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

The maximum number of items that you want Cloud Map to return in the response * to a ListOperations request. If you don't specify a value for * MaxResults, Cloud Map returns up to 100 operations.

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

The maximum number of items that you want Cloud Map to return in the response * to a ListOperations request. If you don't specify a value for * MaxResults, Cloud Map returns up to 100 operations.

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

The maximum number of items that you want Cloud Map to return in the response * to a ListOperations request. If you don't specify a value for * MaxResults, Cloud Map returns up to 100 operations.

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

The maximum number of items that you want Cloud Map to return in the response * to a ListOperations request. If you don't specify a value for * MaxResults, Cloud Map returns up to 100 operations.

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

A complex type that contains specifications for the operations that you want * to list, for example, operations that you started between a specified start date * and end date.

If you specify more than one filter, an operation must * match all filters to be returned by ListOperations.

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

A complex type that contains specifications for the operations that you want * to list, for example, operations that you started between a specified start date * and end date.

If you specify more than one filter, an operation must * match all filters to be returned by ListOperations.

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

A complex type that contains specifications for the operations that you want * to list, for example, operations that you started between a specified start date * and end date.

If you specify more than one filter, an operation must * match all filters to be returned by ListOperations.

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

A complex type that contains specifications for the operations that you want * to list, for example, operations that you started between a specified start date * and end date.

If you specify more than one filter, an operation must * match all filters to be returned by ListOperations.

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

A complex type that contains specifications for the operations that you want * to list, for example, operations that you started between a specified start date * and end date.

If you specify more than one filter, an operation must * match all filters to be returned by ListOperations.

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

A complex type that contains specifications for the operations that you want * to list, for example, operations that you started between a specified start date * and end date.

If you specify more than one filter, an operation must * match all filters to be returned by ListOperations.

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

A complex type that contains specifications for the operations that you want * to list, for example, operations that you started between a specified start date * and end date.

If you specify more than one filter, an operation must * match all filters to be returned by ListOperations.

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

A complex type that contains specifications for the operations that you want * to list, for example, operations that you started between a specified start date * and end date.

If you specify more than one filter, an operation must * match all filters to be returned by ListOperations.

*/ inline ListOperationsRequest& AddFilters(OperationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws