Class SnapshotResponseItem.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.snapshot.get.SnapshotResponseItem.Builder
- All Implemented Interfaces:
ObjectBuilder<SnapshotResponseItem>
- Enclosing class:
- SnapshotResponseItem
public static class SnapshotResponseItem.Builder extends ObjectBuilderBase implements ObjectBuilder<SnapshotResponseItem>
Builder for
SnapshotResponseItem.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SnapshotResponseItembuild()Builds aSnapshotResponseItem.SnapshotResponseItem.Buildererror(ErrorCause value)API name:errorSnapshotResponseItem.Buildererror(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:errorSnapshotResponseItem.Builderrepository(java.lang.String value)Required - API name:repositorySnapshotResponseItem.Buildersnapshots(SnapshotInfo value, SnapshotInfo... values)API name:snapshotsSnapshotResponseItem.Buildersnapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)API name:snapshotsSnapshotResponseItem.Buildersnapshots(java.util.List<SnapshotInfo> list)API name:snapshotsMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repository
Required - API name:repository -
snapshots
API name:snapshotsAdds all elements of
listtosnapshots. -
snapshots
API name:snapshotsAdds one or more values to
snapshots. -
snapshots
public final SnapshotResponseItem.Builder snapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)API name:snapshotsAdds a value to
snapshotsusing a builder lambda. -
error
API name:error -
error
public final SnapshotResponseItem.Builder error(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:error -
build
Builds aSnapshotResponseItem.- Specified by:
buildin interfaceObjectBuilder<SnapshotResponseItem>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-