/** * 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 ListServicesRequest : public ServiceDiscoveryRequest { public: AWS_SERVICEDISCOVERY_API ListServicesRequest(); // 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 "ListServices"; } AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override; AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

For the first ListServices request, omit this value.

If * the response contains NextToken, submit another * ListServices 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 services and then * filters them based on the specified criteria. It's possible that no services in * the first MaxResults services matched the specified criteria but * that subsequent groups of MaxResults services do contain services * that match the criteria.

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

For the first ListServices request, omit this value.

If * the response contains NextToken, submit another * ListServices 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 services and then * filters them based on the specified criteria. It's possible that no services in * the first MaxResults services matched the specified criteria but * that subsequent groups of MaxResults services do contain services * that match the criteria.

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

For the first ListServices request, omit this value.

If * the response contains NextToken, submit another * ListServices 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 services and then * filters them based on the specified criteria. It's possible that no services in * the first MaxResults services matched the specified criteria but * that subsequent groups of MaxResults services do contain services * that match the criteria.

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

For the first ListServices request, omit this value.

If * the response contains NextToken, submit another * ListServices 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 services and then * filters them based on the specified criteria. It's possible that no services in * the first MaxResults services matched the specified criteria but * that subsequent groups of MaxResults services do contain services * that match the criteria.

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

For the first ListServices request, omit this value.

If * the response contains NextToken, submit another * ListServices 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 services and then * filters them based on the specified criteria. It's possible that no services in * the first MaxResults services matched the specified criteria but * that subsequent groups of MaxResults services do contain services * that match the criteria.

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

For the first ListServices request, omit this value.

If * the response contains NextToken, submit another * ListServices 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 services and then * filters them based on the specified criteria. It's possible that no services in * the first MaxResults services matched the specified criteria but * that subsequent groups of MaxResults services do contain services * that match the criteria.

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

For the first ListServices request, omit this value.

If * the response contains NextToken, submit another * ListServices 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 services and then * filters them based on the specified criteria. It's possible that no services in * the first MaxResults services matched the specified criteria but * that subsequent groups of MaxResults services do contain services * that match the criteria.

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

For the first ListServices request, omit this value.

If * the response contains NextToken, submit another * ListServices 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 services and then * filters them based on the specified criteria. It's possible that no services in * the first MaxResults services matched the specified criteria but * that subsequent groups of MaxResults services do contain services * that match the criteria.

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

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

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

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

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

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

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

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

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

A complex type that contains specifications for the namespaces that you want * to list services for.

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

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

A complex type that contains specifications for the namespaces that you want * to list services for.

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

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

A complex type that contains specifications for the namespaces that you want * to list services for.

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

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

A complex type that contains specifications for the namespaces that you want * to list services for.

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

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

A complex type that contains specifications for the namespaces that you want * to list services for.

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

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

A complex type that contains specifications for the namespaces that you want * to list services for.

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

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

A complex type that contains specifications for the namespaces that you want * to list services for.

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

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

A complex type that contains specifications for the namespaces that you want * to list services for.

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

*/ inline ListServicesRequest& AddFilters(ServiceFilter&& 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