code: public void marshall(Volume volume, ProtocolMarshaller protocolMarshaller) {
  
          if (volume == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(volume.getVolumeId(), VOLUMEID_BINDING);
              protocolMarshaller.marshall(volume.getEc2VolumeId(), EC2VOLUMEID_BINDING);
              protocolMarshaller.marshall(volume.getName(), NAME_BINDING);
              protocolMarshaller.marshall(volume.getRaidArrayId(), RAIDARRAYID_BINDING);
              protocolMarshaller.marshall(volume.getInstanceId(), INSTANCEID_BINDING);
              protocolMarshaller.marshall(volume.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(volume.getSize(), SIZE_BINDING);
              protocolMarshaller.marshall(volume.getDevice(), DEVICE_BINDING);
              protocolMarshaller.marshall(volume.getMountPoint(), MOUNTPOINT_BINDING);
              protocolMarshaller.marshall(volume.getRegion(), REGION_BINDING);
              protocolMarshaller.marshall(volume.getAvailabilityZone(), AVAILABILITYZONE_BINDING);
              protocolMarshaller.marshall(volume.getVolumeType(), VOLUMETYPE_BINDING);
              protocolMarshaller.marshall(volume.getIops(), IOPS_BINDING);
              protocolMarshaller.marshall(volume.getEncrypted(), ENCRYPTED_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.