Class OlvmStorageDomainProperties.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudmigrations.model.OlvmStorageDomainProperties.Builder
-
- Enclosing class:
- OlvmStorageDomainProperties
public static class OlvmStorageDomainProperties.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OlvmStorageDomainProperties.BuilderavailableSpaceInBytes(Long availableSpaceInBytes)Space available in bytes.OlvmStorageDomainProperties.BuilderblockSizeInBytes(Long blockSizeInBytes)Block size in bytes.OlvmStorageDomainPropertiesbuild()OlvmStorageDomainProperties.Buildercomment(String comment)Free text containing comments about this object.OlvmStorageDomainProperties.BuildercommittedSpaceInBytes(Long committedSpaceInBytes)Space committed in bytes.OlvmStorageDomainProperties.Buildercopy(OlvmStorageDomainProperties model)OlvmStorageDomainProperties.BuildercriticalSpaceActionBlockerInGBs(Integer criticalSpaceActionBlockerInGBs)Ensure storage domain always has at least this amount of unoccupied space in GBs.OlvmStorageDomainProperties.BuilderdataCenters(List<OlvmDataCenter> dataCenters)List of data centers where storage domain belongsOlvmStorageDomainProperties.BuilderexternalStatus(OlvmStorageDomainProperties.ExternalStatus externalStatus)Status of storage domain.OlvmStorageDomainProperties.BuilderisBackup(Boolean isBackup)Whether a data storage domain is used as backup domain or not.OlvmStorageDomainProperties.BuilderisDiscardAfterDelete(Boolean isDiscardAfterDelete)Indicates whether disks’ blocks on block storage domains will be discarded right before they are deleted.OlvmStorageDomainProperties.BuilderisImport(Boolean isImport)Whether this storage domain is imported.OlvmStorageDomainProperties.BuilderisPrimary(Boolean isPrimary)Indicates if this is the primary (master) storage domain of a data center.OlvmStorageDomainProperties.BuilderisSupportDiscard(Boolean isSupportDiscard)Indicates whether a block storage domain supports discard operationsOlvmStorageDomainProperties.BuilderisSupportDiscardZeroesData(Boolean isSupportDiscardZeroesData)Indicates whether a block storage domain supports the property that discard zeroes the data.OlvmStorageDomainProperties.BuilderisWipeAfterDelete(Boolean isWipeAfterDelete)Serves as the default value of wipe_after_delete for disks on this storage domain.OlvmStorageDomainProperties.Builderstorage(Storage storage)OlvmStorageDomainProperties.BuilderstorageDomainDescription(String storageDomainDescription)A human-readable description in plain text.OlvmStorageDomainProperties.BuilderstorageDomainName(String storageDomainName)A human-readable name in plain text.OlvmStorageDomainProperties.BuilderstorageDomainStatus(OlvmStorageDomainProperties.StorageDomainStatus storageDomainStatus)Status of storage domain.OlvmStorageDomainProperties.BuilderstorageDomainType(OlvmStorageDomainProperties.StorageDomainType storageDomainType)Indicates the kind of data managed by a storage domain.OlvmStorageDomainProperties.BuilderstorageFormat(OlvmStorageDomainProperties.StorageFormat storageFormat)Type which represents a format of storage domain.OlvmStorageDomainProperties.BuilderusedSpaceInBytes(Long usedSpaceInBytes)Space used in bytes.OlvmStorageDomainProperties.BuilderwarningLowSpaceIndicatorInPercentage(Integer warningLowSpaceIndicatorInPercentage)If the free space available on the storage domain is below this percentage, warning messages are displayed to the user and logged.
-
-
-
Method Detail
-
storageDomainName
public OlvmStorageDomainProperties.Builder storageDomainName(String storageDomainName)
A human-readable name in plain text.- Parameters:
storageDomainName- the value to set- Returns:
- this builder
-
storageDomainDescription
public OlvmStorageDomainProperties.Builder storageDomainDescription(String storageDomainDescription)
A human-readable description in plain text.- Parameters:
storageDomainDescription- the value to set- Returns:
- this builder
-
comment
public OlvmStorageDomainProperties.Builder comment(String comment)
Free text containing comments about this object.- Parameters:
comment- the value to set- Returns:
- this builder
-
availableSpaceInBytes
public OlvmStorageDomainProperties.Builder availableSpaceInBytes(Long availableSpaceInBytes)
Space available in bytes.- Parameters:
availableSpaceInBytes- the value to set- Returns:
- this builder
-
usedSpaceInBytes
public OlvmStorageDomainProperties.Builder usedSpaceInBytes(Long usedSpaceInBytes)
Space used in bytes.- Parameters:
usedSpaceInBytes- the value to set- Returns:
- this builder
-
committedSpaceInBytes
public OlvmStorageDomainProperties.Builder committedSpaceInBytes(Long committedSpaceInBytes)
Space committed in bytes.- Parameters:
committedSpaceInBytes- the value to set- Returns:
- this builder
-
blockSizeInBytes
public OlvmStorageDomainProperties.Builder blockSizeInBytes(Long blockSizeInBytes)
Block size in bytes.- Parameters:
blockSizeInBytes- the value to set- Returns:
- this builder
-
isBackup
public OlvmStorageDomainProperties.Builder isBackup(Boolean isBackup)
Whether a data storage domain is used as backup domain or not.- Parameters:
isBackup- the value to set- Returns:
- this builder
-
isPrimary
public OlvmStorageDomainProperties.Builder isPrimary(Boolean isPrimary)
Indicates if this is the primary (master) storage domain of a data center.- Parameters:
isPrimary- the value to set- Returns:
- this builder
-
isImport
public OlvmStorageDomainProperties.Builder isImport(Boolean isImport)
Whether this storage domain is imported.- Parameters:
isImport- the value to set- Returns:
- this builder
-
isDiscardAfterDelete
public OlvmStorageDomainProperties.Builder isDiscardAfterDelete(Boolean isDiscardAfterDelete)
Indicates whether disks’ blocks on block storage domains will be discarded right before they are deleted.- Parameters:
isDiscardAfterDelete- the value to set- Returns:
- this builder
-
isSupportDiscard
public OlvmStorageDomainProperties.Builder isSupportDiscard(Boolean isSupportDiscard)
Indicates whether a block storage domain supports discard operations- Parameters:
isSupportDiscard- the value to set- Returns:
- this builder
-
isSupportDiscardZeroesData
public OlvmStorageDomainProperties.Builder isSupportDiscardZeroesData(Boolean isSupportDiscardZeroesData)
Indicates whether a block storage domain supports the property that discard zeroes the data.- Parameters:
isSupportDiscardZeroesData- the value to set- Returns:
- this builder
-
isWipeAfterDelete
public OlvmStorageDomainProperties.Builder isWipeAfterDelete(Boolean isWipeAfterDelete)
Serves as the default value of wipe_after_delete for disks on this storage domain.- Parameters:
isWipeAfterDelete- the value to set- Returns:
- this builder
-
criticalSpaceActionBlockerInGBs
public OlvmStorageDomainProperties.Builder criticalSpaceActionBlockerInGBs(Integer criticalSpaceActionBlockerInGBs)
Ensure storage domain always has at least this amount of unoccupied space in GBs.- Parameters:
criticalSpaceActionBlockerInGBs- the value to set- Returns:
- this builder
-
warningLowSpaceIndicatorInPercentage
public OlvmStorageDomainProperties.Builder warningLowSpaceIndicatorInPercentage(Integer warningLowSpaceIndicatorInPercentage)
If the free space available on the storage domain is below this percentage, warning messages are displayed to the user and logged.- Parameters:
warningLowSpaceIndicatorInPercentage- the value to set- Returns:
- this builder
-
externalStatus
public OlvmStorageDomainProperties.Builder externalStatus(OlvmStorageDomainProperties.ExternalStatus externalStatus)
Status of storage domain.- Parameters:
externalStatus- the value to set- Returns:
- this builder
-
storageDomainStatus
public OlvmStorageDomainProperties.Builder storageDomainStatus(OlvmStorageDomainProperties.StorageDomainStatus storageDomainStatus)
Status of storage domain.- Parameters:
storageDomainStatus- the value to set- Returns:
- this builder
-
storage
public OlvmStorageDomainProperties.Builder storage(Storage storage)
-
storageFormat
public OlvmStorageDomainProperties.Builder storageFormat(OlvmStorageDomainProperties.StorageFormat storageFormat)
Type which represents a format of storage domain.- Parameters:
storageFormat- the value to set- Returns:
- this builder
-
storageDomainType
public OlvmStorageDomainProperties.Builder storageDomainType(OlvmStorageDomainProperties.StorageDomainType storageDomainType)
Indicates the kind of data managed by a storage domain.- Parameters:
storageDomainType- the value to set- Returns:
- this builder
-
dataCenters
public OlvmStorageDomainProperties.Builder dataCenters(List<OlvmDataCenter> dataCenters)
List of data centers where storage domain belongs- Parameters:
dataCenters- the value to set- Returns:
- this builder
-
build
public OlvmStorageDomainProperties build()
-
copy
public OlvmStorageDomainProperties.Builder copy(OlvmStorageDomainProperties model)
-
-