All Products
Search
Document Center

OpenSearch:PushDocumentsResponseModel class

Last Updated:Mar 31, 2026

PushDocumentsResponseModel is the response object returned by Client.pushDocuments(). It exposes getter and setter methods for the response headers and body.

Thread safety: Thread-safe.

Constructor

PushDocumentsResponseModel()

Methods

setHeaders

Syntax

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

Parameters

ParameterTypeDescription
headersMap<String, String>The information about the PushDocumentsResponseModel header.

getHeaders

Syntax

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

Return value

A java.util.Map<String, String> containing the Headers parameter value.

setBody

Syntax

PushDocumentsResponseModel setBody(String body)

Parameters

ParameterTypeDescription
bodyStringThe response body returned by the push operation.

getBody

Syntax

String getBody()

Return value

A String containing the Body parameter value.