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 Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterSecurityProfileDefender class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterSecurityProfileDefender from the JsonReader.Get the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Microsoft Defender.Get the securityMonitoring property: Microsoft Defender threat detection for Cloud settings for the security profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId) Set the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Microsoft Defender.withSecurityMonitoring(ManagedClusterSecurityProfileDefenderSecurityMonitoring securityMonitoring) Set the securityMonitoring property: Microsoft Defender threat detection for Cloud settings for the security profile.Methods inherited from class java.lang.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
-
ManagedClusterSecurityProfileDefender
public ManagedClusterSecurityProfileDefender()Creates an instance of ManagedClusterSecurityProfileDefender class.
-
-
Method Details
-
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
public ManagedClusterSecurityProfileDefender withSecurityMonitoring(ManagedClusterSecurityProfileDefenderSecurityMonitoring securityMonitoring) 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
- Specified by:
toJsonin interfacecom.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.
-