Package com.exoscale.sdk.model
Class BlockStorageSnapshot
java.lang.Object
com.exoscale.sdk.model.BlockStorageSnapshot
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class BlockStorageSnapshot
extends Object
Block storage snapshot
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockStorageSnapshot
(UUID id, OffsetDateTime createdAt, BlockStorageSnapshot.StateEnum state) -
Method Summary
Modifier and TypeMethodDescriptionblockStorageVolume
(BlockStorageVolumeTarget blockStorageVolume) boolean
Return true if this block-storage-snapshot object is equal to o.Get blockStorageVolumeSnapshot creation dategetId()
Snapshot IDGet labelsgetName()
Snapshot namegetSize()
Snapshot size minimum: 1getState()
Snapshot stateOriginal Volume size minimum: 0int
hashCode()
putLabelsItem
(String key, String labelsItem) void
setBlockStorageVolume
(BlockStorageVolumeTarget blockStorageVolume) void
void
void
void
setVolumeSize
(Long volumeSize) toString()
Convert the instance into URL query string.toUrlQueryString
(String prefix) Convert the instance into URL query string.volumeSize
(Long volumeSize)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SIZE
- See Also:
-
JSON_PROPERTY_VOLUME_SIZE
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_STATE
- See Also:
-
JSON_PROPERTY_LABELS
- See Also:
-
JSON_PROPERTY_BLOCK_STORAGE_VOLUME
- See Also:
-
-
Constructor Details
-
BlockStorageSnapshot
public BlockStorageSnapshot() -
BlockStorageSnapshot
public BlockStorageSnapshot(UUID id, OffsetDateTime createdAt, BlockStorageSnapshot.StateEnum state)
-
-
Method Details
-
getId
Snapshot ID- Returns:
- id
-
name
-
getName
Snapshot name- Returns:
- name
-
setName
-
size
-
getSize
Snapshot size minimum: 1- Returns:
- size
-
setSize
-
volumeSize
-
getVolumeSize
Original Volume size minimum: 0- Returns:
- volumeSize
-
setVolumeSize
-
getCreatedAt
Snapshot creation date- Returns:
- createdAt
-
getState
Snapshot state- Returns:
- state
-
labels
-
putLabelsItem
-
getLabels
Get labels- Returns:
- labels
-
setLabels
-
blockStorageVolume
-
getBlockStorageVolume
Get blockStorageVolume- Returns:
- blockStorageVolume
-
setBlockStorageVolume
-
equals
Return true if this block-storage-snapshot object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-