/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include using namespace Aws::SESV2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws::Http; ListImportJobsRequest::ListImportJobsRequest() : m_importDestinationType(ImportDestinationType::NOT_SET), m_importDestinationTypeHasBeenSet(false), m_nextTokenHasBeenSet(false), m_pageSize(0), m_pageSizeHasBeenSet(false) { } Aws::String ListImportJobsRequest::SerializePayload() const { JsonValue payload; if(m_importDestinationTypeHasBeenSet) { payload.WithString("ImportDestinationType", ImportDestinationTypeMapper::GetNameForImportDestinationType(m_importDestinationType)); } return payload.View().WriteReadable(); } void ListImportJobsRequest::AddQueryStringParameters(URI& uri) const { Aws::StringStream ss; if(m_nextTokenHasBeenSet) { ss << m_nextToken; uri.AddQueryStringParameter("NextToken", ss.str()); ss.str(""); } if(m_pageSizeHasBeenSet) { ss << m_pageSize; uri.AddQueryStringParameter("PageSize", ss.str()); ss.str(""); } }