Package com.exoscale.sdk.model
Class BlockStorageVolume
- java.lang.Object
-
- com.exoscale.sdk.model.BlockStorageVolume
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class BlockStorageVolume extends Object
Block storage volume
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockStorageVolume.StateEnum
Volume state
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_BLOCK_STORAGE_SNAPSHOTS
static String
JSON_PROPERTY_BLOCKSIZE
static String
JSON_PROPERTY_CREATED_AT
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_INSTANCE
static String
JSON_PROPERTY_LABELS
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_SIZE
static String
JSON_PROPERTY_STATE
-
Constructor Summary
Constructors Constructor Description BlockStorageVolume()
BlockStorageVolume(BlockStorageVolume.StateEnum state, Long blocksize, UUID id, OffsetDateTime createdAt)
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_LABELS
public static final String JSON_PROPERTY_LABELS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTANCE
public static final String JSON_PROPERTY_INSTANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE
public static final String JSON_PROPERTY_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIZE
public static final String JSON_PROPERTY_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BLOCKSIZE
public static final String JSON_PROPERTY_BLOCKSIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BLOCK_STORAGE_SNAPSHOTS
public static final String JSON_PROPERTY_BLOCK_STORAGE_SNAPSHOTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlockStorageVolume
public BlockStorageVolume()
-
BlockStorageVolume
public BlockStorageVolume(BlockStorageVolume.StateEnum state, Long blocksize, UUID id, OffsetDateTime createdAt)
-
-
Method Detail
-
labels
public BlockStorageVolume labels(Map<String,String> labels)
-
putLabelsItem
public BlockStorageVolume putLabelsItem(String key, String labelsItem)
-
instance
public BlockStorageVolume instance(InstanceTarget instance)
-
getInstance
@Nullable public InstanceTarget getInstance()
Get instance- Returns:
- instance
-
setInstance
public void setInstance(InstanceTarget instance)
-
name
public BlockStorageVolume name(String name)
-
getName
@Nullable public String getName()
Volume name- Returns:
- name
-
setName
public void setName(String name)
-
getState
@Nullable public BlockStorageVolume.StateEnum getState()
Volume state- Returns:
- state
-
size
public BlockStorageVolume size(Long size)
-
getSize
@Nullable public Long getSize()
Volume size minimum: 10- Returns:
- size
-
setSize
public void setSize(Long size)
-
getBlocksize
@Nullable public Long getBlocksize()
Volume block size minimum: 0- Returns:
- blocksize
-
blockStorageSnapshots
public BlockStorageVolume blockStorageSnapshots(List<BlockStorageSnapshotTarget> blockStorageSnapshots)
-
addBlockStorageSnapshotsItem
public BlockStorageVolume addBlockStorageSnapshotsItem(BlockStorageSnapshotTarget blockStorageSnapshotsItem)
-
getBlockStorageSnapshots
@Nullable public List<BlockStorageSnapshotTarget> getBlockStorageSnapshots()
Volume snapshots, if any- Returns:
- blockStorageSnapshots
-
setBlockStorageSnapshots
public void setBlockStorageSnapshots(List<BlockStorageSnapshotTarget> blockStorageSnapshots)
-
getId
@Nullable public UUID getId()
Volume ID- Returns:
- id
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Volume creation date- Returns:
- createdAt
-
equals
public boolean equals(Object o)
Return true if this block-storage-volume object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-