public void marshall(InstancePortState instancePortState, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(instancePortState.getFromPort(), FROMPORT_BINDING);
            protocolMarshaller.marshall(instancePortState.getToPort(), TOPORT_BINDING);
            protocolMarshaller.marshall(instancePortState.getProtocol(), PROTOCOL_BINDING);
            protocolMarshaller.marshall(instancePortState.getState(), STATE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( InstancePortState instancePortState , ProtocolMarshaller protocolMarshaller ) { if ( instancePortState == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( instancePortState . getFromPort ( ) , FROMPORT_BINDING ) ; protocolMarshaller . marshall ( instancePortState . getToPort ( ) , TOPORT_BINDING ) ; protocolMarshaller . marshall ( instancePortState . getProtocol ( ) , PROTOCOL_BINDING ) ; protocolMarshaller . marshall ( instancePortState . getState ( ) , STATE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.