// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Describes related incident information for the bookmark. */
@Fluent
public final class IncidentInfo {
    /*
     * Incident Id
     */
    @JsonProperty(value = "incidentId")
    private String incidentId;

    /*
     * The severity of the incident
     */
    @JsonProperty(value = "severity")
    private IncidentSeverity severity;

    /*
     * The title of the incident
     */
    @JsonProperty(value = "title")
    private String title;

    /*
     * Relation Name
     */
    @JsonProperty(value = "relationName")
    private String relationName;

    /**
     * Get the incidentId property: Incident Id.
     *
     * @return the incidentId value.
     */
    public String incidentId() {
        return this.incidentId;
    }

    /**
     * Set the incidentId property: Incident Id.
     *
     * @param incidentId the incidentId value to set.
     * @return the IncidentInfo object itself.
     */
    public IncidentInfo withIncidentId(String incidentId) {
        this.incidentId = incidentId;
        return this;
    }

    /**
     * Get the severity property: The severity of the incident.
     *
     * @return the severity value.
     */
    public IncidentSeverity severity() {
        return this.severity;
    }

    /**
     * Set the severity property: The severity of the incident.
     *
     * @param severity the severity value to set.
     * @return the IncidentInfo object itself.
     */
    public IncidentInfo withSeverity(IncidentSeverity severity) {
        this.severity = severity;
        return this;
    }

    /**
     * Get the title property: The title of the incident.
     *
     * @return the title value.
     */
    public String title() {
        return this.title;
    }

    /**
     * Set the title property: The title of the incident.
     *
     * @param title the title value to set.
     * @return the IncidentInfo object itself.
     */
    public IncidentInfo withTitle(String title) {
        this.title = title;
        return this;
    }

    /**
     * Get the relationName property: Relation Name.
     *
     * @return the relationName value.
     */
    public String relationName() {
        return this.relationName;
    }

    /**
     * Set the relationName property: Relation Name.
     *
     * @param relationName the relationName value to set.
     * @return the IncidentInfo object itself.
     */
    public IncidentInfo withRelationName(String relationName) {
        this.relationName = relationName;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
