Class MultiGetError.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.mget.MultiGetError.Builder
-
- All Implemented Interfaces:
ObjectBuilder<MultiGetError>
- Enclosing class:
- MultiGetError
public static class MultiGetError.Builder extends ObjectBuilderBase implements ObjectBuilder<MultiGetError>
Builder forMultiGetError
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiGetError
build()
Builds aMultiGetError
.MultiGetError.Builder
error(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
Required - API name:error
MultiGetError.Builder
error(ErrorCause value)
Required - API name:error
MultiGetError.Builder
id(java.lang.String value)
Required - API name:_id
MultiGetError.Builder
index(java.lang.String value)
Required - API name:_index
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
error
public final MultiGetError.Builder error(ErrorCause value)
Required - API name:error
-
error
public final MultiGetError.Builder error(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
Required - API name:error
-
id
public final MultiGetError.Builder id(java.lang.String value)
Required - API name:_id
-
index
public final MultiGetError.Builder index(java.lang.String value)
Required - API name:_index
-
build
public MultiGetError build()
Builds aMultiGetError
.- Specified by:
build
in interfaceObjectBuilder<MultiGetError>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-