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