/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SageMaker::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListPipelinesRequest::ListPipelinesRequest() : m_pipelineNamePrefixHasBeenSet(false), m_createdAfterHasBeenSet(false), m_createdBeforeHasBeenSet(false), m_sortBy(SortPipelinesBy::NOT_SET), m_sortByHasBeenSet(false), m_sortOrder(SortOrder::NOT_SET), m_sortOrderHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false) { } Aws::String ListPipelinesRequest::SerializePayload() const { JsonValue payload; if(m_pipelineNamePrefixHasBeenSet) { payload.WithString("PipelineNamePrefix", m_pipelineNamePrefix); } if(m_createdAfterHasBeenSet) { payload.WithDouble("CreatedAfter", m_createdAfter.SecondsWithMSPrecision()); } if(m_createdBeforeHasBeenSet) { payload.WithDouble("CreatedBefore", m_createdBefore.SecondsWithMSPrecision()); } if(m_sortByHasBeenSet) { payload.WithString("SortBy", SortPipelinesByMapper::GetNameForSortPipelinesBy(m_sortBy)); } if(m_sortOrderHasBeenSet) { payload.WithString("SortOrder", SortOrderMapper::GetNameForSortOrder(m_sortOrder)); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListPipelinesRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.ListPipelines")); return headers; }