Class FleetResourceUpdate
java.lang.Object
com.azure.resourcemanager.cosmos.models.FleetResourceUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FleetResourceUpdate>
public final class FleetResourceUpdate
extends Object
implements com.azure.json.JsonSerializable<FleetResourceUpdate>
Represents a fleet resource for updates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FleetResourceUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FleetResourceUpdate from the JsonReader.Get the provisioningState property: A provisioning state of the Fleet.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withProvisioningState(Status provisioningState) Set the provisioningState property: A provisioning state of the Fleet.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
-
FleetResourceUpdate
public FleetResourceUpdate()Creates an instance of FleetResourceUpdate class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: A provisioning state of the Fleet.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: A provisioning state of the Fleet.- Parameters:
provisioningState- the provisioningState value to set.- Returns:
- the FleetResourceUpdate 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<FleetResourceUpdate>- Throws:
IOException
-
fromJson
Reads an instance of FleetResourceUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FleetResourceUpdate 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 FleetResourceUpdate.
-