public void marshall(PutDestinationRequest putDestinationRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(putDestinationRequest.getDestinationName(), DESTINATIONNAME_BINDING);
            protocolMarshaller.marshall(putDestinationRequest.getTargetArn(), TARGETARN_BINDING);
            protocolMarshaller.marshall(putDestinationRequest.getRoleArn(), ROLEARN_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( PutDestinationRequest putDestinationRequest , ProtocolMarshaller protocolMarshaller ) { if ( putDestinationRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( putDestinationRequest . getDestinationName ( ) , DESTINATIONNAME_BINDING ) ; protocolMarshaller . marshall ( putDestinationRequest . getTargetArn ( ) , TARGETARN_BINDING ) ; protocolMarshaller . marshall ( putDestinationRequest . getRoleArn ( ) , ROLEARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.