public void marshall(Workspace workspace, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(workspace.getWorkspaceId(), WORKSPACEID_BINDING);
            protocolMarshaller.marshall(workspace.getDirectoryId(), DIRECTORYID_BINDING);
            protocolMarshaller.marshall(workspace.getUserName(), USERNAME_BINDING);
            protocolMarshaller.marshall(workspace.getIpAddress(), IPADDRESS_BINDING);
            protocolMarshaller.marshall(workspace.getState(), STATE_BINDING);
            protocolMarshaller.marshall(workspace.getBundleId(), BUNDLEID_BINDING);
            protocolMarshaller.marshall(workspace.getSubnetId(), SUBNETID_BINDING);
            protocolMarshaller.marshall(workspace.getErrorMessage(), ERRORMESSAGE_BINDING);
            protocolMarshaller.marshall(workspace.getErrorCode(), ERRORCODE_BINDING);
            protocolMarshaller.marshall(workspace.getComputerName(), COMPUTERNAME_BINDING);
            protocolMarshaller.marshall(workspace.getVolumeEncryptionKey(), VOLUMEENCRYPTIONKEY_BINDING);
            protocolMarshaller.marshall(workspace.getUserVolumeEncryptionEnabled(), USERVOLUMEENCRYPTIONENABLED_BINDING);
            protocolMarshaller.marshall(workspace.getRootVolumeEncryptionEnabled(), ROOTVOLUMEENCRYPTIONENABLED_BINDING);
            protocolMarshaller.marshall(workspace.getWorkspaceProperties(), WORKSPACEPROPERTIES_BINDING);
            protocolMarshaller.marshall(workspace.getModificationStates(), MODIFICATIONSTATES_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Workspace workspace , ProtocolMarshaller protocolMarshaller ) { if ( workspace == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( workspace . getWorkspaceId ( ) , WORKSPACEID_BINDING ) ; protocolMarshaller . marshall ( workspace . getDirectoryId ( ) , DIRECTORYID_BINDING ) ; protocolMarshaller . marshall ( workspace . getUserName ( ) , USERNAME_BINDING ) ; protocolMarshaller . marshall ( workspace . getIpAddress ( ) , IPADDRESS_BINDING ) ; protocolMarshaller . marshall ( workspace . getState ( ) , STATE_BINDING ) ; protocolMarshaller . marshall ( workspace . getBundleId ( ) , BUNDLEID_BINDING ) ; protocolMarshaller . marshall ( workspace . getSubnetId ( ) , SUBNETID_BINDING ) ; protocolMarshaller . marshall ( workspace . getErrorMessage ( ) , ERRORMESSAGE_BINDING ) ; protocolMarshaller . marshall ( workspace . getErrorCode ( ) , ERRORCODE_BINDING ) ; protocolMarshaller . marshall ( workspace . getComputerName ( ) , COMPUTERNAME_BINDING ) ; protocolMarshaller . marshall ( workspace . getVolumeEncryptionKey ( ) , VOLUMEENCRYPTIONKEY_BINDING ) ; protocolMarshaller . marshall ( workspace . getUserVolumeEncryptionEnabled ( ) , USERVOLUMEENCRYPTIONENABLED_BINDING ) ; protocolMarshaller . marshall ( workspace . getRootVolumeEncryptionEnabled ( ) , ROOTVOLUMEENCRYPTIONENABLED_BINDING ) ; protocolMarshaller . marshall ( workspace . getWorkspaceProperties ( ) , WORKSPACEPROPERTIES_BINDING ) ; protocolMarshaller . marshall ( workspace . getModificationStates ( ) , MODIFICATIONSTATES_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.