Partager via


ManagedClusterSecurityProfileDefender Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefender

Implements

public final class ManagedClusterSecurityProfileDefender
implements JsonSerializable<ManagedClusterSecurityProfileDefender>

Microsoft Defender settings for the security profile.

Constructor Summary

Constructor Description
ManagedClusterSecurityProfileDefender()

Creates an instance of ManagedClusterSecurityProfileDefender class.

Method Summary

Modifier and Type Method and Description
static ManagedClusterSecurityProfileDefender fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterSecurityProfileDefender from the JsonReader.

String logAnalyticsWorkspaceResourceId()

Get the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Microsoft Defender.

ManagedClusterSecurityProfileDefenderSecurityMonitoring securityMonitoring()

Get the securityMonitoring property: Microsoft Defender threat detection for Cloud settings for the security profile.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterSecurityProfileDefender withLogAnalyticsWorkspaceResourceId(String logAnalyticsWorkspaceResourceId)

Set the logAnalyticsWorkspaceResourceId property: Resource ID of the Log Analytics workspace to be associated with Microsoft Defender.

ManagedClusterSecurityProfileDefender withSecurityMonitoring(ManagedClusterSecurityProfileDefenderSecurityMonitoring securityMonitoring)

Set the securityMonitoring property: Microsoft Defender threat detection for Cloud settings for the security profile.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterSecurityProfileDefender

public ManagedClusterSecurityProfileDefender()

Creates an instance of ManagedClusterSecurityProfileDefender class.

Method Details

fromJson

public static ManagedClusterSecurityProfileDefender fromJson(JsonReader jsonReader)

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.

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.

securityMonitoring

public ManagedClusterSecurityProfileDefenderSecurityMonitoring securityMonitoring()

Get the securityMonitoring property: Microsoft Defender threat detection for Cloud settings for the security profile.

Returns:

the securityMonitoring value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

Applies to