45 lines
874 B
C++
45 lines
874 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/chime/model/UpdateVoiceConnectorRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Chime::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdateVoiceConnectorRequest::UpdateVoiceConnectorRequest() :
|
|
m_voiceConnectorIdHasBeenSet(false),
|
|
m_nameHasBeenSet(false),
|
|
m_requireEncryption(false),
|
|
m_requireEncryptionHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdateVoiceConnectorRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_nameHasBeenSet)
|
|
{
|
|
payload.WithString("Name", m_name);
|
|
|
|
}
|
|
|
|
if(m_requireEncryptionHasBeenSet)
|
|
{
|
|
payload.WithBool("RequireEncryption", m_requireEncryption);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|