public void marshall(ResourceIdentifier resourceIdentifier, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(resourceIdentifier.getDeviceCertificateId(), DEVICECERTIFICATEID_BINDING);
            protocolMarshaller.marshall(resourceIdentifier.getCaCertificateId(), CACERTIFICATEID_BINDING);
            protocolMarshaller.marshall(resourceIdentifier.getCognitoIdentityPoolId(), COGNITOIDENTITYPOOLID_BINDING);
            protocolMarshaller.marshall(resourceIdentifier.getClientId(), CLIENTID_BINDING);
            protocolMarshaller.marshall(resourceIdentifier.getPolicyVersionIdentifier(), POLICYVERSIONIDENTIFIER_BINDING);
            protocolMarshaller.marshall(resourceIdentifier.getAccount(), ACCOUNT_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ResourceIdentifier resourceIdentifier , ProtocolMarshaller protocolMarshaller ) { if ( resourceIdentifier == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( resourceIdentifier . getDeviceCertificateId ( ) , DEVICECERTIFICATEID_BINDING ) ; protocolMarshaller . marshall ( resourceIdentifier . getCaCertificateId ( ) , CACERTIFICATEID_BINDING ) ; protocolMarshaller . marshall ( resourceIdentifier . getCognitoIdentityPoolId ( ) , COGNITOIDENTITYPOOLID_BINDING ) ; protocolMarshaller . marshall ( resourceIdentifier . getClientId ( ) , CLIENTID_BINDING ) ; protocolMarshaller . marshall ( resourceIdentifier . getPolicyVersionIdentifier ( ) , POLICYVERSIONIDENTIFIER_BINDING ) ; protocolMarshaller . marshall ( resourceIdentifier . getAccount ( ) , ACCOUNT_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.