Class CapabilityUpdateProperties
java.lang.Object
com.azure.resourcemanager.compute.workloadmanager.models.CapabilityUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CapabilityUpdateProperties>
public final class CapabilityUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<CapabilityUpdateProperties>
The updatable properties of the Capability.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CapabilityUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CapabilityUpdatePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CapabilityUpdateProperties from the JsonReader.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
-
CapabilityUpdateProperties
public CapabilityUpdateProperties()Creates an instance of CapabilityUpdateProperties 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 CapabilityUpdateProperties object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CapabilityUpdateProperties>- Throws:
IOException
-
fromJson
public static CapabilityUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CapabilityUpdateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CapabilityUpdateProperties 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 CapabilityUpdateProperties.
-