Class FileDetails
java.lang.Object
org.opensearch.client.opensearch.indices.recovery.FileDetails
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<FileDetails.Builder,FileDetails>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class FileDetails
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<FileDetails.Builder,FileDetails>
The details of a recovered file.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FileDetails> Json deserializer forFileDetails -
Method Summary
Modifier and TypeMethodDescriptionstatic FileDetails.Builderbuilder()booleaninthashCode()final longlength()Required - The length of the file in bytes.final Stringname()Required - The name of the file.static FileDetailsfinal longRequired - The number of bytes recovered.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forFileDetails
-
-
Method Details
-
of
-
length
public final long length()Required - The length of the file in bytes.API name:
length -
name
Required - The name of the file.API name:
name -
recovered
public final long recovered()Required - The number of bytes recovered.API name:
recovered -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FileDetails.Builder,FileDetails> - Returns:
- a new builder instance.
-
builder
-
setupFileDetailsDeserializer
-
hashCode
public int hashCode() -
equals
-