// 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;

/** The viewport that covers the result represented by the top-left and bottom-right coordinates of the viewport. */
@Fluent
public final class Viewport {
    /*
     * A location represented as a latitude and longitude using short names 'lat' & 'lon'.
     */
    @JsonProperty(value = "topLeftPoint")
    private LatLongPairAbbreviated topLeftPoint;

    /*
     * A location represented as a latitude and longitude using short names 'lat' & 'lon'.
     */
    @JsonProperty(value = "btmRightPoint")
    private LatLongPairAbbreviated btmRightPoint;

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

    /**
     * Get the topLeftPoint property: A location represented as a latitude and longitude using short names 'lat' &amp;
     * 'lon'.
     *
     * @return the topLeftPoint value.
     */
    public LatLongPairAbbreviated getTopLeftPoint() {
        return this.topLeftPoint;
    }

    /**
     * Set the topLeftPoint property: A location represented as a latitude and longitude using short names 'lat' &amp;
     * 'lon'.
     *
     * @param topLeftPoint the topLeftPoint value to set.
     * @return the Viewport object itself.
     */
    public Viewport setTopLeftPoint(LatLongPairAbbreviated topLeftPoint) {
        this.topLeftPoint = topLeftPoint;
        return this;
    }

    /**
     * Get the btmRightPoint property: A location represented as a latitude and longitude using short names 'lat' &amp;
     * 'lon'.
     *
     * @return the btmRightPoint value.
     */
    public LatLongPairAbbreviated getBtmRightPoint() {
        return this.btmRightPoint;
    }

    /**
     * Set the btmRightPoint property: A location represented as a latitude and longitude using short names 'lat' &amp;
     * 'lon'.
     *
     * @param btmRightPoint the btmRightPoint value to set.
     * @return the Viewport object itself.
     */
    public Viewport setBtmRightPoint(LatLongPairAbbreviated btmRightPoint) {
        this.btmRightPoint = btmRightPoint;
        return this;
    }
}
