/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::mgn::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListSourceServerActionsRequest::ListSourceServerActionsRequest() : m_accountIDHasBeenSet(false), m_filtersHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_sourceServerIDHasBeenSet(false) { } Aws::String ListSourceServerActionsRequest::SerializePayload() const { JsonValue payload; if(m_accountIDHasBeenSet) { payload.WithString("accountID", m_accountID); } if(m_filtersHasBeenSet) { payload.WithObject("filters", m_filters.Jsonize()); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } if(m_sourceServerIDHasBeenSet) { payload.WithString("sourceServerID", m_sourceServerID); } return payload.View().WriteReadable(); }