Package com.oracle.bmc.cloudbridge.model
Class Disk.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudbridge.model.Disk.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Disk.Builder
bootOrder(Integer bootOrder)
Order of boot volumes.Disk
build()
Disk.Builder
copy(Disk model)
Disk.Builder
isCbtEnabled(Boolean isCbtEnabled)
Indicates that CBT (change disk tracking) is enabled for this virtual disk.Disk.Builder
location(String location)
Location of the boot/data volume.Disk.Builder
name(String name)
Disk name.Disk.Builder
persistentMode(String persistentMode)
The disk persistent mode.Disk.Builder
sizeInMBs(Long sizeInMBs)
The size of the volume in MBs.Disk.Builder
uuid(String uuid)
Disk UUID for the virtual disk, if available.Disk.Builder
uuidLun(String uuidLun)
Disk UUID LUN for the virtual disk, if available.
-
-
-
Method Detail
-
name
public Disk.Builder name(String name)
Disk name.- Parameters:
name
- the value to set- Returns:
- this builder
-
bootOrder
public Disk.Builder bootOrder(Integer bootOrder)
Order of boot volumes.- Parameters:
bootOrder
- the value to set- Returns:
- this builder
-
uuid
public Disk.Builder uuid(String uuid)
Disk UUID for the virtual disk, if available.- Parameters:
uuid
- the value to set- Returns:
- this builder
-
uuidLun
public Disk.Builder uuidLun(String uuidLun)
Disk UUID LUN for the virtual disk, if available.- Parameters:
uuidLun
- the value to set- Returns:
- this builder
-
sizeInMBs
public Disk.Builder sizeInMBs(Long sizeInMBs)
The size of the volume in MBs.- Parameters:
sizeInMBs
- the value to set- Returns:
- this builder
-
location
public Disk.Builder location(String location)
Location of the boot/data volume.- Parameters:
location
- the value to set- Returns:
- this builder
-
persistentMode
public Disk.Builder persistentMode(String persistentMode)
The disk persistent mode.- Parameters:
persistentMode
- the value to set- Returns:
- this builder
-
isCbtEnabled
public Disk.Builder isCbtEnabled(Boolean isCbtEnabled)
Indicates that CBT (change disk tracking) is enabled for this virtual disk.- Parameters:
isCbtEnabled
- the value to set- Returns:
- this builder
-
build
public Disk build()
-
copy
public Disk.Builder copy(Disk model)
-
-