/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::GlobalAccelerator::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateCustomRoutingAcceleratorRequest::UpdateCustomRoutingAcceleratorRequest() : m_acceleratorArnHasBeenSet(false), m_nameHasBeenSet(false), m_ipAddressType(IpAddressType::NOT_SET), m_ipAddressTypeHasBeenSet(false), m_enabled(false), m_enabledHasBeenSet(false) { } Aws::String UpdateCustomRoutingAcceleratorRequest::SerializePayload() const { JsonValue payload; if(m_acceleratorArnHasBeenSet) { payload.WithString("AcceleratorArn", m_acceleratorArn); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_ipAddressTypeHasBeenSet) { payload.WithString("IpAddressType", IpAddressTypeMapper::GetNameForIpAddressType(m_ipAddressType)); } if(m_enabledHasBeenSet) { payload.WithBool("Enabled", m_enabled); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateCustomRoutingAcceleratorRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "GlobalAccelerator_V20180706.UpdateCustomRoutingAccelerator")); return headers; }