SubRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.quota.models.SubRequest

Implements

public final class SubRequest
implements JsonSerializable<SubRequest>

Request property.

Method Summary

Modifier and Type Method and Description
static SubRequest fromJson(JsonReader jsonReader)

Reads an instance of SubRequest from the JsonReader.

LimitJsonObject limit()

Get the limit property: Resource quota limit properties.

String message()

Get the message property: User-friendly status message.

ResourceName name()

Get the name property: Resource name.

QuotaRequestState provisioningState()

Get the provisioningState property: The quota request status.

String resourceType()

Get the resourceType property: Resource type for which the quota properties were requested.

String subRequestId()

Get the subRequestId property: Quota request ID.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Quota limit units, such as Count and Bytes.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static SubRequest fromJson(JsonReader jsonReader)

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.

limit

public LimitJsonObject limit()

Get the limit property: Resource quota limit properties.

Returns:

the limit value.

message

public String message()

Get the message property: User-friendly status message.

Returns:

the message value.

name

public ResourceName name()

Get the name property: Resource name.

Returns:

the name value.

provisioningState

public QuotaRequestState provisioningState()

Get the provisioningState property: The quota request status.

Returns:

the provisioningState value.

resourceType

public String resourceType()

Get the resourceType property: Resource type for which the quota properties were requested.

Returns:

the resourceType value.

subRequestId

public String subRequestId()

Get the subRequestId property: Quota request ID.

Returns:

the subRequestId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Quota limit units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to