Package io.lakefs.clients.api.model
Class ObjectStats
- java.lang.Object
-
- io.lakefs.clients.api.model.ObjectStats
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ObjectStats extends Object
ObjectStats
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectStats.CustomTypeAdapterFactorystatic classObjectStats.PathTypeEnumGets or Sets pathType
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECKSUMstatic StringSERIALIZED_NAME_CONTENT_TYPEstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_MTIMEstatic StringSERIALIZED_NAME_PATHstatic StringSERIALIZED_NAME_PATH_TYPEstatic StringSERIALIZED_NAME_PHYSICAL_ADDRESSstatic StringSERIALIZED_NAME_SIZE_BYTES
-
Constructor Summary
Constructors Constructor Description ObjectStats()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectStatschecksum(String checksum)ObjectStatscontentType(String contentType)booleanequals(Object o)static ObjectStatsfromJson(String jsonString)Create an instance of ObjectStats given an JSON stringStringgetChecksum()Get checksumStringgetContentType()Object media typeMap<String,String>getMetadata()Get metadataLonggetMtime()Unix Epoch in secondsStringgetPath()Get pathObjectStats.PathTypeEnumgetPathType()Get pathTypeStringgetPhysicalAddress()The location of the object on the underlying object store.LonggetSizeBytes()Get sizeBytesinthashCode()ObjectStatsmetadata(Map<String,String> metadata)ObjectStatsmtime(Long mtime)ObjectStatspath(String path)ObjectStatspathType(ObjectStats.PathTypeEnum pathType)ObjectStatsphysicalAddress(String physicalAddress)ObjectStatsputMetadataItem(String key, String metadataItem)voidsetChecksum(String checksum)voidsetContentType(String contentType)voidsetMetadata(Map<String,String> metadata)voidsetMtime(Long mtime)voidsetPath(String path)voidsetPathType(ObjectStats.PathTypeEnum pathType)voidsetPhysicalAddress(String physicalAddress)voidsetSizeBytes(Long sizeBytes)ObjectStatssizeBytes(Long sizeBytes)StringtoJson()Convert an instance of ObjectStats to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PATH
public static final String SERIALIZED_NAME_PATH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PATH_TYPE
public static final String SERIALIZED_NAME_PATH_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PHYSICAL_ADDRESS
public static final String SERIALIZED_NAME_PHYSICAL_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHECKSUM
public static final String SERIALIZED_NAME_CHECKSUM
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIZE_BYTES
public static final String SERIALIZED_NAME_SIZE_BYTES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MTIME
public static final String SERIALIZED_NAME_MTIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTENT_TYPE
public static final String SERIALIZED_NAME_CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
path
public ObjectStats path(String path)
-
setPath
public void setPath(String path)
-
pathType
public ObjectStats pathType(ObjectStats.PathTypeEnum pathType)
-
getPathType
@Nonnull public ObjectStats.PathTypeEnum getPathType()
Get pathType- Returns:
- pathType
-
setPathType
public void setPathType(ObjectStats.PathTypeEnum pathType)
-
physicalAddress
public ObjectStats physicalAddress(String physicalAddress)
-
getPhysicalAddress
@Nonnull public String getPhysicalAddress()
The location of the object on the underlying object store. Formatted as a native URI with the object store type as scheme (\"s3://...\", \"gs://...\", etc.) Or, in the case of presign=true, will be an HTTP URL to be consumed via regular HTTP GET- Returns:
- physicalAddress
-
setPhysicalAddress
public void setPhysicalAddress(String physicalAddress)
-
checksum
public ObjectStats checksum(String checksum)
-
setChecksum
public void setChecksum(String checksum)
-
sizeBytes
public ObjectStats sizeBytes(Long sizeBytes)
-
setSizeBytes
public void setSizeBytes(Long sizeBytes)
-
mtime
public ObjectStats mtime(Long mtime)
-
setMtime
public void setMtime(Long mtime)
-
metadata
public ObjectStats metadata(Map<String,String> metadata)
-
putMetadataItem
public ObjectStats putMetadataItem(String key, String metadataItem)
-
contentType
public ObjectStats contentType(String contentType)
-
setContentType
public void setContentType(String contentType)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ObjectStats
-
fromJson
public static ObjectStats fromJson(String jsonString) throws IOException
Create an instance of ObjectStats given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ObjectStats
- Throws:
IOException- if the JSON string is invalid with respect to ObjectStats
-
toJson
public String toJson()
Convert an instance of ObjectStats to an JSON string- Returns:
- JSON string
-
-