/** * 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; GetPredictiveScalingForecastRequest::GetPredictiveScalingForecastRequest() : m_autoScalingGroupNameHasBeenSet(false), m_policyNameHasBeenSet(false), m_startTimeHasBeenSet(false), m_endTimeHasBeenSet(false) { } Aws::String GetPredictiveScalingForecastRequest::SerializePayload() const { Aws::StringStream ss; ss << "Action=GetPredictiveScalingForecast&"; if(m_autoScalingGroupNameHasBeenSet) { ss << "AutoScalingGroupName=" << StringUtils::URLEncode(m_autoScalingGroupName.c_str()) << "&"; } if(m_policyNameHasBeenSet) { ss << "PolicyName=" << StringUtils::URLEncode(m_policyName.c_str()) << "&"; } if(m_startTimeHasBeenSet) { ss << "StartTime=" << StringUtils::URLEncode(m_startTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_endTimeHasBeenSet) { ss << "EndTime=" << StringUtils::URLEncode(m_endTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } ss << "Version=2011-01-01"; return ss.str(); } void GetPredictiveScalingForecastRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const { uri.SetQueryString(SerializePayload()); }