47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/elasticloadbalancingv2/model/DescribeTargetHealthRequest.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
using namespace Aws::ElasticLoadBalancingv2::Model;
|
|
using namespace Aws::Utils;
|
|
|
|
DescribeTargetHealthRequest::DescribeTargetHealthRequest() :
|
|
m_targetGroupArnHasBeenSet(false),
|
|
m_targetsHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String DescribeTargetHealthRequest::SerializePayload() const
|
|
{
|
|
Aws::StringStream ss;
|
|
ss << "Action=DescribeTargetHealth&";
|
|
if(m_targetGroupArnHasBeenSet)
|
|
{
|
|
ss << "TargetGroupArn=" << StringUtils::URLEncode(m_targetGroupArn.c_str()) << "&";
|
|
}
|
|
|
|
if(m_targetsHasBeenSet)
|
|
{
|
|
unsigned targetsCount = 1;
|
|
for(auto& item : m_targets)
|
|
{
|
|
item.OutputToStream(ss, "Targets.member.", targetsCount, "");
|
|
targetsCount++;
|
|
}
|
|
}
|
|
|
|
ss << "Version=2015-12-01";
|
|
return ss.str();
|
|
}
|
|
|
|
|
|
void DescribeTargetHealthRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const
|
|
{
|
|
uri.SetQueryString(SerializePayload());
|
|
}
|