code: public void marshall(UpdateDestinationRequest updateDestinationRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (updateDestinationRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(updateDestinationRequest.getDeliveryStreamName(), DELIVERYSTREAMNAME_BINDING);
              protocolMarshaller.marshall(updateDestinationRequest.getCurrentDeliveryStreamVersionId(), CURRENTDELIVERYSTREAMVERSIONID_BINDING);
              protocolMarshaller.marshall(updateDestinationRequest.getDestinationId(), DESTINATIONID_BINDING);
              protocolMarshaller.marshall(updateDestinationRequest.getS3DestinationUpdate(), S3DESTINATIONUPDATE_BINDING);
              protocolMarshaller.marshall(updateDestinationRequest.getExtendedS3DestinationUpdate(), EXTENDEDS3DESTINATIONUPDATE_BINDING);
              protocolMarshaller.marshall(updateDestinationRequest.getRedshiftDestinationUpdate(), REDSHIFTDESTINATIONUPDATE_BINDING);
              protocolMarshaller.marshall(updateDestinationRequest.getElasticsearchDestinationUpdate(), ELASTICSEARCHDESTINATIONUPDATE_BINDING);
              protocolMarshaller.marshall(updateDestinationRequest.getSplunkDestinationUpdate(), SPLUNKDESTINATIONUPDATE_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.