Package com.exoscale.sdk.model
Class CreateBlockStorageVolumeRequest
- java.lang.Object
-
- com.exoscale.sdk.model.CreateBlockStorageVolumeRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class CreateBlockStorageVolumeRequest extends Object
CreateBlockStorageVolumeRequest
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_BLOCK_STORAGE_SNAPSHOT
static String
JSON_PROPERTY_LABELS
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_SIZE
-
Constructor Summary
Constructors Constructor Description CreateBlockStorageVolumeRequest()
-
Method Summary
-
-
-
Field Detail
-
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_LABELS
public static final String JSON_PROPERTY_LABELS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BLOCK_STORAGE_SNAPSHOT
public static final String JSON_PROPERTY_BLOCK_STORAGE_SNAPSHOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public CreateBlockStorageVolumeRequest name(String name)
-
getName
@Nullable public String getName()
Volume name- Returns:
- name
-
setName
public void setName(String name)
-
size
public CreateBlockStorageVolumeRequest size(Long size)
-
getSize
@Nullable public Long getSize()
Volume size in GiB. When a snapshot ID is supplied, this defaults to the size of the source volume, but can be set to a larger value. minimum: 10- Returns:
- size
-
setSize
public void setSize(Long size)
-
labels
public CreateBlockStorageVolumeRequest labels(Map<String,String> labels)
-
putLabelsItem
public CreateBlockStorageVolumeRequest putLabelsItem(String key, String labelsItem)
-
blockStorageSnapshot
public CreateBlockStorageVolumeRequest blockStorageSnapshot(BlockStorageSnapshotTarget blockStorageSnapshot)
-
getBlockStorageSnapshot
@Nullable public BlockStorageSnapshotTarget getBlockStorageSnapshot()
Get blockStorageSnapshot- Returns:
- blockStorageSnapshot
-
setBlockStorageSnapshot
public void setBlockStorageSnapshot(BlockStorageSnapshotTarget blockStorageSnapshot)
-
equals
public boolean equals(Object o)
Return true if this create_block_storage_volume_request object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-