code: public void marshall(BlockDeviceMapping blockDeviceMapping, ProtocolMarshaller protocolMarshaller) {
  
          if (blockDeviceMapping == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(blockDeviceMapping.getDeviceName(), DEVICENAME_BINDING);
              protocolMarshaller.marshall(blockDeviceMapping.getNoDevice(), NODEVICE_BINDING);
              protocolMarshaller.marshall(blockDeviceMapping.getVirtualName(), VIRTUALNAME_BINDING);
              protocolMarshaller.marshall(blockDeviceMapping.getEbs(), EBS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.