Class AssociatedWorkspace

java.lang.Object
com.azure.resourcemanager.loganalytics.models.AssociatedWorkspace
All Implemented Interfaces:
com.azure.json.JsonSerializable<AssociatedWorkspace>

public final class AssociatedWorkspace extends Object implements com.azure.json.JsonSerializable<AssociatedWorkspace>
The list of Log Analytics workspaces associated with the cluster.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of AssociatedWorkspace class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the associateDate property: The time of workspace association.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AssociatedWorkspace from the JsonReader.
    Get the resourceId property: Associated workspace arm resource id, in the form of: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the workspaceId property: Associated workspace immutable id.
    Get the workspaceName property: Associated workspace resource name.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • AssociatedWorkspace

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

    • workspaceId

      public String workspaceId()
      Get the workspaceId property: Associated workspace immutable id.
      Returns:
      the workspaceId value.
    • workspaceName

      public String workspaceName()
      Get the workspaceName property: Associated workspace resource name.
      Returns:
      the workspaceName value.
    • resourceId

      public String resourceId()
      Get the resourceId property: Associated workspace arm resource id, in the form of: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}.
      Returns:
      the resourceId value.
    • associateDate

      public OffsetDateTime associateDate()
      Get the associateDate property: The time of workspace association.
      Returns:
      the associateDate value.
    • toJson

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

      public static AssociatedWorkspace fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AssociatedWorkspace from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AssociatedWorkspace 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 AssociatedWorkspace.