code: public void marshall(ElasticsearchDestinationConfiguration elasticsearchDestinationConfiguration, ProtocolMarshaller protocolMarshaller) {
  
          if (elasticsearchDestinationConfiguration == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getRoleARN(), ROLEARN_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getDomainARN(), DOMAINARN_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getIndexName(), INDEXNAME_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getTypeName(), TYPENAME_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getIndexRotationPeriod(), INDEXROTATIONPERIOD_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getBufferingHints(), BUFFERINGHINTS_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getRetryOptions(), RETRYOPTIONS_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getS3BackupMode(), S3BACKUPMODE_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getS3Configuration(), S3CONFIGURATION_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getProcessingConfiguration(), PROCESSINGCONFIGURATION_BINDING);
              protocolMarshaller.marshall(elasticsearchDestinationConfiguration.getCloudWatchLoggingOptions(), CLOUDWATCHLOGGINGOPTIONS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.