Class SubRequest
java.lang.Object
com.azure.resourcemanager.reservations.models.SubRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubRequest>
The sub-request submitted with the quota request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubRequest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SubRequest from the JsonReader.limit()
Get the limit property: Quota (resource limit).message()
Get the message property: User-friendly status message.name()
Get the name property: The resource name.Get the provisioningState property: The quota request status.Get the resourceType property: Resource type for which the quota check was made.Get the subRequestId property: Sub request ID for individual request.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) unit()
Get the unit property: The limit units, such as **count** and **bytes**.void
validate()
Validates the instance.withName
(ResourceName name) Set the name property: The resource name.withProvisioningState
(QuotaRequestState provisioningState) Set the provisioningState property: The quota request status.Set the unit property: The limit units, such as **count** and **bytes**.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
-
SubRequest
public SubRequest()Creates an instance of SubRequest class.
-
-
Method Details
-
limit
Get the limit property: Quota (resource limit).- Returns:
- the limit value.
-
name
Get the name property: The resource name.- Returns:
- the name value.
-
withName
Set the name property: The resource name.- Parameters:
name
- the name value to set.- Returns:
- the SubRequest object itself.
-
resourceType
Get the resourceType property: Resource type for which the quota check was made.- Returns:
- the resourceType value.
-
unit
Get the unit property: The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation.- Returns:
- the unit value.
-
withUnit
Set the unit property: The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation.- Parameters:
unit
- the unit value to set.- Returns:
- the SubRequest object itself.
-
provisioningState
Get the provisioningState property: The quota request status.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: The quota request status.- Parameters:
provisioningState
- the provisioningState value to set.- Returns:
- the SubRequest object itself.
-
message
Get the message property: User-friendly status message.- Returns:
- the message value.
-
subRequestId
Get the subRequestId property: Sub request ID for individual request.- Returns:
- the subRequestId value.
-
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<SubRequest>
- Throws:
IOException
-
fromJson
Reads an instance of SubRequest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SubRequest 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 SubRequest.
-