docs: public void marshall(ElasticsearchAction elasticsearchAction, ProtocolMarshaller protocolMarshaller) {
  
          if (elasticsearchAction == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(elasticsearchAction.getRoleArn(), ROLEARN_BINDING);
              protocolMarshaller.marshall(elasticsearchAction.getEndpoint(), ENDPOINT_BINDING);
              protocolMarshaller.marshall(elasticsearchAction.getIndex(), INDEX_BINDING);
              protocolMarshaller.marshall(elasticsearchAction.getType(), TYPE_BINDING);
              protocolMarshaller.marshall(elasticsearchAction.getId(), ID_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }