Class CapabilityProperties
java.lang.Object
com.azure.resourcemanager.compute.workloadmanager.models.CapabilityProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CapabilityProperties>
public final class CapabilityProperties
extends Object
implements com.azure.json.JsonSerializable<CapabilityProperties>
Properties of a capability enabled for a workload space.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the effectiveVersion property: The effective capability version selected by the service.static CapabilityPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CapabilityProperties from the JsonReader.Get the provisioningState property: The provisioning state of the capability.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the versionPolicy property: The version selection policy for the capability.withVersionPolicy(VersionPolicy versionPolicy) Set the versionPolicy property: The version selection policy for the capability.Methods inherited from class 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
-
CapabilityProperties
public CapabilityProperties()Creates an instance of CapabilityProperties class.
-
-
Method Details
-
versionPolicy
Get the versionPolicy property: The version selection policy for the capability.- Returns:
- the versionPolicy value.
-
withVersionPolicy
Set the versionPolicy property: The version selection policy for the capability.- Parameters:
versionPolicy- the versionPolicy value to set.- Returns:
- the CapabilityProperties object itself.
-
effectiveVersion
Get the effectiveVersion property: The effective capability version selected by the service.- Returns:
- the effectiveVersion value.
-
provisioningState
Get the provisioningState property: The provisioning state of the capability.- Returns:
- the provisioningState value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CapabilityProperties>- Throws:
IOException
-
fromJson
public static CapabilityProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CapabilityProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CapabilityProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CapabilityProperties.
-