/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ServiceDiscovery::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; GetInstancesHealthStatusRequest::GetInstancesHealthStatusRequest() : m_serviceIdHasBeenSet(false), m_instancesHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false) { } Aws::String GetInstancesHealthStatusRequest::SerializePayload() const { JsonValue payload; if(m_serviceIdHasBeenSet) { payload.WithString("ServiceId", m_serviceId); } if(m_instancesHasBeenSet) { Aws::Utils::Array instancesJsonList(m_instances.size()); for(unsigned instancesIndex = 0; instancesIndex < instancesJsonList.GetLength(); ++instancesIndex) { instancesJsonList[instancesIndex].AsString(m_instances[instancesIndex]); } payload.WithArray("Instances", std::move(instancesJsonList)); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetInstancesHealthStatusRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Route53AutoNaming_v20170314.GetInstancesHealthStatus")); return headers; }