code: public void marshall(ResourceKey resourceKey, ProtocolMarshaller protocolMarshaller) {
  
          if (resourceKey == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(resourceKey.getResourceType(), RESOURCETYPE_BINDING);
              protocolMarshaller.marshall(resourceKey.getResourceId(), RESOURCEID_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.