public void marshall(UpdateSegmentRequest updateSegmentRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(updateSegmentRequest.getApplicationId(), APPLICATIONID_BINDING);
            protocolMarshaller.marshall(updateSegmentRequest.getSegmentId(), SEGMENTID_BINDING);
            protocolMarshaller.marshall(updateSegmentRequest.getWriteSegmentRequest(), WRITESEGMENTREQUEST_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( UpdateSegmentRequest updateSegmentRequest , ProtocolMarshaller protocolMarshaller ) { if ( updateSegmentRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateSegmentRequest . getApplicationId ( ) , APPLICATIONID_BINDING ) ; protocolMarshaller . marshall ( updateSegmentRequest . getSegmentId ( ) , SEGMENTID_BINDING ) ; protocolMarshaller . marshall ( updateSegmentRequest . getWriteSegmentRequest ( ) , WRITESEGMENTREQUEST_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.