Class IncidentPropertiesAction
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.IncidentPropertiesAction
-
public final class IncidentPropertiesAction extends Object
The IncidentPropertiesAction model.
-
-
Constructor Summary
Constructors Constructor Description IncidentPropertiesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IncidentClassification
classification()
Get the classification property: The reason the incident was closed.String
classificationComment()
Get the classificationComment property: Describes the reason the incident was closed.IncidentClassificationReason
classificationReason()
Get the classificationReason property: The classification reason the incident was closed with.List<IncidentLabel>
labels()
Get the labels property: List of labels to add to the incident.IncidentOwnerInfo
owner()
Get the owner property: Information on the user an incident is assigned to.IncidentSeverity
severity()
Get the severity property: The severity of the incident.IncidentStatus
status()
Get the status property: The status of the incident.void
validate()
Validates the instance.IncidentPropertiesAction
withClassification(IncidentClassification classification)
Set the classification property: The reason the incident was closed.IncidentPropertiesAction
withClassificationComment(String classificationComment)
Set the classificationComment property: Describes the reason the incident was closed.IncidentPropertiesAction
withClassificationReason(IncidentClassificationReason classificationReason)
Set the classificationReason property: The classification reason the incident was closed with.IncidentPropertiesAction
withLabels(List<IncidentLabel> labels)
Set the labels property: List of labels to add to the incident.IncidentPropertiesAction
withOwner(IncidentOwnerInfo owner)
Set the owner property: Information on the user an incident is assigned to.IncidentPropertiesAction
withSeverity(IncidentSeverity severity)
Set the severity property: The severity of the incident.IncidentPropertiesAction
withStatus(IncidentStatus status)
Set the status property: The status of the incident.
-
-
-
Method Detail
-
severity
public IncidentSeverity severity()
Get the severity property: The severity of the incident.- Returns:
- the severity value.
-
withSeverity
public IncidentPropertiesAction withSeverity(IncidentSeverity severity)
Set the severity property: The severity of the incident.- Parameters:
severity
- the severity value to set.- Returns:
- the IncidentPropertiesAction object itself.
-
status
public IncidentStatus status()
Get the status property: The status of the incident.- Returns:
- the status value.
-
withStatus
public IncidentPropertiesAction withStatus(IncidentStatus status)
Set the status property: The status of the incident.- Parameters:
status
- the status value to set.- Returns:
- the IncidentPropertiesAction object itself.
-
classification
public IncidentClassification classification()
Get the classification property: The reason the incident was closed.- Returns:
- the classification value.
-
withClassification
public IncidentPropertiesAction withClassification(IncidentClassification classification)
Set the classification property: The reason the incident was closed.- Parameters:
classification
- the classification value to set.- Returns:
- the IncidentPropertiesAction object itself.
-
classificationReason
public IncidentClassificationReason classificationReason()
Get the classificationReason property: The classification reason the incident was closed with.- Returns:
- the classificationReason value.
-
withClassificationReason
public IncidentPropertiesAction withClassificationReason(IncidentClassificationReason classificationReason)
Set the classificationReason property: The classification reason the incident was closed with.- Parameters:
classificationReason
- the classificationReason value to set.- Returns:
- the IncidentPropertiesAction object itself.
-
classificationComment
public String classificationComment()
Get the classificationComment property: Describes the reason the incident was closed.- Returns:
- the classificationComment value.
-
withClassificationComment
public IncidentPropertiesAction withClassificationComment(String classificationComment)
Set the classificationComment property: Describes the reason the incident was closed.- Parameters:
classificationComment
- the classificationComment value to set.- Returns:
- the IncidentPropertiesAction object itself.
-
owner
public IncidentOwnerInfo owner()
Get the owner property: Information on the user an incident is assigned to.- Returns:
- the owner value.
-
withOwner
public IncidentPropertiesAction withOwner(IncidentOwnerInfo owner)
Set the owner property: Information on the user an incident is assigned to.- Parameters:
owner
- the owner value to set.- Returns:
- the IncidentPropertiesAction object itself.
-
labels
public List<IncidentLabel> labels()
Get the labels property: List of labels to add to the incident.- Returns:
- the labels value.
-
withLabels
public IncidentPropertiesAction withLabels(List<IncidentLabel> labels)
Set the labels property: List of labels to add to the incident.- Parameters:
labels
- the labels value to set.- Returns:
- the IncidentPropertiesAction object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-