All Products
Search
Document Center

OpenSearch:PushDocumentsRequestModel class

Last Updated:Feb 22, 2023

Overview

This topic describes the PushDocumentsRequestModel class and its methods. The PushDocumentsRequestModel class is the data type of the request parameter when you call the Client.pushDocuments() method. For more information, see Client class.

Class security

Thread-safe

Define a constructor

PushDocumentsRequestModel()

Specify the headers parameter

Syntax

PushDocumentsRequestModel setHeaders(java.util.Map<String, String> headers)

Description

Parameter

Type

Description

headers

Map

The information about request headers.

Obtain the value of the headers parameter

Syntax

java.util.Map<String, String> getHeaders()

Returned result

  • java.util.Map<String, String> headers parameter value

Specify the body parameter

Syntax

PushDocumentsRequestModel setBody(java.util.List<java.util.Map<String, ?>> body)

Description

Parameter

Type

Description

body

java.util.List<java.util.Map<String, ?>>

The information about the request body.

Obtain the value of the body parameter

Syntax

java.util.List<java.util.Map<String, ?>> getBody()

Returned result

  • java.util.List<java.util.Map<String, ?>> body parameter value