Class ManagedInstanceVcoresCapability
java.lang.Object
com.azure.resourcemanager.sql.models.ManagedInstanceVcoresCapability
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedInstanceVcoresCapability>
public final class ManagedInstanceVcoresCapability
extends Object
implements com.azure.json.JsonSerializable<ManagedInstanceVcoresCapability>
The managed instance virtual cores capability.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedInstanceVcoresCapability class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedInstanceVcoresCapability from the JsonReader.Get the includedMaxSize property: Included size.Get the instancePoolSupported property: True if this service objective is supported for managed instances in an instance pool.name()Get the name property: The virtual cores identifier.reason()Get the reason property: The reason for the capability not being available.Get the standaloneSupported property: True if this service objective is supported for standalone managed instances.status()Get the status property: The status of the capability.Get the supportedMaintenanceConfigurations property: List of supported maintenance configurations.Get the supportedStorageSizes property: Storage size ranges.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: The virtual cores value.withReason(String reason) Set the reason property: The reason for the capability not being available.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedInstanceVcoresCapability
public ManagedInstanceVcoresCapability()Creates an instance of ManagedInstanceVcoresCapability class.
-
-
Method Details
-
name
Get the name property: The virtual cores identifier.- Returns:
- the name value.
-
value
Get the value property: The virtual cores value.- Returns:
- the value value.
-
includedMaxSize
Get the includedMaxSize property: Included size.- Returns:
- the includedMaxSize value.
-
supportedStorageSizes
Get the supportedStorageSizes property: Storage size ranges.- Returns:
- the supportedStorageSizes value.
-
instancePoolSupported
Get the instancePoolSupported property: True if this service objective is supported for managed instances in an instance pool.- Returns:
- the instancePoolSupported value.
-
standaloneSupported
Get the standaloneSupported property: True if this service objective is supported for standalone managed instances.- Returns:
- the standaloneSupported value.
-
supportedMaintenanceConfigurations
Get the supportedMaintenanceConfigurations property: List of supported maintenance configurations.- Returns:
- the supportedMaintenanceConfigurations value.
-
status
Get the status property: The status of the capability.- Returns:
- the status value.
-
reason
Get the reason property: The reason for the capability not being available.- Returns:
- the reason value.
-
withReason
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedInstanceVcoresCapability>- Throws:
IOException
-
fromJson
public static ManagedInstanceVcoresCapability fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedInstanceVcoresCapability from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedInstanceVcoresCapability if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedInstanceVcoresCapability.
-