60 lines
1.0 KiB
C++
60 lines
1.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/chime/model/VoiceConnectorSettings.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Chime
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
VoiceConnectorSettings::VoiceConnectorSettings() :
|
|
m_cdrBucketHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
VoiceConnectorSettings::VoiceConnectorSettings(JsonView jsonValue) :
|
|
m_cdrBucketHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
VoiceConnectorSettings& VoiceConnectorSettings::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("CdrBucket"))
|
|
{
|
|
m_cdrBucket = jsonValue.GetString("CdrBucket");
|
|
|
|
m_cdrBucketHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue VoiceConnectorSettings::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_cdrBucketHasBeenSet)
|
|
{
|
|
payload.WithString("CdrBucket", m_cdrBucket);
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace Chime
|
|
} // namespace Aws
|