public void marshall(ImportCertificateRequest importCertificateRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(importCertificateRequest.getCertificateArn(), CERTIFICATEARN_BINDING);
            protocolMarshaller.marshall(importCertificateRequest.getCertificate(), CERTIFICATE_BINDING);
            protocolMarshaller.marshall(importCertificateRequest.getPrivateKey(), PRIVATEKEY_BINDING);
            protocolMarshaller.marshall(importCertificateRequest.getCertificateChain(), CERTIFICATECHAIN_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ImportCertificateRequest importCertificateRequest , ProtocolMarshaller protocolMarshaller ) { if ( importCertificateRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( importCertificateRequest . getCertificateArn ( ) , CERTIFICATEARN_BINDING ) ; protocolMarshaller . marshall ( importCertificateRequest . getCertificate ( ) , CERTIFICATE_BINDING ) ; protocolMarshaller . marshall ( importCertificateRequest . getPrivateKey ( ) , PRIVATEKEY_BINDING ) ; protocolMarshaller . marshall ( importCertificateRequest . getCertificateChain ( ) , CERTIFICATECHAIN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.