Class SnapshotResponseItem.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.snapshot.get.SnapshotResponseItem.Builder
-
- All Implemented Interfaces:
ObjectBuilder<SnapshotResponseItem>
- Enclosing class:
- SnapshotResponseItem
public static class SnapshotResponseItem.Builder extends ObjectBuilderBase implements ObjectBuilder<SnapshotResponseItem>
Builder forSnapshotResponseItem.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotResponseItembuild()Builds aSnapshotResponseItem.SnapshotResponseItem.Buildererror(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)API name:errorSnapshotResponseItem.Buildererror(ErrorCause value)API name:errorSnapshotResponseItem.Builderrepository(java.lang.String value)Required - API name:repositorySnapshotResponseItem.Buildersnapshots(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)API name:snapshotsSnapshotResponseItem.Buildersnapshots(java.util.List<SnapshotInfo> list)API name:snapshotsSnapshotResponseItem.Buildersnapshots(SnapshotInfo value, SnapshotInfo... values)API name:snapshots-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
repository
public final SnapshotResponseItem.Builder repository(java.lang.String value)
Required - API name:repository
-
snapshots
public final SnapshotResponseItem.Builder snapshots(java.util.List<SnapshotInfo> list)
API name:snapshotsAdds all elements of
listtosnapshots.
-
snapshots
public final SnapshotResponseItem.Builder snapshots(SnapshotInfo value, SnapshotInfo... values)
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
public final SnapshotResponseItem.Builder error(@Nullable ErrorCause value)
API name:error
-
error
public final SnapshotResponseItem.Builder error(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
API name:error
-
build
public SnapshotResponseItem build()
Builds aSnapshotResponseItem.- Specified by:
buildin interfaceObjectBuilder<SnapshotResponseItem>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-