public void marshall(CaptionDescription captionDescription, ProtocolMarshaller protocolMarshaller) {

        if (captionDescription == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(captionDescription.getCaptionSelectorName(), CAPTIONSELECTORNAME_BINDING);
            protocolMarshaller.marshall(captionDescription.getDestinationSettings(), DESTINATIONSETTINGS_BINDING);
            protocolMarshaller.marshall(captionDescription.getLanguageCode(), LANGUAGECODE_BINDING);
            protocolMarshaller.marshall(captionDescription.getLanguageDescription(), LANGUAGEDESCRIPTION_BINDING);
            protocolMarshaller.marshall(captionDescription.getName(), NAME_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( CaptionDescription captionDescription , ProtocolMarshaller protocolMarshaller ) { if ( captionDescription == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( captionDescription . getCaptionSelectorName ( ) , CAPTIONSELECTORNAME_BINDING ) ; protocolMarshaller . marshall ( captionDescription . getDestinationSettings ( ) , DESTINATIONSETTINGS_BINDING ) ; protocolMarshaller . marshall ( captionDescription . getLanguageCode ( ) , LANGUAGECODE_BINDING ) ; protocolMarshaller . marshall ( captionDescription . getLanguageDescription ( ) , LANGUAGEDESCRIPTION_BINDING ) ; protocolMarshaller . marshall ( captionDescription . getName ( ) , NAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.