Class ManagedInstanceVcoresCapability
- java.lang.Object
-
- com.azure.resourcemanager.sql.models.ManagedInstanceVcoresCapability
-
public final class ManagedInstanceVcoresCapability extends Object
The managed instance virtual cores capability.
-
-
Constructor Summary
Constructors Constructor Description ManagedInstanceVcoresCapability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaxSizeCapabilityincludedMaxSize()Get the includedMaxSize property: Included size.BooleaninstancePoolSupported()Get the instancePoolSupported property: True if this service objective is supported for managed instances in an instance pool.Stringname()Get the name property: The virtual cores identifier.Stringreason()Get the reason property: The reason for the capability not being available.BooleanstandaloneSupported()Get the standaloneSupported property: True if this service objective is supported for standalone managed instances.CapabilityStatusstatus()Get the status property: The status of the capability.List<MaxSizeRangeCapability>supportedStorageSizes()Get the supportedStorageSizes property: Storage size ranges.voidvalidate()Validates the instance.Integervalue()Get the value property: The virtual cores value.ManagedInstanceVcoresCapabilitywithReason(String reason)Set the reason property: The reason for the capability not being available.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The virtual cores identifier.- Returns:
- the name value.
-
value
public Integer value()
Get the value property: The virtual cores value.- Returns:
- the value value.
-
includedMaxSize
public MaxSizeCapability includedMaxSize()
Get the includedMaxSize property: Included size.- Returns:
- the includedMaxSize value.
-
supportedStorageSizes
public List<MaxSizeRangeCapability> supportedStorageSizes()
Get the supportedStorageSizes property: Storage size ranges.- Returns:
- the supportedStorageSizes value.
-
instancePoolSupported
public Boolean instancePoolSupported()
Get the instancePoolSupported property: True if this service objective is supported for managed instances in an instance pool.- Returns:
- the instancePoolSupported value.
-
standaloneSupported
public Boolean standaloneSupported()
Get the standaloneSupported property: True if this service objective is supported for standalone managed instances.- Returns:
- the standaloneSupported value.
-
status
public CapabilityStatus status()
Get the status property: The status of the capability.- Returns:
- the status value.
-
reason
public String reason()
Get the reason property: The reason for the capability not being available.- Returns:
- the reason value.
-
withReason
public ManagedInstanceVcoresCapability withReason(String reason)
Set the reason property: The reason for the capability not being available.- Parameters:
reason- the reason value to set.- Returns:
- the ManagedInstanceVcoresCapability object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-