code: public void marshall(InstanceSnapshot instanceSnapshot, ProtocolMarshaller protocolMarshaller) {
  
          if (instanceSnapshot == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(instanceSnapshot.getName(), NAME_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getArn(), ARN_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getSupportCode(), SUPPORTCODE_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getCreatedAt(), CREATEDAT_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getLocation(), LOCATION_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getResourceType(), RESOURCETYPE_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getTags(), TAGS_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getState(), STATE_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getProgress(), PROGRESS_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getFromAttachedDisks(), FROMATTACHEDDISKS_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getFromInstanceName(), FROMINSTANCENAME_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getFromInstanceArn(), FROMINSTANCEARN_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getFromBlueprintId(), FROMBLUEPRINTID_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getFromBundleId(), FROMBUNDLEID_BINDING);
              protocolMarshaller.marshall(instanceSnapshot.getSizeInGb(), SIZEINGB_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.