/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ivsrealtime::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListParticipantsRequest::ListParticipantsRequest() : m_filterByPublished(false), m_filterByPublishedHasBeenSet(false), m_filterByState(ParticipantState::NOT_SET), m_filterByStateHasBeenSet(false), m_filterByUserIdHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_sessionIdHasBeenSet(false), m_stageArnHasBeenSet(false) { } Aws::String ListParticipantsRequest::SerializePayload() const { JsonValue payload; if(m_filterByPublishedHasBeenSet) { payload.WithBool("filterByPublished", m_filterByPublished); } if(m_filterByStateHasBeenSet) { payload.WithString("filterByState", ParticipantStateMapper::GetNameForParticipantState(m_filterByState)); } if(m_filterByUserIdHasBeenSet) { payload.WithString("filterByUserId", m_filterByUserId); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } if(m_sessionIdHasBeenSet) { payload.WithString("sessionId", m_sessionId); } if(m_stageArnHasBeenSet) { payload.WithString("stageArn", m_stageArn); } return payload.View().WriteReadable(); }