code: public void marshall(UpdateRecordsRequest updateRecordsRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (updateRecordsRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(updateRecordsRequest.getIdentityPoolId(), IDENTITYPOOLID_BINDING);
              protocolMarshaller.marshall(updateRecordsRequest.getIdentityId(), IDENTITYID_BINDING);
              protocolMarshaller.marshall(updateRecordsRequest.getDatasetName(), DATASETNAME_BINDING);
              protocolMarshaller.marshall(updateRecordsRequest.getDeviceId(), DEVICEID_BINDING);
              protocolMarshaller.marshall(updateRecordsRequest.getRecordPatches(), RECORDPATCHES_BINDING);
              protocolMarshaller.marshall(updateRecordsRequest.getSyncSessionToken(), SYNCSESSIONTOKEN_BINDING);
              protocolMarshaller.marshall(updateRecordsRequest.getClientContext(), CLIENTCONTEXT_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.