public Request<DeletePublicAccessBlockRequest> marshall(DeletePublicAccessBlockRequest deletePublicAccessBlockRequest) {if (deletePublicAccessBlockRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<DeletePublicAccessBlockRequest> request = new DefaultRequest<DeletePublicAccessBlockRequest>(deletePublicAccessBlockRequest, "AWSS3Control");request.setHttpMethod(HttpMethodName.DELETE);if (deletePublicAccessBlockRequest.getAccountId() != null) {request.addHeader("x-amz-account-id", StringUtils.fromString(deletePublicAccessBlockRequest.getAccountId()));}String uriResourcePath = "/v20180820/configuration/publicAccessBlock";request.setResourcePath(uriResourcePath);return request;}
public IRequest Marshall(DeletePublicAccessBlockRequest deletePublicAccessBlockRequest){IRequest request = new DefaultRequest(deletePublicAccessBlockRequest, "AmazonS3");request.HttpMethod = "DELETE";if (string.IsNullOrEmpty(deletePublicAccessBlockRequest.BucketName))throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "deletePublicAccessBlockRequest.BucketName");request.MarshallerVersion = 2;request.ResourcePath = string.Concat("/", S3Transforms.ToStringValue(deletePublicAccessBlockRequest.BucketName));request.AddSubResource("publicAccessBlock");request.UseQueryString = true;return request;}