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

package com.azure.resourcemanager.resourcehealth.models;

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

/** Properties of the service impacting event. */
@Fluent
public final class ServiceImpactingEventIncidentProperties {
    /*
     * Title of the incident.
     */
    @JsonProperty(value = "title")
    private String title;

    /*
     * Service impacted by the event.
     */
    @JsonProperty(value = "service")
    private String service;

    /*
     * Region impacted by the event.
     */
    @JsonProperty(value = "region")
    private String region;

    /*
     * Type of Event.
     */
    @JsonProperty(value = "incidentType")
    private String incidentType;

    /** Creates an instance of ServiceImpactingEventIncidentProperties class. */
    public ServiceImpactingEventIncidentProperties() {
    }

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

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

    /**
     * Get the service property: Service impacted by the event.
     *
     * @return the service value.
     */
    public String service() {
        return this.service;
    }

    /**
     * Set the service property: Service impacted by the event.
     *
     * @param service the service value to set.
     * @return the ServiceImpactingEventIncidentProperties object itself.
     */
    public ServiceImpactingEventIncidentProperties withService(String service) {
        this.service = service;
        return this;
    }

    /**
     * Get the region property: Region impacted by the event.
     *
     * @return the region value.
     */
    public String region() {
        return this.region;
    }

    /**
     * Set the region property: Region impacted by the event.
     *
     * @param region the region value to set.
     * @return the ServiceImpactingEventIncidentProperties object itself.
     */
    public ServiceImpactingEventIncidentProperties withRegion(String region) {
        this.region = region;
        return this;
    }

    /**
     * Get the incidentType property: Type of Event.
     *
     * @return the incidentType value.
     */
    public String incidentType() {
        return this.incidentType;
    }

    /**
     * Set the incidentType property: Type of Event.
     *
     * @param incidentType the incidentType value to set.
     * @return the ServiceImpactingEventIncidentProperties object itself.
     */
    public ServiceImpactingEventIncidentProperties withIncidentType(String incidentType) {
        this.incidentType = incidentType;
        return this;
    }

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