Class ManagedClusterSecurityProfileAzureDefender
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileAzureDefender
-
public final class ManagedClusterSecurityProfileAzureDefender extends Object
Azure Defender settings for the security profile.
-
-
Constructor Summary
Constructors Constructor Description ManagedClusterSecurityProfileAzureDefender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanenabled()Get the enabled property: Whether to enable Azure Defender.StringlogAnalyticsWorkspaceResourceId()Get the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Azure Defender.voidvalidate()Validates the instance.ManagedClusterSecurityProfileAzureDefenderwithEnabled(Boolean enabled)Set the enabled property: Whether to enable Azure Defender.ManagedClusterSecurityProfileAzureDefenderwithLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId)Set the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Azure Defender.
-
-
-
Method Detail
-
enabled
public Boolean enabled()
Get the enabled property: Whether to enable Azure Defender.- Returns:
- the enabled value.
-
withEnabled
public ManagedClusterSecurityProfileAzureDefender withEnabled(Boolean enabled)
Set the enabled property: Whether to enable Azure Defender.- Parameters:
enabled- the enabled value to set.- Returns:
- the ManagedClusterSecurityProfileAzureDefender object itself.
-
logAnalyticsWorkspaceResourceId
public String logAnalyticsWorkspaceResourceId()
Get the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Azure Defender. When Azure Defender is enabled, this field is required and must be a valid workspace resource ID. When Azure Defender is disabled, leave the field empty.- Returns:
- the logAnalyticsWorkspaceResourceId value.
-
withLogAnalyticsWorkspaceResourceId
public ManagedClusterSecurityProfileAzureDefender withLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId)
Set the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Azure Defender. When Azure Defender is enabled, this field is required and must be a valid workspace resource ID. When Azure Defender is disabled, leave the field empty.- Parameters:
logAnalyticsWorkspaceResourceId- the logAnalyticsWorkspaceResourceId value to set.- Returns:
- the ManagedClusterSecurityProfileAzureDefender object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-