Class QuotaAvailabilityRequest
java.lang.Object
com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QuotaAvailabilityRequest>
public final class QuotaAvailabilityRequest
extends Object
implements com.azure.json.JsonSerializable<QuotaAvailabilityRequest>
Quota availability request content.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of QuotaAvailabilityRequest class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuotaAvailabilityRequest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of QuotaAvailabilityRequest from the JsonReader.name()
Get the name property: Name of the resource to verify.Get the resourceGroup property: Resource group name.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Resource type used for verification.void
validate()
Validates the instance.Set the name property: Name of the resource to verify.withResourceGroup
(String resourceGroup) Set the resourceGroup property: Resource group name.Set the type property: Resource type used for verification.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
QuotaAvailabilityRequest
public QuotaAvailabilityRequest()Creates an instance of QuotaAvailabilityRequest class.
-
-
Method Details
-
name
Get the name property: Name of the resource to verify.- Returns:
- the name value.
-
withName
Set the name property: Name of the resource to verify.- Parameters:
name
- the name value to set.- Returns:
- the QuotaAvailabilityRequest object itself.
-
type
Get the type property: Resource type used for verification.- Returns:
- the type value.
-
withType
Set the type property: Resource type used for verification.- Parameters:
type
- the type value to set.- Returns:
- the QuotaAvailabilityRequest object itself.
-
resourceGroup
Get the resourceGroup property: Resource group name.- Returns:
- the resourceGroup value.
-
withResourceGroup
Set the resourceGroup property: Resource group name.- Parameters:
resourceGroup
- the resourceGroup value to set.- Returns:
- the QuotaAvailabilityRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<QuotaAvailabilityRequest>
- Throws:
IOException
-
fromJson
public static QuotaAvailabilityRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of QuotaAvailabilityRequest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of QuotaAvailabilityRequest 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 QuotaAvailabilityRequest.
-