/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ChimeSDKMeetings::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; BatchCreateAttendeeRequest::BatchCreateAttendeeRequest() : m_meetingIdHasBeenSet(false), m_attendeesHasBeenSet(false) { } Aws::String BatchCreateAttendeeRequest::SerializePayload() const { JsonValue payload; if(m_attendeesHasBeenSet) { Aws::Utils::Array attendeesJsonList(m_attendees.size()); for(unsigned attendeesIndex = 0; attendeesIndex < attendeesJsonList.GetLength(); ++attendeesIndex) { attendeesJsonList[attendeesIndex].AsObject(m_attendees[attendeesIndex].Jsonize()); } payload.WithArray("Attendees", std::move(attendeesJsonList)); } return payload.View().WriteReadable(); }