public Request<GetPublicAccessBlockRequest> marshall(GetPublicAccessBlockRequest getPublicAccessBlockRequest) {if (getPublicAccessBlockRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<GetPublicAccessBlockRequest> request = new DefaultRequest<GetPublicAccessBlockRequest>(getPublicAccessBlockRequest, "AWSS3Control");request.setHttpMethod(HttpMethodName.GET);if (getPublicAccessBlockRequest.getAccountId() != null) {request.addHeader("x-amz-account-id", StringUtils.fromString(getPublicAccessBlockRequest.getAccountId()));}String uriResourcePath = "/v20180820/configuration/publicAccessBlock";request.setResourcePath(uriResourcePath);return request;}

public IRequest Marshall(GetPublicAccessBlockRequest getPublicAccessBlockRequest){IRequest request = new DefaultRequest(getPublicAccessBlockRequest, "AmazonS3");request.HttpMethod = "GET";if (string.IsNullOrEmpty(getPublicAccessBlockRequest.BucketName))throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "getPublicAccessBlockRequest.BucketName");request.MarshallerVersion = 2;request.ResourcePath = string.Concat("/", S3Transforms.ToStringValue(getPublicAccessBlockRequest.BucketName));request.AddSubResource("publicAccessBlock");request.UseQueryString = true;return request;}
