/** * 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; DeleteVoiceConnectorTerminationCredentialsRequest::DeleteVoiceConnectorTerminationCredentialsRequest() : m_voiceConnectorIdHasBeenSet(false), m_usernamesHasBeenSet(false) { } Aws::String DeleteVoiceConnectorTerminationCredentialsRequest::SerializePayload() const { JsonValue payload; if(m_usernamesHasBeenSet) { Aws::Utils::Array usernamesJsonList(m_usernames.size()); for(unsigned usernamesIndex = 0; usernamesIndex < usernamesJsonList.GetLength(); ++usernamesIndex) { usernamesJsonList[usernamesIndex].AsString(m_usernames[usernamesIndex]); } payload.WithArray("Usernames", std::move(usernamesJsonList)); } return payload.View().WriteReadable(); }