package com.qaup.collision.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * Maps the entire content of the airport_roads.yaml file.
 * Activated by @EnableConfigurationProperties in a @Configuration class.
 */
@ConfigurationProperties // No prefix, maps the root of the YAML file
@Data
public class AirportRoadsProperties {

    /**
     * Optional airport identifier code.
     */
    private String airportCode;

    /**
     * List of road definitions.
     */
    private List<RoadProperties> roads;

} 