Class WorkspaceSku
java.lang.Object
com.azure.resourcemanager.loganalytics.models.WorkspaceSku
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceSku>
public final class WorkspaceSku
extends Object
implements com.azure.json.JsonSerializable<WorkspaceSku>
The SKU (tier) of a workspace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the capacityReservationLevel property: The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.static WorkspaceSkufromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceSku from the JsonReader.Get the lastSkuUpdate property: The last time when the sku was updated.name()Get the name property: The name of the SKU.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withCapacityReservationLevel(Integer capacityReservationLevel) Set the capacityReservationLevel property: The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.withName(WorkspaceSkuNameEnum name) Set the name property: The name of the SKU.Methods inherited from class 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
-
WorkspaceSku
public WorkspaceSku()Creates an instance of WorkspaceSku class.
-
-
Method Details
-
name
Get the name property: The name of the SKU.- Returns:
- the name value.
-
withName
Set the name property: The name of the SKU.- Parameters:
name- the name value to set.- Returns:
- the WorkspaceSku object itself.
-
capacityReservationLevel
Get the capacityReservationLevel property: The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.- Returns:
- the capacityReservationLevel value.
-
withCapacityReservationLevel
Set the capacityReservationLevel property: The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.- Parameters:
capacityReservationLevel- the capacityReservationLevel value to set.- Returns:
- the WorkspaceSku object itself.
-
lastSkuUpdate
Get the lastSkuUpdate property: The last time when the sku was updated.- Returns:
- the lastSkuUpdate value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WorkspaceSku>- Throws:
IOException
-
fromJson
Reads an instance of WorkspaceSku from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WorkspaceSku if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WorkspaceSku.
-