Package io.lakefs.clients.sdk.model
Class RangeMetadata
- java.lang.Object
-
- io.lakefs.clients.sdk.model.RangeMetadata
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RangeMetadata extends Object
RangeMetadata
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRangeMetadata.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COUNTstatic StringSERIALIZED_NAME_ESTIMATED_SIZEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_MAX_KEYstatic StringSERIALIZED_NAME_MIN_KEY
-
Constructor Summary
Constructors Constructor Description RangeMetadata()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RangeMetadatacount(Integer count)booleanequals(Object o)RangeMetadataestimatedSize(Integer estimatedSize)static RangeMetadatafromJson(String jsonString)Create an instance of RangeMetadata given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.IntegergetCount()Number of records in the range.IntegergetEstimatedSize()Estimated size of the range in bytesStringgetId()ID of the range.StringgetMaxKey()Last key in the range.StringgetMinKey()First key in the range.inthashCode()RangeMetadataid(String id)RangeMetadatamaxKey(String maxKey)RangeMetadataminKey(String minKey)RangeMetadataputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetCount(Integer count)voidsetEstimatedSize(Integer estimatedSize)voidsetId(String id)voidsetMaxKey(String maxKey)voidsetMinKey(String minKey)StringtoJson()Convert an instance of RangeMetadata 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_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MIN_KEY
public static final String SERIALIZED_NAME_MIN_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAX_KEY
public static final String SERIALIZED_NAME_MAX_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNT
public static final String SERIALIZED_NAME_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ESTIMATED_SIZE
public static final String SERIALIZED_NAME_ESTIMATED_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public RangeMetadata id(String id)
-
setId
public void setId(String id)
-
minKey
public RangeMetadata minKey(String minKey)
-
setMinKey
public void setMinKey(String minKey)
-
maxKey
public RangeMetadata maxKey(String maxKey)
-
setMaxKey
public void setMaxKey(String maxKey)
-
count
public RangeMetadata count(Integer count)
-
setCount
public void setCount(Integer count)
-
estimatedSize
public RangeMetadata estimatedSize(Integer estimatedSize)
-
getEstimatedSize
@Nonnull public Integer getEstimatedSize()
Estimated size of the range in bytes- Returns:
- estimatedSize
-
setEstimatedSize
public void setEstimatedSize(Integer estimatedSize)
-
putAdditionalProperty
public RangeMetadata 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 RangeMetadata 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 RangeMetadata
-
fromJson
public static RangeMetadata fromJson(String jsonString) throws IOException
Create an instance of RangeMetadata given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RangeMetadata
- Throws:
IOException- if the JSON string is invalid with respect to RangeMetadata
-
toJson
public String toJson()
Convert an instance of RangeMetadata to an JSON string- Returns:
- JSON string
-
-