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 Modifier and Type Class Description static class
BlockStorageSnapshot.StateEnum
Snapshot state
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_BLOCK_STORAGE_VOLUME
static String
JSON_PROPERTY_CREATED_AT
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_LABELS
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_SIZE
static String
JSON_PROPERTY_STATE
static String
JSON_PROPERTY_VOLUME_SIZE
-
Constructor Summary
Constructors Constructor Description BlockStorageSnapshot()
BlockStorageSnapshot(UUID id, OffsetDateTime createdAt, BlockStorageSnapshot.StateEnum state)
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIZE
public static final String JSON_PROPERTY_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VOLUME_SIZE
public static final String JSON_PROPERTY_VOLUME_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE
public static final String JSON_PROPERTY_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LABELS
public static final String JSON_PROPERTY_LABELS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BLOCK_STORAGE_VOLUME
public static final String JSON_PROPERTY_BLOCK_STORAGE_VOLUME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlockStorageSnapshot
public BlockStorageSnapshot()
-
BlockStorageSnapshot
public BlockStorageSnapshot(UUID id, OffsetDateTime createdAt, BlockStorageSnapshot.StateEnum state)
-
-
Method Detail
-
getId
@Nullable public UUID getId()
Snapshot ID- Returns:
- id
-
name
public BlockStorageSnapshot name(String name)
-
getName
@Nullable public String getName()
Snapshot name- Returns:
- name
-
setName
public void setName(String name)
-
size
public BlockStorageSnapshot size(Long size)
-
getSize
@Nullable public Long getSize()
Snapshot size minimum: 10- Returns:
- size
-
setSize
public void setSize(Long size)
-
volumeSize
public BlockStorageSnapshot volumeSize(Long volumeSize)
-
getVolumeSize
@Nullable public Long getVolumeSize()
Original Volume size minimum: 0- Returns:
- volumeSize
-
setVolumeSize
public void setVolumeSize(Long volumeSize)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Snapshot creation date- Returns:
- createdAt
-
getState
@Nullable public BlockStorageSnapshot.StateEnum getState()
Snapshot state- Returns:
- state
-
labels
public BlockStorageSnapshot labels(Map<String,String> labels)
-
putLabelsItem
public BlockStorageSnapshot putLabelsItem(String key, String labelsItem)
-
blockStorageVolume
public BlockStorageSnapshot blockStorageVolume(BlockStorageVolumeTarget blockStorageVolume)
-
getBlockStorageVolume
@Nullable public BlockStorageVolumeTarget getBlockStorageVolume()
Get blockStorageVolume- Returns:
- blockStorageVolume
-
setBlockStorageVolume
public void setBlockStorageVolume(BlockStorageVolumeTarget blockStorageVolume)
-
equals
public boolean equals(Object o)
Return true if this block-storage-snapshot object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-