/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace ChimeSDKMeetings { namespace Model { Attendee::Attendee() : m_externalUserIdHasBeenSet(false), m_attendeeIdHasBeenSet(false), m_joinTokenHasBeenSet(false), m_capabilitiesHasBeenSet(false) { } Attendee::Attendee(JsonView jsonValue) : m_externalUserIdHasBeenSet(false), m_attendeeIdHasBeenSet(false), m_joinTokenHasBeenSet(false), m_capabilitiesHasBeenSet(false) { *this = jsonValue; } Attendee& Attendee::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ExternalUserId")) { m_externalUserId = jsonValue.GetString("ExternalUserId"); m_externalUserIdHasBeenSet = true; } if(jsonValue.ValueExists("AttendeeId")) { m_attendeeId = jsonValue.GetString("AttendeeId"); m_attendeeIdHasBeenSet = true; } if(jsonValue.ValueExists("JoinToken")) { m_joinToken = jsonValue.GetString("JoinToken"); m_joinTokenHasBeenSet = true; } if(jsonValue.ValueExists("Capabilities")) { m_capabilities = jsonValue.GetObject("Capabilities"); m_capabilitiesHasBeenSet = true; } return *this; } JsonValue Attendee::Jsonize() const { JsonValue payload; if(m_externalUserIdHasBeenSet) { payload.WithString("ExternalUserId", m_externalUserId); } if(m_attendeeIdHasBeenSet) { payload.WithString("AttendeeId", m_attendeeId); } if(m_joinTokenHasBeenSet) { payload.WithString("JoinToken", m_joinToken); } if(m_capabilitiesHasBeenSet) { payload.WithObject("Capabilities", m_capabilities.Jsonize()); } return payload; } } // namespace Model } // namespace ChimeSDKMeetings } // namespace Aws