Class SecurityAlertTimelineItem
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.EntityTimelineItem
-
- com.azure.resourcemanager.securityinsights.models.SecurityAlertTimelineItem
-
public final class SecurityAlertTimelineItem extends EntityTimelineItem
Represents security alert timeline item.
-
-
Constructor Summary
Constructors Constructor Description SecurityAlertTimelineItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
alertType()
Get the alertType property: The name of the alert type.String
azureResourceId()
Get the azureResourceId property: The alert azure resource id.String
description()
Get the description property: The alert description.String
displayName()
Get the displayName property: The alert name.OffsetDateTime
endTimeUtc()
Get the endTimeUtc property: The alert end time.String
productName()
Get the productName property: The alert product name.AlertSeverity
severity()
Get the severity property: The alert severity.OffsetDateTime
startTimeUtc()
Get the startTimeUtc property: The alert start time.OffsetDateTime
timeGenerated()
Get the timeGenerated property: The alert generated time.void
validate()
Validates the instance.SecurityAlertTimelineItem
withAlertType(String alertType)
Set the alertType property: The name of the alert type.SecurityAlertTimelineItem
withAzureResourceId(String azureResourceId)
Set the azureResourceId property: The alert azure resource id.SecurityAlertTimelineItem
withDescription(String description)
Set the description property: The alert description.SecurityAlertTimelineItem
withDisplayName(String displayName)
Set the displayName property: The alert name.SecurityAlertTimelineItem
withEndTimeUtc(OffsetDateTime endTimeUtc)
Set the endTimeUtc property: The alert end time.SecurityAlertTimelineItem
withProductName(String productName)
Set the productName property: The alert product name.SecurityAlertTimelineItem
withSeverity(AlertSeverity severity)
Set the severity property: The alert severity.SecurityAlertTimelineItem
withStartTimeUtc(OffsetDateTime startTimeUtc)
Set the startTimeUtc property: The alert start time.SecurityAlertTimelineItem
withTimeGenerated(OffsetDateTime timeGenerated)
Set the timeGenerated property: The alert generated time.
-
-
-
Method Detail
-
azureResourceId
public String azureResourceId()
Get the azureResourceId property: The alert azure resource id.- Returns:
- the azureResourceId value.
-
withAzureResourceId
public SecurityAlertTimelineItem withAzureResourceId(String azureResourceId)
Set the azureResourceId property: The alert azure resource id.- Parameters:
azureResourceId
- the azureResourceId value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
productName
public String productName()
Get the productName property: The alert product name.- Returns:
- the productName value.
-
withProductName
public SecurityAlertTimelineItem withProductName(String productName)
Set the productName property: The alert product name.- Parameters:
productName
- the productName value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
description
public String description()
Get the description property: The alert description.- Returns:
- the description value.
-
withDescription
public SecurityAlertTimelineItem withDescription(String description)
Set the description property: The alert description.- Parameters:
description
- the description value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
displayName
public String displayName()
Get the displayName property: The alert name.- Returns:
- the displayName value.
-
withDisplayName
public SecurityAlertTimelineItem withDisplayName(String displayName)
Set the displayName property: The alert name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
severity
public AlertSeverity severity()
Get the severity property: The alert severity.- Returns:
- the severity value.
-
withSeverity
public SecurityAlertTimelineItem withSeverity(AlertSeverity severity)
Set the severity property: The alert severity.- Parameters:
severity
- the severity value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
endTimeUtc
public OffsetDateTime endTimeUtc()
Get the endTimeUtc property: The alert end time.- Returns:
- the endTimeUtc value.
-
withEndTimeUtc
public SecurityAlertTimelineItem withEndTimeUtc(OffsetDateTime endTimeUtc)
Set the endTimeUtc property: The alert end time.- Parameters:
endTimeUtc
- the endTimeUtc value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
startTimeUtc
public OffsetDateTime startTimeUtc()
Get the startTimeUtc property: The alert start time.- Returns:
- the startTimeUtc value.
-
withStartTimeUtc
public SecurityAlertTimelineItem withStartTimeUtc(OffsetDateTime startTimeUtc)
Set the startTimeUtc property: The alert start time.- Parameters:
startTimeUtc
- the startTimeUtc value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
timeGenerated
public OffsetDateTime timeGenerated()
Get the timeGenerated property: The alert generated time.- Returns:
- the timeGenerated value.
-
withTimeGenerated
public SecurityAlertTimelineItem withTimeGenerated(OffsetDateTime timeGenerated)
Set the timeGenerated property: The alert generated time.- Parameters:
timeGenerated
- the timeGenerated value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
alertType
public String alertType()
Get the alertType property: The name of the alert type.- Returns:
- the alertType value.
-
withAlertType
public SecurityAlertTimelineItem withAlertType(String alertType)
Set the alertType property: The name of the alert type.- Parameters:
alertType
- the alertType value to set.- Returns:
- the SecurityAlertTimelineItem object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classEntityTimelineItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-