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 Details

    • WorkspaceSku

      public WorkspaceSku()
      Creates an instance of WorkspaceSku class.
  • Method Details

    • name

      public WorkspaceSkuNameEnum name()
      Get the name property: The name of the SKU.
      Returns:
      the name value.
    • withName

      public WorkspaceSku withName(WorkspaceSkuNameEnum name)
      Set the name property: The name of the SKU.
      Parameters:
      name - the name value to set.
      Returns:
      the WorkspaceSku object itself.
    • capacityReservationLevel

      public Integer capacityReservationLevel()
      Get the capacityReservationLevel property: The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
      Returns:
      the capacityReservationLevel value.
    • withCapacityReservationLevel

      public WorkspaceSku withCapacityReservationLevel(Integer capacityReservationLevel)
      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

      public OffsetDateTime lastSkuUpdate()
      Get the lastSkuUpdate property: The last time when the sku was updated.
      Returns:
      the lastSkuUpdate value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WorkspaceSku>
      Throws:
      IOException
    • fromJson

      public static WorkspaceSku fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.