public void marshall(CreateDirectoryRequest createDirectoryRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(createDirectoryRequest.getName(), NAME_BINDING);
            protocolMarshaller.marshall(createDirectoryRequest.getShortName(), SHORTNAME_BINDING);
            protocolMarshaller.marshall(createDirectoryRequest.getPassword(), PASSWORD_BINDING);
            protocolMarshaller.marshall(createDirectoryRequest.getDescription(), DESCRIPTION_BINDING);
            protocolMarshaller.marshall(createDirectoryRequest.getSize(), SIZE_BINDING);
            protocolMarshaller.marshall(createDirectoryRequest.getVpcSettings(), VPCSETTINGS_BINDING);
            protocolMarshaller.marshall(createDirectoryRequest.getTags(), TAGS_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( CreateDirectoryRequest createDirectoryRequest , ProtocolMarshaller protocolMarshaller ) { if ( createDirectoryRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createDirectoryRequest . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( createDirectoryRequest . getShortName ( ) , SHORTNAME_BINDING ) ; protocolMarshaller . marshall ( createDirectoryRequest . getPassword ( ) , PASSWORD_BINDING ) ; protocolMarshaller . marshall ( createDirectoryRequest . getDescription ( ) , DESCRIPTION_BINDING ) ; protocolMarshaller . marshall ( createDirectoryRequest . getSize ( ) , SIZE_BINDING ) ; protocolMarshaller . marshall ( createDirectoryRequest . getVpcSettings ( ) , VPCSETTINGS_BINDING ) ; protocolMarshaller . marshall ( createDirectoryRequest . getTags ( ) , TAGS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.