public void marshall(ResourceServerType resourceServerType, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(resourceServerType.getUserPoolId(), USERPOOLID_BINDING);
            protocolMarshaller.marshall(resourceServerType.getIdentifier(), IDENTIFIER_BINDING);
            protocolMarshaller.marshall(resourceServerType.getName(), NAME_BINDING);
            protocolMarshaller.marshall(resourceServerType.getScopes(), SCOPES_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ResourceServerType resourceServerType , ProtocolMarshaller protocolMarshaller ) { if ( resourceServerType == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( resourceServerType . getUserPoolId ( ) , USERPOOLID_BINDING ) ; protocolMarshaller . marshall ( resourceServerType . getIdentifier ( ) , IDENTIFIER_BINDING ) ; protocolMarshaller . marshall ( resourceServerType . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( resourceServerType . getScopes ( ) , SCOPES_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.