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.BuilderbootOrder(Integer bootOrder)Order of boot volumes.Diskbuild()Disk.Buildercopy(Disk model)Disk.BuilderisCbtEnabled(Boolean isCbtEnabled)Indicates that CBT (change disk tracking) is enabled for this virtual disk.Disk.Builderlocation(String location)Location of the boot/data volume.Disk.Buildername(String name)Disk name.Disk.BuilderpersistentMode(String persistentMode)The disk persistent mode.Disk.BuildersizeInMBs(Long sizeInMBs)The size of the volume in MBs.Disk.Builderuuid(String uuid)Disk UUID for the virtual disk, if available.Disk.BuilderuuidLun(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)
-
-