/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ivschat::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DisconnectUserRequest::DisconnectUserRequest() : m_reasonHasBeenSet(false), m_roomIdentifierHasBeenSet(false), m_userIdHasBeenSet(false) { } Aws::String DisconnectUserRequest::SerializePayload() const { JsonValue payload; if(m_reasonHasBeenSet) { payload.WithString("reason", m_reason); } if(m_roomIdentifierHasBeenSet) { payload.WithString("roomIdentifier", m_roomIdentifier); } if(m_userIdHasBeenSet) { payload.WithString("userId", m_userId); } return payload.View().WriteReadable(); }