Class QuotaUsageResultInner
java.lang.Object
com.azure.resourcemanager.search.fluent.models.QuotaUsageResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QuotaUsageResultInner>
public final class QuotaUsageResultInner
extends Object
implements com.azure.json.JsonSerializable<QuotaUsageResultInner>
Describes the quota usage for a particular SKU.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: The currently used up value for the particular search SKU.static QuotaUsageResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QuotaUsageResultInner from the JsonReader.id()Get the id property: The resource ID of the quota usage SKU endpoint for Microsoft.Search provider.limit()Get the limit property: The quota limit for the particular search SKU.name()Get the name property: The name of the SKU supported by Azure AI Search.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: The unit of measurement for the search SKU.voidvalidate()Validates the instance.withCurrentValue(Integer currentValue) Set the currentValue property: The currently used up value for the particular search SKU.Set the id property: The resource ID of the quota usage SKU endpoint for Microsoft.Search provider.Set the limit property: The quota limit for the particular search SKU.Set the unit property: The unit of measurement for the search SKU.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
QuotaUsageResultInner
public QuotaUsageResultInner()Creates an instance of QuotaUsageResultInner class.
-
-
Method Details
-
id
Get the id property: The resource ID of the quota usage SKU endpoint for Microsoft.Search provider.- Returns:
- the id value.
-
withId
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.
-
unit
Get the unit property: The unit of measurement for the search SKU.- Returns:
- the unit value.
-
withUnit
Set the unit property: The unit of measurement for the search SKU.- Parameters:
unit- the unit value to set.- Returns:
- the QuotaUsageResultInner object itself.
-
currentValue
Get the currentValue property: The currently used up value for the particular search SKU.- Returns:
- the currentValue value.
-
withCurrentValue
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.
-
limit
Get the limit property: The quota limit for the particular search SKU.- Returns:
- the limit value.
-
withLimit
Set the limit property: The quota limit for the particular search SKU.- Parameters:
limit- the limit value to set.- Returns:
- the QuotaUsageResultInner object itself.
-
name
Get the name property: The name of the SKU supported by Azure AI Search.- Returns:
- the name value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<QuotaUsageResultInner>- Throws:
IOException
-
fromJson
public static QuotaUsageResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-