public void marshall(Disk disk, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(disk.getName(), NAME_BINDING);
            protocolMarshaller.marshall(disk.getArn(), ARN_BINDING);
            protocolMarshaller.marshall(disk.getSupportCode(), SUPPORTCODE_BINDING);
            protocolMarshaller.marshall(disk.getCreatedAt(), CREATEDAT_BINDING);
            protocolMarshaller.marshall(disk.getLocation(), LOCATION_BINDING);
            protocolMarshaller.marshall(disk.getResourceType(), RESOURCETYPE_BINDING);
            protocolMarshaller.marshall(disk.getTags(), TAGS_BINDING);
            protocolMarshaller.marshall(disk.getSizeInGb(), SIZEINGB_BINDING);
            protocolMarshaller.marshall(disk.getIsSystemDisk(), ISSYSTEMDISK_BINDING);
            protocolMarshaller.marshall(disk.getIops(), IOPS_BINDING);
            protocolMarshaller.marshall(disk.getPath(), PATH_BINDING);
            protocolMarshaller.marshall(disk.getState(), STATE_BINDING);
            protocolMarshaller.marshall(disk.getAttachedTo(), ATTACHEDTO_BINDING);
            protocolMarshaller.marshall(disk.getIsAttached(), ISATTACHED_BINDING);
            protocolMarshaller.marshall(disk.getAttachmentState(), ATTACHMENTSTATE_BINDING);
            protocolMarshaller.marshall(disk.getGbInUse(), GBINUSE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Disk disk , ProtocolMarshaller protocolMarshaller ) { if ( disk == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( disk . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( disk . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( disk . getSupportCode ( ) , SUPPORTCODE_BINDING ) ; protocolMarshaller . marshall ( disk . getCreatedAt ( ) , CREATEDAT_BINDING ) ; protocolMarshaller . marshall ( disk . getLocation ( ) , LOCATION_BINDING ) ; protocolMarshaller . marshall ( disk . getResourceType ( ) , RESOURCETYPE_BINDING ) ; protocolMarshaller . marshall ( disk . getTags ( ) , TAGS_BINDING ) ; protocolMarshaller . marshall ( disk . getSizeInGb ( ) , SIZEINGB_BINDING ) ; protocolMarshaller . marshall ( disk . getIsSystemDisk ( ) , ISSYSTEMDISK_BINDING ) ; protocolMarshaller . marshall ( disk . getIops ( ) , IOPS_BINDING ) ; protocolMarshaller . marshall ( disk . getPath ( ) , PATH_BINDING ) ; protocolMarshaller . marshall ( disk . getState ( ) , STATE_BINDING ) ; protocolMarshaller . marshall ( disk . getAttachedTo ( ) , ATTACHEDTO_BINDING ) ; protocolMarshaller . marshall ( disk . getIsAttached ( ) , ISATTACHED_BINDING ) ; protocolMarshaller . marshall ( disk . getAttachmentState ( ) , ATTACHMENTSTATE_BINDING ) ; protocolMarshaller . marshall ( disk . getGbInUse ( ) , GBINUSE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.