code: public void marshall(Instance instance, ProtocolMarshaller protocolMarshaller) {
  
          if (instance == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(instance.getId(), ID_BINDING);
              protocolMarshaller.marshall(instance.getEc2InstanceId(), EC2INSTANCEID_BINDING);
              protocolMarshaller.marshall(instance.getPublicDnsName(), PUBLICDNSNAME_BINDING);
              protocolMarshaller.marshall(instance.getPublicIpAddress(), PUBLICIPADDRESS_BINDING);
              protocolMarshaller.marshall(instance.getPrivateDnsName(), PRIVATEDNSNAME_BINDING);
              protocolMarshaller.marshall(instance.getPrivateIpAddress(), PRIVATEIPADDRESS_BINDING);
              protocolMarshaller.marshall(instance.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(instance.getInstanceGroupId(), INSTANCEGROUPID_BINDING);
              protocolMarshaller.marshall(instance.getInstanceFleetId(), INSTANCEFLEETID_BINDING);
              protocolMarshaller.marshall(instance.getMarket(), MARKET_BINDING);
              protocolMarshaller.marshall(instance.getInstanceType(), INSTANCETYPE_BINDING);
              protocolMarshaller.marshall(instance.getEbsVolumes(), EBSVOLUMES_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.