public void marshall(PutPermissionRequest putPermissionRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(putPermissionRequest.getAction(), ACTION_BINDING);
            protocolMarshaller.marshall(putPermissionRequest.getPrincipal(), PRINCIPAL_BINDING);
            protocolMarshaller.marshall(putPermissionRequest.getStatementId(), STATEMENTID_BINDING);
            protocolMarshaller.marshall(putPermissionRequest.getCondition(), CONDITION_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( PutPermissionRequest putPermissionRequest , ProtocolMarshaller protocolMarshaller ) { if ( putPermissionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( putPermissionRequest . getAction ( ) , ACTION_BINDING ) ; protocolMarshaller . marshall ( putPermissionRequest . getPrincipal ( ) , PRINCIPAL_BINDING ) ; protocolMarshaller . marshall ( putPermissionRequest . getStatementId ( ) , STATEMENTID_BINDING ) ; protocolMarshaller . marshall ( putPermissionRequest . getCondition ( ) , CONDITION_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.