/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ChimeSDKVoice::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateSipMediaApplicationRequest::UpdateSipMediaApplicationRequest() : m_sipMediaApplicationIdHasBeenSet(false), m_nameHasBeenSet(false), m_endpointsHasBeenSet(false) { } Aws::String UpdateSipMediaApplicationRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_endpointsHasBeenSet) { Aws::Utils::Array endpointsJsonList(m_endpoints.size()); for(unsigned endpointsIndex = 0; endpointsIndex < endpointsJsonList.GetLength(); ++endpointsIndex) { endpointsJsonList[endpointsIndex].AsObject(m_endpoints[endpointsIndex].Jsonize()); } payload.WithArray("Endpoints", std::move(endpointsJsonList)); } return payload.View().WriteReadable(); }