/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::AutoScaling::Model; using namespace Aws::Utils; PutWarmPoolRequest::PutWarmPoolRequest() : m_autoScalingGroupNameHasBeenSet(false), m_maxGroupPreparedCapacity(0), m_maxGroupPreparedCapacityHasBeenSet(false), m_minSize(0), m_minSizeHasBeenSet(false), m_poolState(WarmPoolState::NOT_SET), m_poolStateHasBeenSet(false), m_instanceReusePolicyHasBeenSet(false) { } Aws::String PutWarmPoolRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=PutWarmPool&"; if(m_autoScalingGroupNameHasBeenSet) { ss << "AutoScalingGroupName=" << StringUtils::URLEncode(m_autoScalingGroupName.c_str()) << "&"; } if(m_maxGroupPreparedCapacityHasBeenSet) { ss << "MaxGroupPreparedCapacity=" << m_maxGroupPreparedCapacity << "&"; } if(m_minSizeHasBeenSet) { ss << "MinSize=" << m_minSize << "&"; } if(m_poolStateHasBeenSet) { ss << "PoolState=" << WarmPoolStateMapper::GetNameForWarmPoolState(m_poolState) << "&"; } if(m_instanceReusePolicyHasBeenSet) { m_instanceReusePolicy.OutputToStream(ss, "InstanceReusePolicy"); } ss << "Version=2011-01-01"; return ss.str(); } void PutWarmPoolRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }