code: public void marshall(PublishLayerVersionRequest publishLayerVersionRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (publishLayerVersionRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(publishLayerVersionRequest.getLayerName(), LAYERNAME_BINDING);
              protocolMarshaller.marshall(publishLayerVersionRequest.getDescription(), DESCRIPTION_BINDING);
              protocolMarshaller.marshall(publishLayerVersionRequest.getContent(), CONTENT_BINDING);
              protocolMarshaller.marshall(publishLayerVersionRequest.getCompatibleRuntimes(), COMPATIBLERUNTIMES_BINDING);
              protocolMarshaller.marshall(publishLayerVersionRequest.getLicenseInfo(), LICENSEINFO_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.