/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace ServiceDiscovery { namespace Model { /** */ class ListInstancesRequest : public ServiceDiscoveryRequest { public: AWS_SERVICEDISCOVERY_API ListInstancesRequest(); // 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 "ListInstances"; } AWS_SERVICEDISCOVERY_API Aws::String SerializePayload() const override; AWS_SERVICEDISCOVERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the service that you want to list instances for.

*/ inline const Aws::String& GetServiceId() const{ return m_serviceId; } /** *

The ID of the service that you want to list instances for.

*/ inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; } /** *

The ID of the service that you want to list instances for.

*/ inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; } /** *

The ID of the service that you want to list instances for.

*/ inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); } /** *

The ID of the service that you want to list instances for.

*/ inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); } /** *

The ID of the service that you want to list instances for.

*/ inline ListInstancesRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;} /** *

The ID of the service that you want to list instances for.

*/ inline ListInstancesRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;} /** *

The ID of the service that you want to list instances for.

*/ inline ListInstancesRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;} /** *

For the first ListInstances request, omit this value.

If * more than MaxResults instances match the specified criteria, you * can submit another ListInstances request to get the next group of * results. Specify the value of NextToken from the previous response * in the next request.

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

For the first ListInstances request, omit this value.

If * more than MaxResults instances match the specified criteria, you * can submit another ListInstances request to get the next group of * results. Specify the value of NextToken from the previous response * in the next request.

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

For the first ListInstances request, omit this value.

If * more than MaxResults instances match the specified criteria, you * can submit another ListInstances request to get the next group of * results. Specify the value of NextToken from the previous response * in the next request.

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

For the first ListInstances request, omit this value.

If * more than MaxResults instances match the specified criteria, you * can submit another ListInstances request to get the next group of * results. Specify the value of NextToken from the previous response * in the next request.

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

For the first ListInstances request, omit this value.

If * more than MaxResults instances match the specified criteria, you * can submit another ListInstances request to get the next group of * results. Specify the value of NextToken from the previous response * in the next request.

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

For the first ListInstances request, omit this value.

If * more than MaxResults instances match the specified criteria, you * can submit another ListInstances request to get the next group of * results. Specify the value of NextToken from the previous response * in the next request.

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

For the first ListInstances request, omit this value.

If * more than MaxResults instances match the specified criteria, you * can submit another ListInstances request to get the next group of * results. Specify the value of NextToken from the previous response * in the next request.

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

For the first ListInstances request, omit this value.

If * more than MaxResults instances match the specified criteria, you * can submit another ListInstances request to get the next group of * results. Specify the value of NextToken from the previous response * in the next request.

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

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

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

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

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

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

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

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

*/ inline ListInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws