/** * 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; ListContactsRequest::ListContactsRequest() : m_contactListNameHasBeenSet(false), m_filterHasBeenSet(false), m_pageSize(0), m_pageSizeHasBeenSet(false), m_nextTokenHasBeenSet(false) { } Aws::String ListContactsRequest::SerializePayload() const { JsonValue payload; if(m_filterHasBeenSet) { payload.WithObject("Filter", m_filter.Jsonize()); } return payload.View().WriteReadable(); } void ListContactsRequest::AddQueryStringParameters(URI& uri) const { Aws::StringStream ss; if(m_pageSizeHasBeenSet) { ss << m_pageSize; uri.AddQueryStringParameter("PageSize", ss.str()); ss.str(""); } if(m_nextTokenHasBeenSet) { ss << m_nextToken; uri.AddQueryStringParameter("NextToken", ss.str()); ss.str(""); } }