/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ServiceDiscovery { namespace Model { class AWS_SERVICEDISCOVERY_API GetInstancesHealthStatusResult { public: GetInstancesHealthStatusResult(); GetInstancesHealthStatusResult(const Aws::AmazonWebServiceResult& result); GetInstancesHealthStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

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

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

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

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

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

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

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

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

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

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

*/ inline GetInstancesHealthStatusResult& AddStatus(const Aws::String& key, const HealthStatus& value) { m_status.emplace(key, value); return *this; } /** *

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

*/ inline GetInstancesHealthStatusResult& AddStatus(Aws::String&& key, const HealthStatus& value) { m_status.emplace(std::move(key), value); return *this; } /** *

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

*/ inline GetInstancesHealthStatusResult& AddStatus(const Aws::String& key, HealthStatus&& value) { m_status.emplace(key, std::move(value)); return *this; } /** *

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

*/ inline GetInstancesHealthStatusResult& AddStatus(Aws::String&& key, HealthStatus&& value) { m_status.emplace(std::move(key), std::move(value)); return *this; } /** *

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

*/ inline GetInstancesHealthStatusResult& AddStatus(const char* key, HealthStatus&& value) { m_status.emplace(key, std::move(value)); return *this; } /** *

A complex type that contains the IDs and the health status of the instances * that you specified in the GetInstancesHealthStatus request.

*/ inline GetInstancesHealthStatusResult& AddStatus(const char* key, const HealthStatus& value) { m_status.emplace(key, value); return *this; } /** *

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; } /** *

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_nextToken = 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_nextToken = std::move(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_nextToken.assign(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 GetInstancesHealthStatusResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

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 GetInstancesHealthStatusResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

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 GetInstancesHealthStatusResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Map m_status; Aws::String m_nextToken; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws