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

The ID of the service that the instance is associated with.

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

The ID of the service that the instance is associated with.

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

The ID of the service that the instance is associated with.

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

The ID of the service that the instance is associated with.

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

The ID of the service that the instance is associated with.

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

The ID of the service that the instance is associated with.

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

The ID of the service that the instance is associated with.

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

The ID of the service that the instance is associated with.

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

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline const Aws::Vector& GetInstances() const{ return m_instances; } /** *

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; } /** *

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline void SetInstances(const Aws::Vector& value) { m_instancesHasBeenSet = true; m_instances = value; } /** *

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline void SetInstances(Aws::Vector&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); } /** *

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline GetInstancesHealthStatusRequest& WithInstances(const Aws::Vector& value) { SetInstances(value); return *this;} /** *

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline GetInstancesHealthStatusRequest& WithInstances(Aws::Vector&& value) { SetInstances(std::move(value)); return *this;} /** *

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline GetInstancesHealthStatusRequest& AddInstances(const Aws::String& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } /** *

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline GetInstancesHealthStatusRequest& AddInstances(Aws::String&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; } /** *

An array that contains the IDs of all the instances that you want to get the * health status for.

If you omit Instances, Cloud Map returns * the health status for all the instances that are associated with the specified * service.

To get the IDs for the instances that you've registered * by using a specified service, submit a ListInstances * request.

*/ inline GetInstancesHealthStatusRequest& AddInstances(const char* value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } /** *

The maximum number of instances that you want Cloud Map to return in the * response to a GetInstancesHealthStatus 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 GetInstancesHealthStatus 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 GetInstancesHealthStatus 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 GetInstancesHealthStatus request. If you don't * specify a value for MaxResults, Cloud Map returns up to 100 * instances.

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

For the first GetInstancesHealthStatus request, omit this * value.

If more than MaxResults instances match the specified * criteria, you can submit another GetInstancesHealthStatus 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 GetInstancesHealthStatus request, omit this * value.

If more than MaxResults instances match the specified * criteria, you can submit another GetInstancesHealthStatus 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 GetInstancesHealthStatus request, omit this * value.

If more than MaxResults instances match the specified * criteria, you can submit another GetInstancesHealthStatus 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 GetInstancesHealthStatus request, omit this * value.

If more than MaxResults instances match the specified * criteria, you can submit another GetInstancesHealthStatus 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 GetInstancesHealthStatus request, omit this * value.

If more than MaxResults instances match the specified * criteria, you can submit another GetInstancesHealthStatus 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 GetInstancesHealthStatus request, omit this * value.

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

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

For the first GetInstancesHealthStatus request, omit this * value.

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

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

For the first GetInstancesHealthStatus request, omit this * value.

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

*/ inline GetInstancesHealthStatusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::Vector m_instances; bool m_instancesHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws