Class ManagedClusterSecurityProfileDefender

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

public final class ManagedClusterSecurityProfileDefender extends Object implements com.azure.json.JsonSerializable<ManagedClusterSecurityProfileDefender>
Microsoft Defender settings for the security profile.
  • Constructor Details

    • ManagedClusterSecurityProfileDefender

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

    • logAnalyticsWorkspaceResourceId

      public String logAnalyticsWorkspaceResourceId()
      Get the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Microsoft Defender. When Microsoft Defender is enabled, this field is required and must be a valid workspace resource ID. When Microsoft Defender is disabled, leave the field empty.
      Returns:
      the logAnalyticsWorkspaceResourceId value.
    • withLogAnalyticsWorkspaceResourceId

      public ManagedClusterSecurityProfileDefender withLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId)
      Set the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Microsoft Defender. When Microsoft Defender is enabled, this field is required and must be a valid workspace resource ID. When Microsoft Defender is disabled, leave the field empty.
      Parameters:
      logAnalyticsWorkspaceResourceId - the logAnalyticsWorkspaceResourceId value to set.
      Returns:
      the ManagedClusterSecurityProfileDefender object itself.
    • securityMonitoring

      Get the securityMonitoring property: Microsoft Defender threat detection for Cloud settings for the security profile.
      Returns:
      the securityMonitoring value.
    • withSecurityMonitoring

      Set the securityMonitoring property: Microsoft Defender threat detection for Cloud settings for the security profile.
      Parameters:
      securityMonitoring - the securityMonitoring value to set.
      Returns:
      the ManagedClusterSecurityProfileDefender 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<ManagedClusterSecurityProfileDefender>
      Throws:
      IOException
    • fromJson

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