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

package com.azure.maps.search.implementation.models;

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

/** This type represents the request body for the Search Along Route service. */
@Fluent
public final class SearchAlongRouteRequest {
    /*
     * A valid `GeoJSON LineString` geometry type. Please refer to [RFC
     * 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.
     */
    @JsonProperty(value = "route")
    private GeoJsonLineString route;

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

    /**
     * Get the route property: A valid `GeoJSON LineString` geometry type. Please refer to [RFC
     * 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.
     *
     * @return the route value.
     */
    public GeoJsonLineString getRoute() {
        return this.route;
    }

    /**
     * Set the route property: A valid `GeoJSON LineString` geometry type. Please refer to [RFC
     * 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details.
     *
     * @param route the route value to set.
     * @return the SearchAlongRouteRequest object itself.
     */
    public SearchAlongRouteRequest setRoute(GeoJsonLineString route) {
        this.route = route;
        return this;
    }
}
