Class ClusterPoolLogAnalyticsProfile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterPoolLogAnalyticsProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterPoolLogAnalyticsProfile>
Direct Known Subclasses:
ClusterPoolResourcePropertiesLogAnalyticsProfile

public class ClusterPoolLogAnalyticsProfile extends Object implements com.azure.json.JsonSerializable<ClusterPoolLogAnalyticsProfile>
Cluster pool log analytics profile used to enable or disable OMS agent for AKS cluster.
  • Constructor Details

    • ClusterPoolLogAnalyticsProfile

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

    • enabled

      public boolean enabled()
      Get the enabled property: True if log analytics is enabled for cluster pool, otherwise false.
      Returns:
      the enabled value.
    • withEnabled

      public ClusterPoolLogAnalyticsProfile withEnabled(boolean enabled)
      Set the enabled property: True if log analytics is enabled for cluster pool, otherwise false.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ClusterPoolLogAnalyticsProfile object itself.
    • workspaceId

      public String workspaceId()
      Get the workspaceId property: Log analytics workspace to associate with the OMS agent.
      Returns:
      the workspaceId value.
    • withWorkspaceId

      public ClusterPoolLogAnalyticsProfile withWorkspaceId(String workspaceId)
      Set the workspaceId property: Log analytics workspace to associate with the OMS agent.
      Parameters:
      workspaceId - the workspaceId value to set.
      Returns:
      the ClusterPoolLogAnalyticsProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

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