Class UpdateWorkspaceQuotas
java.lang.Object
com.azure.resourcemanager.machinelearning.models.UpdateWorkspaceQuotas
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpdateWorkspaceQuotas>
public final class UpdateWorkspaceQuotas
extends Object
implements com.azure.json.JsonSerializable<UpdateWorkspaceQuotas>
The properties for update Quota response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateWorkspaceQuotasfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UpdateWorkspaceQuotas from the JsonReader.id()Get the id property: Specifies the resource ID.limit()Get the limit property: The maximum permitted quota of the resource.status()Get the status property: Status of update workspace quota.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Specifies the resource type.unit()Get the unit property: An enum describing the unit of quota measurement.voidvalidate()Validates the instance.Set the limit property: The maximum permitted quota of the resource.withStatus(Status status) Set the status property: Status of update workspace quota.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
-
UpdateWorkspaceQuotas
public UpdateWorkspaceQuotas()Creates an instance of UpdateWorkspaceQuotas class.
-
-
Method Details
-
id
Get the id property: Specifies the resource ID.- Returns:
- the id value.
-
type
Get the type property: Specifies the resource type.- Returns:
- the type value.
-
limit
Get the limit property: The maximum permitted quota of the resource.- Returns:
- the limit value.
-
withLimit
Set the limit property: The maximum permitted quota of the resource.- Parameters:
limit- the limit value to set.- Returns:
- the UpdateWorkspaceQuotas object itself.
-
unit
Get the unit property: An enum describing the unit of quota measurement.- Returns:
- the unit value.
-
status
Get the status property: Status of update workspace quota.- Returns:
- the status value.
-
withStatus
Set the status property: Status of update workspace quota.- Parameters:
status- the status value to set.- Returns:
- the UpdateWorkspaceQuotas 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<UpdateWorkspaceQuotas>- Throws:
IOException
-
fromJson
public static UpdateWorkspaceQuotas fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UpdateWorkspaceQuotas from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UpdateWorkspaceQuotas 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 UpdateWorkspaceQuotas.
-