QuotaUsageResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.search.fluent.models.QuotaUsageResultInner

Implements

public final class QuotaUsageResultInner
implements JsonSerializable<QuotaUsageResultInner>

Describes the quota usage for a particular SKU.

Constructor Summary

Constructor Description
QuotaUsageResultInner()

Creates an instance of QuotaUsageResultInner class.

Method Summary

Modifier and Type Method and Description
Integer currentValue()

Get the currentValue property: The currently used up value for the particular search SKU.

static QuotaUsageResultInner fromJson(JsonReader jsonReader)

Reads an instance of QuotaUsageResultInner from the JsonReader.

String id()

Get the id property: The resource ID of the quota usage SKU endpoint for Microsoft.Search provider.

Integer limit()

Get the limit property: The quota limit for the particular search SKU.

QuotaUsageResultName name()

Get the name property: The name of the SKU supported by Azure AI Search.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: The unit of measurement for the search SKU.

void validate()

Validates the instance.

QuotaUsageResultInner withCurrentValue(Integer currentValue)

Set the currentValue property: The currently used up value for the particular search SKU.

QuotaUsageResultInner withId(String id)

Set the id property: The resource ID of the quota usage SKU endpoint for Microsoft.Search provider.

QuotaUsageResultInner withLimit(Integer limit)

Set the limit property: The quota limit for the particular search SKU.

QuotaUsageResultInner withUnit(String unit)

Set the unit property: The unit of measurement for the search SKU.

Methods inherited from java.lang.Object

Constructor Details

QuotaUsageResultInner

public QuotaUsageResultInner()

Creates an instance of QuotaUsageResultInner class.

Method Details

currentValue

public Integer currentValue()

Get the currentValue property: The currently used up value for the particular search SKU.

Returns:

the currentValue value.

fromJson

public static QuotaUsageResultInner fromJson(JsonReader jsonReader)

Reads an instance of QuotaUsageResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of QuotaUsageResultInner 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 QuotaUsageResultInner.

id

public String id()

Get the id property: The resource ID of the quota usage SKU endpoint for Microsoft.Search provider.

Returns:

the id value.

limit

public Integer limit()

Get the limit property: The quota limit for the particular search SKU.

Returns:

the limit value.

name

public QuotaUsageResultName name()

Get the name property: The name of the SKU supported by Azure AI Search.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The unit of measurement for the search SKU.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withCurrentValue

public QuotaUsageResultInner withCurrentValue(Integer currentValue)

Set the currentValue property: The currently used up value for the particular search SKU.

Parameters:

currentValue - the currentValue value to set.

Returns:

the QuotaUsageResultInner object itself.

withId

public QuotaUsageResultInner withId(String id)

Set the id property: The resource ID of the quota usage SKU endpoint for Microsoft.Search provider.

Parameters:

id - the id value to set.

Returns:

the QuotaUsageResultInner object itself.

withLimit

public QuotaUsageResultInner withLimit(Integer limit)

Set the limit property: The quota limit for the particular search SKU.

Parameters:

limit - the limit value to set.

Returns:

the QuotaUsageResultInner object itself.

withUnit

public QuotaUsageResultInner withUnit(String unit)

Set the unit property: The unit of measurement for the search SKU.

Parameters:

unit - the unit value to set.

Returns:

the QuotaUsageResultInner object itself.

Applies to