Aracılığıyla paylaş


SubRequest Class

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

Implements

public final class SubRequest
implements JsonSerializable<SubRequest>

Request property.

Constructor Summary

Constructor Description
SubRequest()

Creates an instance of SubRequest class.

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.

SubRequest withLimit(LimitJsonObject limit)

Set the limit property: Resource quota limit properties.

SubRequest withName(ResourceName name)

Set the name property: Resource name.

SubRequest withUnit(String unit)

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

Methods inherited from java.lang.Object

Constructor Details

SubRequest

public SubRequest()

Creates an instance of SubRequest class.

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.

withLimit

public SubRequest withLimit(LimitJsonObject limit)

Set the limit property: Resource quota limit properties.

Parameters:

limit - the limit value to set.

Returns:

the SubRequest object itself.

withName

public SubRequest withName(ResourceName name)

Set the name property: Resource name.

Parameters:

name - the name value to set.

Returns:

the SubRequest object itself.

withUnit

public SubRequest withUnit(String unit)

Set 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.

Parameters:

unit - the unit value to set.

Returns:

the SubRequest object itself.

Applies to