/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::S3Control::Model; using namespace Aws::Utils::Xml; using namespace Aws::Utils; using namespace Aws::Http; ListJobsRequest::ListJobsRequest() : m_accountIdHasBeenSet(false), m_jobStatusesHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false) { } Aws::String ListJobsRequest::SerializePayload() const { return {}; } void ListJobsRequest::AddQueryStringParameters(URI& uri) const { Aws::StringStream ss; if(m_jobStatusesHasBeenSet) { for(const auto& item : m_jobStatuses) { ss << JobStatusMapper::GetNameForJobStatus(item); uri.AddQueryStringParameter("jobStatuses", ss.str()); ss.str(""); } } if(m_nextTokenHasBeenSet) { ss << m_nextToken; uri.AddQueryStringParameter("nextToken", ss.str()); ss.str(""); } if(m_maxResultsHasBeenSet) { ss << m_maxResults; uri.AddQueryStringParameter("maxResults", ss.str()); ss.str(""); } } Aws::Http::HeaderValueCollection ListJobsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; Aws::StringStream ss; if(m_accountIdHasBeenSet) { ss << m_accountId; headers.emplace("x-amz-account-id", ss.str()); ss.str(""); } return headers; } ListJobsRequest::EndpointParameters ListJobsRequest::GetEndpointContextParams() const { EndpointParameters parameters; // Static context parameters parameters.emplace_back(Aws::String("RequiresAccountId"), true, Aws::Endpoint::EndpointParameter::ParameterOrigin::STATIC_CONTEXT); // Operation context parameters if (AccountIdHasBeenSet()) { parameters.emplace_back(Aws::String("AccountId"), this->GetAccountId(), Aws::Endpoint::EndpointParameter::ParameterOrigin::OPERATION_CONTEXT); } return parameters; }