Package io.lakefs.clients.sdk.model
Class ObjectStats
- java.lang.Object
-
- io.lakefs.clients.sdk.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_PHYSICAL_ADDRESS_EXPIRYstatic 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 stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetChecksum()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.LonggetPhysicalAddressExpiry()If present and nonzero, physical_address is a pre-signed URL and will expire at this Unix Epoch time.LonggetSizeBytes()Get sizeBytesinthashCode()ObjectStatsmetadata(Map<String,String> metadata)ObjectStatsmtime(Long mtime)ObjectStatspath(String path)ObjectStatspathType(ObjectStats.PathTypeEnum pathType)ObjectStatsphysicalAddress(String physicalAddress)ObjectStatsphysicalAddressExpiry(Long physicalAddressExpiry)ObjectStatsputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.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)voidsetPhysicalAddressExpiry(Long physicalAddressExpiry)voidsetSizeBytes(Long sizeBytes)ObjectStatssizeBytes(Long sizeBytes)StringtoJson()Convert an instance of ObjectStats to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element 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_PHYSICAL_ADDRESS_EXPIRY
public static final String SERIALIZED_NAME_PHYSICAL_ADDRESS_EXPIRY
- 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)
-
physicalAddressExpiry
public ObjectStats physicalAddressExpiry(Long physicalAddressExpiry)
-
getPhysicalAddressExpiry
@Nullable public Long getPhysicalAddressExpiry()
If present and nonzero, physical_address is a pre-signed URL and will expire at this Unix Epoch time. This will be shorter than the pre-signed URL lifetime if an authentication token is about to expire. This field is *optional*.- Returns:
- physicalAddressExpiry
-
setPhysicalAddressExpiry
public void setPhysicalAddressExpiry(Long physicalAddressExpiry)
-
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)
-
putAdditionalProperty
public ObjectStats putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the ObjectStats instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element 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
-
-