/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/drs/model/DescribeRecoverySnapshotsRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::drs::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DescribeRecoverySnapshotsRequest::DescribeRecoverySnapshotsRequest() : m_filtersHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_order(RecoverySnapshotsOrder::NOT_SET), m_orderHasBeenSet(false), m_sourceServerIDHasBeenSet(false) { } Aws::String DescribeRecoverySnapshotsRequest::SerializePayload() const { JsonValue payload; 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_orderHasBeenSet) { payload.WithString("order", RecoverySnapshotsOrderMapper::GetNameForRecoverySnapshotsOrder(m_order)); } if(m_sourceServerIDHasBeenSet) { payload.WithString("sourceServerID", m_sourceServerID); } return payload.View().WriteReadable(); }