code: public void marshall(EventDestinationDefinition eventDestinationDefinition, ProtocolMarshaller protocolMarshaller) {
  
          if (eventDestinationDefinition == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(eventDestinationDefinition.getEnabled(), ENABLED_BINDING);
              protocolMarshaller.marshall(eventDestinationDefinition.getMatchingEventTypes(), MATCHINGEVENTTYPES_BINDING);
              protocolMarshaller.marshall(eventDestinationDefinition.getKinesisFirehoseDestination(), KINESISFIREHOSEDESTINATION_BINDING);
              protocolMarshaller.marshall(eventDestinationDefinition.getCloudWatchDestination(), CLOUDWATCHDESTINATION_BINDING);
              protocolMarshaller.marshall(eventDestinationDefinition.getSnsDestination(), SNSDESTINATION_BINDING);
              protocolMarshaller.marshall(eventDestinationDefinition.getPinpointDestination(), PINPOINTDESTINATION_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.