public Request<DeletePublicKeyRequest> marshall(DeletePublicKeyRequest deletePublicKeyRequest) {if (deletePublicKeyRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<DeletePublicKeyRequest> request = new DefaultRequest<DeletePublicKeyRequest>(deletePublicKeyRequest, "AmazonCloudFront");request.setHttpMethod(HttpMethodName.DELETE);if (deletePublicKeyRequest.getIfMatch() != null) {request.addHeader("If-Match", StringUtils.fromString(deletePublicKeyRequest.getIfMatch()));}String uriResourcePath = "/2019-03-26/public-key/{Id}";uriResourcePath = com.amazonaws.transform.PathMarshallers.NON_GREEDY.marshall(uriResourcePath, "Id", deletePublicKeyRequest.getId());request.setResourcePath(uriResourcePath);return request;}

public IRequest Marshall(DeletePublicKeyRequest publicRequest){var request = new DefaultRequest(publicRequest, "Amazon.CloudFront");request.HttpMethod = "DELETE";if(publicRequest.IsSetIfMatch())request.Headers["If-Match"] = publicRequest.IfMatch;if (!publicRequest.IsSetId())throw new AmazonCloudFrontException("Request object does not have required field Id set");request.AddPathResource("{Id}", StringUtils.FromString(publicRequest.Id));request.ResourcePath = "/2019-03-26/public-key/{Id}";request.MarshallerVersion = 2;return request;}
