71 lines
1.6 KiB
C++
71 lines
1.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/servicediscovery/model/GetInstancesHealthStatusRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
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)
|
|
{
|
|
Array<JsonValue> 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|