/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::RedshiftServerless::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListRecoveryPointsRequest::ListRecoveryPointsRequest() : m_endTimeHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_namespaceArnHasBeenSet(false), m_namespaceNameHasBeenSet(false), m_nextTokenHasBeenSet(false), m_startTimeHasBeenSet(false) { } Aws::String ListRecoveryPointsRequest::SerializePayload() const { JsonValue payload; if(m_endTimeHasBeenSet) { payload.WithDouble("endTime", m_endTime.SecondsWithMSPrecision()); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_namespaceArnHasBeenSet) { payload.WithString("namespaceArn", m_namespaceArn); } if(m_namespaceNameHasBeenSet) { payload.WithString("namespaceName", m_namespaceName); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } if(m_startTimeHasBeenSet) { payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListRecoveryPointsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "RedshiftServerless.ListRecoveryPoints")); return headers; }