107 lines
2.5 KiB
C++
107 lines
2.5 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/alexaforbusiness/model/UpdateMeetingRoomConfiguration.h>
|
|||
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::Utils::Json;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace AlexaForBusiness
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
UpdateMeetingRoomConfiguration::UpdateMeetingRoomConfiguration() :
|
|||
|
|
m_roomUtilizationMetricsEnabled(false),
|
|||
|
|
m_roomUtilizationMetricsEnabledHasBeenSet(false),
|
|||
|
|
m_endOfMeetingReminderHasBeenSet(false),
|
|||
|
|
m_instantBookingHasBeenSet(false),
|
|||
|
|
m_requireCheckInHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
UpdateMeetingRoomConfiguration::UpdateMeetingRoomConfiguration(JsonView jsonValue) :
|
|||
|
|
m_roomUtilizationMetricsEnabled(false),
|
|||
|
|
m_roomUtilizationMetricsEnabledHasBeenSet(false),
|
|||
|
|
m_endOfMeetingReminderHasBeenSet(false),
|
|||
|
|
m_instantBookingHasBeenSet(false),
|
|||
|
|
m_requireCheckInHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
*this = jsonValue;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
UpdateMeetingRoomConfiguration& UpdateMeetingRoomConfiguration::operator =(JsonView jsonValue)
|
|||
|
|
{
|
|||
|
|
if(jsonValue.ValueExists("RoomUtilizationMetricsEnabled"))
|
|||
|
|
{
|
|||
|
|
m_roomUtilizationMetricsEnabled = jsonValue.GetBool("RoomUtilizationMetricsEnabled");
|
|||
|
|
|
|||
|
|
m_roomUtilizationMetricsEnabledHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("EndOfMeetingReminder"))
|
|||
|
|
{
|
|||
|
|
m_endOfMeetingReminder = jsonValue.GetObject("EndOfMeetingReminder");
|
|||
|
|
|
|||
|
|
m_endOfMeetingReminderHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("InstantBooking"))
|
|||
|
|
{
|
|||
|
|
m_instantBooking = jsonValue.GetObject("InstantBooking");
|
|||
|
|
|
|||
|
|
m_instantBookingHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(jsonValue.ValueExists("RequireCheckIn"))
|
|||
|
|
{
|
|||
|
|
m_requireCheckIn = jsonValue.GetObject("RequireCheckIn");
|
|||
|
|
|
|||
|
|
m_requireCheckInHasBeenSet = true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return *this;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
JsonValue UpdateMeetingRoomConfiguration::Jsonize() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_roomUtilizationMetricsEnabledHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithBool("RoomUtilizationMetricsEnabled", m_roomUtilizationMetricsEnabled);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_endOfMeetingReminderHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("EndOfMeetingReminder", m_endOfMeetingReminder.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_instantBookingHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("InstantBooking", m_instantBooking.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_requireCheckInHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithObject("RequireCheckIn", m_requireCheckIn.Jsonize());
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace AlexaForBusiness
|
|||
|
|
} // namespace Aws
|