Package io.lakefs.clients.sdk.model
Class StagingMetadata
- java.lang.Object
-
- io.lakefs.clients.sdk.model.StagingMetadata
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class StagingMetadata extends Object
information about uploaded object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStagingMetadata.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHECKSUMstatic StringSERIALIZED_NAME_CONTENT_TYPEstatic StringSERIALIZED_NAME_SIZE_BYTESstatic StringSERIALIZED_NAME_STAGINGstatic StringSERIALIZED_NAME_USER_METADATA
-
Constructor Summary
Constructors Constructor Description StagingMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StagingMetadatachecksum(String checksum)StagingMetadatacontentType(String contentType)booleanequals(Object o)static StagingMetadatafromJson(String jsonString)Create an instance of StagingMetadata 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()unique identifier of object content on backing store (typically ETag)StringgetContentType()Object media typeLonggetSizeBytes()Get sizeBytesStagingLocationgetStaging()Get stagingMap<String,String>getUserMetadata()Get userMetadatainthashCode()StagingMetadataputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.StagingMetadataputUserMetadataItem(String key, String userMetadataItem)voidsetChecksum(String checksum)voidsetContentType(String contentType)voidsetSizeBytes(Long sizeBytes)voidsetStaging(StagingLocation staging)voidsetUserMetadata(Map<String,String> userMetadata)StagingMetadatasizeBytes(Long sizeBytes)StagingMetadatastaging(StagingLocation staging)StringtoJson()Convert an instance of StagingMetadata to an JSON stringStringtoString()StagingMetadatauserMetadata(Map<String,String> userMetadata)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_STAGING
public static final String SERIALIZED_NAME_STAGING
- 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_USER_METADATA
public static final String SERIALIZED_NAME_USER_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
-
staging
public StagingMetadata staging(StagingLocation staging)
-
getStaging
@Nonnull public StagingLocation getStaging()
Get staging- Returns:
- staging
-
setStaging
public void setStaging(StagingLocation staging)
-
checksum
public StagingMetadata checksum(String checksum)
-
getChecksum
@Nonnull public String getChecksum()
unique identifier of object content on backing store (typically ETag)- Returns:
- checksum
-
setChecksum
public void setChecksum(String checksum)
-
sizeBytes
public StagingMetadata sizeBytes(Long sizeBytes)
-
setSizeBytes
public void setSizeBytes(Long sizeBytes)
-
userMetadata
public StagingMetadata userMetadata(Map<String,String> userMetadata)
-
putUserMetadataItem
public StagingMetadata putUserMetadataItem(String key, String userMetadataItem)
-
getUserMetadata
@Nullable public Map<String,String> getUserMetadata()
Get userMetadata- Returns:
- userMetadata
-
contentType
public StagingMetadata contentType(String contentType)
-
setContentType
public void setContentType(String contentType)
-
putAdditionalProperty
public StagingMetadata 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 StagingMetadata 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 StagingMetadata
-
fromJson
public static StagingMetadata fromJson(String jsonString) throws IOException
Create an instance of StagingMetadata given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StagingMetadata
- Throws:
IOException- if the JSON string is invalid with respect to StagingMetadata
-
toJson
public String toJson()
Convert an instance of StagingMetadata to an JSON string- Returns:
- JSON string
-
-