Class ReadException.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ccr.ReadException.Builder
- All Implemented Interfaces:
ObjectBuilder<ReadException>
- Enclosing class:
- ReadException
public static class ReadException.Builder extends ObjectBuilderBase implements ObjectBuilder<ReadException>
Builder for
ReadException
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ReadException
build()
Builds aReadException
.ReadException.Builder
exception(ErrorCause value)
Required - API name:exception
ReadException.Builder
exception(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
Required - API name:exception
ReadException.Builder
fromSeqNo(long value)
Required - API name:from_seq_no
ReadException.Builder
retries(int value)
Required - API name:retries
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exception
Required - API name:exception
-
exception
public final ReadException.Builder exception(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Required - API name:exception
-
fromSeqNo
Required - API name:from_seq_no
-
retries
Required - API name:retries
-
build
Builds aReadException
.- Specified by:
build
in interfaceObjectBuilder<ReadException>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-