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

package com.azure.maps.traffic.models;

import com.azure.core.annotation.Immutable;
import com.azure.maps.traffic.implementation.models.TrafficIncidentDetailTm;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** This object is returned from a successful Traffic incident Detail call. */
@Immutable
public final class TrafficIncidentDetail {
    /*
     * Main response element
     */
    @JsonProperty(value = "tm", access = JsonProperty.Access.WRITE_ONLY)
    private TrafficIncidentDetailTm tm;

    /** Set default constructor to private */
    private TrafficIncidentDetail() {}

    /**
     * Get the id property: ID of the traffic model for this incident.
     *
     * @return the id value.
     */
    public String getId() {
        return this.tm.getId();
    }

    /**
     * Get the pointsOfInterest property: A single traffic incident, or a cluster of traffic incidents.
     *
     * @return the pointsOfInterest value.
     */
    public List<TrafficIncidentPointOfInterest> getPointsOfInterest() {
        return this.tm.getPointsOfInterest();
    }
}
