/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::ECR::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UploadLayerPartRequest::UploadLayerPartRequest() : m_registryIdHasBeenSet(false), m_repositoryNameHasBeenSet(false), m_uploadIdHasBeenSet(false), m_partFirstByte(0), m_partFirstByteHasBeenSet(false), m_partLastByte(0), m_partLastByteHasBeenSet(false), m_layerPartBlobHasBeenSet(false) { } Aws::String UploadLayerPartRequest::SerializePayload() const { JsonValue payload; if(m_registryIdHasBeenSet) { payload.WithString("registryId", m_registryId); } if(m_repositoryNameHasBeenSet) { payload.WithString("repositoryName", m_repositoryName); } if(m_uploadIdHasBeenSet) { payload.WithString("uploadId", m_uploadId); } if(m_partFirstByteHasBeenSet) { payload.WithInt64("partFirstByte", m_partFirstByte); } if(m_partLastByteHasBeenSet) { payload.WithInt64("partLastByte", m_partLastByte); } if(m_layerPartBlobHasBeenSet) { payload.WithString("layerPartBlob", HashingUtils::Base64Encode(m_layerPartBlob)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UploadLayerPartRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonEC2ContainerRegistry_V20150921.UploadLayerPart")); return headers; }