from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from published_apis.models.base_model import Model
from published_apis.models.gad_shape import GADShape
from published_apis.models.local_origin import LocalOrigin
from published_apis.models.relative_cartesian_location import RelativeCartesianLocation
from published_apis.models.supported_gad_shapes import SupportedGADShapes
from published_apis.models.uncertainty_ellipse import UncertaintyEllipse
from published_apis import util

from published_apis.models.gad_shape import GADShape  # noqa: E501
from published_apis.models.local_origin import LocalOrigin  # noqa: E501
from published_apis.models.relative_cartesian_location import RelativeCartesianLocation  # noqa: E501
from published_apis.models.supported_gad_shapes import SupportedGADShapes  # noqa: E501
from published_apis.models.uncertainty_ellipse import UncertaintyEllipse  # noqa: E501

class Local2dPointUncertaintyEllipse(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, shape=None, local_origin=None, point=None, uncertainty_ellipse=None, confidence=None):  # noqa: E501
        """Local2dPointUncertaintyEllipse - a model defined in OpenAPI

        :param shape: The shape of this Local2dPointUncertaintyEllipse.  # noqa: E501
        :type shape: SupportedGADShapes
        :param local_origin: The local_origin of this Local2dPointUncertaintyEllipse.  # noqa: E501
        :type local_origin: LocalOrigin
        :param point: The point of this Local2dPointUncertaintyEllipse.  # noqa: E501
        :type point: RelativeCartesianLocation
        :param uncertainty_ellipse: The uncertainty_ellipse of this Local2dPointUncertaintyEllipse.  # noqa: E501
        :type uncertainty_ellipse: UncertaintyEllipse
        :param confidence: The confidence of this Local2dPointUncertaintyEllipse.  # noqa: E501
        :type confidence: int
        """
        self.openapi_types = {
            'shape': SupportedGADShapes,
            'local_origin': LocalOrigin,
            'point': RelativeCartesianLocation,
            'uncertainty_ellipse': UncertaintyEllipse,
            'confidence': int
        }

        self.attribute_map = {
            'shape': 'shape',
            'local_origin': 'localOrigin',
            'point': 'point',
            'uncertainty_ellipse': 'uncertaintyEllipse',
            'confidence': 'confidence'
        }

        self._shape = shape
        self._local_origin = local_origin
        self._point = point
        self._uncertainty_ellipse = uncertainty_ellipse
        self._confidence = confidence

    @classmethod
    def from_dict(cls, dikt) -> 'Local2dPointUncertaintyEllipse':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The Local2dPointUncertaintyEllipse of this Local2dPointUncertaintyEllipse.  # noqa: E501
        :rtype: Local2dPointUncertaintyEllipse
        """
        return util.deserialize_model(dikt, cls)

    @property
    def shape(self) -> SupportedGADShapes:
        """Gets the shape of this Local2dPointUncertaintyEllipse.


        :return: The shape of this Local2dPointUncertaintyEllipse.
        :rtype: SupportedGADShapes
        """
        return self._shape

    @shape.setter
    def shape(self, shape: SupportedGADShapes):
        """Sets the shape of this Local2dPointUncertaintyEllipse.


        :param shape: The shape of this Local2dPointUncertaintyEllipse.
        :type shape: SupportedGADShapes
        """
        if shape is None:
            raise ValueError("Invalid value for `shape`, must not be `None`")  # noqa: E501

        self._shape = shape

    @property
    def local_origin(self) -> LocalOrigin:
        """Gets the local_origin of this Local2dPointUncertaintyEllipse.


        :return: The local_origin of this Local2dPointUncertaintyEllipse.
        :rtype: LocalOrigin
        """
        return self._local_origin

    @local_origin.setter
    def local_origin(self, local_origin: LocalOrigin):
        """Sets the local_origin of this Local2dPointUncertaintyEllipse.


        :param local_origin: The local_origin of this Local2dPointUncertaintyEllipse.
        :type local_origin: LocalOrigin
        """
        if local_origin is None:
            raise ValueError("Invalid value for `local_origin`, must not be `None`")  # noqa: E501

        self._local_origin = local_origin

    @property
    def point(self) -> RelativeCartesianLocation:
        """Gets the point of this Local2dPointUncertaintyEllipse.


        :return: The point of this Local2dPointUncertaintyEllipse.
        :rtype: RelativeCartesianLocation
        """
        return self._point

    @point.setter
    def point(self, point: RelativeCartesianLocation):
        """Sets the point of this Local2dPointUncertaintyEllipse.


        :param point: The point of this Local2dPointUncertaintyEllipse.
        :type point: RelativeCartesianLocation
        """
        if point is None:
            raise ValueError("Invalid value for `point`, must not be `None`")  # noqa: E501

        self._point = point

    @property
    def uncertainty_ellipse(self) -> UncertaintyEllipse:
        """Gets the uncertainty_ellipse of this Local2dPointUncertaintyEllipse.


        :return: The uncertainty_ellipse of this Local2dPointUncertaintyEllipse.
        :rtype: UncertaintyEllipse
        """
        return self._uncertainty_ellipse

    @uncertainty_ellipse.setter
    def uncertainty_ellipse(self, uncertainty_ellipse: UncertaintyEllipse):
        """Sets the uncertainty_ellipse of this Local2dPointUncertaintyEllipse.


        :param uncertainty_ellipse: The uncertainty_ellipse of this Local2dPointUncertaintyEllipse.
        :type uncertainty_ellipse: UncertaintyEllipse
        """
        if uncertainty_ellipse is None:
            raise ValueError("Invalid value for `uncertainty_ellipse`, must not be `None`")  # noqa: E501

        self._uncertainty_ellipse = uncertainty_ellipse

    @property
    def confidence(self) -> int:
        """Gets the confidence of this Local2dPointUncertaintyEllipse.

        Indicates value of confidence.  # noqa: E501

        :return: The confidence of this Local2dPointUncertaintyEllipse.
        :rtype: int
        """
        return self._confidence

    @confidence.setter
    def confidence(self, confidence: int):
        """Sets the confidence of this Local2dPointUncertaintyEllipse.

        Indicates value of confidence.  # noqa: E501

        :param confidence: The confidence of this Local2dPointUncertaintyEllipse.
        :type confidence: int
        """
        if confidence is None:
            raise ValueError("Invalid value for `confidence`, must not be `None`")  # noqa: E501
        if confidence is not None and confidence > 100:  # noqa: E501
            raise ValueError("Invalid value for `confidence`, must be a value less than or equal to `100`")  # noqa: E501
        if confidence is not None and confidence < 0:  # noqa: E501
            raise ValueError("Invalid value for `confidence`, must be a value greater than or equal to `0`")  # noqa: E501

        self._confidence = confidence
