Class SnapshotResponseItem.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SnapshotResponseItem.Builder>
co.elastic.clients.elasticsearch.snapshot.get.SnapshotResponseItem.Builder
- All Implemented Interfaces:
WithJson<SnapshotResponseItem.Builder>,ObjectBuilder<SnapshotResponseItem>
- Enclosing class:
- SnapshotResponseItem
public static class SnapshotResponseItem.Builder
extends WithJsonObjectBuilderBase<SnapshotResponseItem.Builder>
implements ObjectBuilder<SnapshotResponseItem>
Builder for
SnapshotResponseItem.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotResponseItem.error(ErrorCause value) API name:errorAPI name:errorrepository(String value) Required - API name:repositoryprotected SnapshotResponseItem.Builderself()snapshots(SnapshotInfo value, SnapshotInfo... values) API name:snapshotsAPI name:snapshotssnapshots(List<SnapshotInfo> list) API name:snapshotsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
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(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(Function<ErrorCause.Builder, ObjectBuilder<ErrorCause>> fn) API name:error -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SnapshotResponseItem.Builder>
-
build
Builds aSnapshotResponseItem.- Specified by:
buildin interfaceObjectBuilder<SnapshotResponseItem>- Throws:
NullPointerException- if some of the required fields are null.
-