132 lines
2.8 KiB
C++
132 lines
2.8 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/alexaforbusiness/model/UpdateProfileRequest.h>
|
|||
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::AlexaForBusiness::Model;
|
|||
|
|
using namespace Aws::Utils::Json;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
UpdateProfileRequest::UpdateProfileRequest() :
|
|||
|
|
m_profileArnHasBeenSet(false),
|
|||
|
|
m_profileNameHasBeenSet(false),
|
|||
|
|
m_isDefault(false),
|
|||
|
|
m_isDefaultHasBeenSet(false),
|
|||
|
|
m_timezoneHasBeenSet(false),
|
|||
|
|
m_addressHasBeenSet(false),
|
|||
|
|
m_distanceUnit(DistanceUnit::NOT_SET),
|
|||
|
|
m_distanceUnitHasBeenSet(false),
|
|||
|
|
m_temperatureUnit(TemperatureUnit::NOT_SET),
|
|||
|
|
m_temperatureUnitHasBeenSet(false),
|
|||
|
|
m_wakeWord(WakeWord::NOT_SET),
|
|||
|
|
m_wakeWordHasBeenSet(false),
|
|||
|
|
m_localeHasBeenSet(false),
|
|||
|
|
m_setupModeDisabled(false),
|
|||
|
|
m_setupModeDisabledHasBeenSet(false),
|
|||
|
|
m_maxVolumeLimit(0),
|
|||
|
|
m_maxVolumeLimitHasBeenSet(false),
|
|||
|
|
m_pSTNEnabled(false),
|
|||
|
|
m_pSTNEnabledHasBeenSet(false),
|
|||
|
|
m_meetingRoomConfigurationHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::String UpdateProfileRequest::SerializePayload() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_profileArnHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("ProfileArn", m_profileArn);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_profileNameHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("ProfileName", m_profileName);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_isDefaultHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithBool("IsDefault", m_isDefault);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_timezoneHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("Timezone", m_timezone);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_addressHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("Address", m_address);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_distanceUnitHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("DistanceUnit", DistanceUnitMapper::GetNameForDistanceUnit(m_distanceUnit));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_temperatureUnitHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("TemperatureUnit", TemperatureUnitMapper::GetNameForTemperatureUnit(m_temperatureUnit));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_wakeWordHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("WakeWord", WakeWordMapper::GetNameForWakeWord(m_wakeWord));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_localeHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("Locale", m_locale);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_setupModeDisabledHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithBool("SetupModeDisabled", m_setupModeDisabled);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_maxVolumeLimitHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithInteger("MaxVolumeLimit", m_maxVolumeLimit);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_pSTNEnabledHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithBool("PSTNEnabled", m_pSTNEnabled);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_meetingRoomConfigurationHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("MeetingRoomConfiguration", m_meetingRoomConfiguration.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload.View().WriteReadable();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::Http::HeaderValueCollection UpdateProfileRequest::GetRequestSpecificHeaders() const
|
|||
|
|
{
|
|||
|
|
Aws::Http::HeaderValueCollection headers;
|
|||
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AlexaForBusiness.UpdateProfile"));
|
|||
|
|
return headers;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|