66 lines
1.3 KiB
C++
66 lines
1.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/opsworks/model/SetLoadBasedAutoScalingRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::OpsWorks::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
SetLoadBasedAutoScalingRequest::SetLoadBasedAutoScalingRequest() :
|
|
m_layerIdHasBeenSet(false),
|
|
m_enable(false),
|
|
m_enableHasBeenSet(false),
|
|
m_upScalingHasBeenSet(false),
|
|
m_downScalingHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String SetLoadBasedAutoScalingRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_layerIdHasBeenSet)
|
|
{
|
|
payload.WithString("LayerId", m_layerId);
|
|
|
|
}
|
|
|
|
if(m_enableHasBeenSet)
|
|
{
|
|
payload.WithBool("Enable", m_enable);
|
|
|
|
}
|
|
|
|
if(m_upScalingHasBeenSet)
|
|
{
|
|
payload.WithObject("UpScaling", m_upScaling.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_downScalingHasBeenSet)
|
|
{
|
|
payload.WithObject("DownScaling", m_downScaling.Jsonize());
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection SetLoadBasedAutoScalingRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "OpsWorks_20130218.SetLoadBasedAutoScaling"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|