code: public void marshall(EventStream eventStream, ProtocolMarshaller protocolMarshaller) {
  
          if (eventStream == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(eventStream.getApplicationId(), APPLICATIONID_BINDING);
              protocolMarshaller.marshall(eventStream.getDestinationStreamArn(), DESTINATIONSTREAMARN_BINDING);
              protocolMarshaller.marshall(eventStream.getExternalId(), EXTERNALID_BINDING);
              protocolMarshaller.marshall(eventStream.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING);
              protocolMarshaller.marshall(eventStream.getLastUpdatedBy(), LASTUPDATEDBY_BINDING);
              protocolMarshaller.marshall(eventStream.getRoleArn(), ROLEARN_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.