from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from api_invoker_management.models.base_model import Model
from api_invoker_management import util


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

    Do not edit the class manually.
    """

    def __init__(self, semi_major=None, semi_minor=None, orientation_major=None):  # noqa: E501
        """UncertaintyEllipse - a model defined in OpenAPI

        :param semi_major: The semi_major of this UncertaintyEllipse.  # noqa: E501
        :type semi_major: float
        :param semi_minor: The semi_minor of this UncertaintyEllipse.  # noqa: E501
        :type semi_minor: float
        :param orientation_major: The orientation_major of this UncertaintyEllipse.  # noqa: E501
        :type orientation_major: int
        """
        self.openapi_types = {
            'semi_major': float,
            'semi_minor': float,
            'orientation_major': int
        }

        self.attribute_map = {
            'semi_major': 'semiMajor',
            'semi_minor': 'semiMinor',
            'orientation_major': 'orientationMajor'
        }

        self._semi_major = semi_major
        self._semi_minor = semi_minor
        self._orientation_major = orientation_major

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

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

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

        Indicates value of uncertainty.  # noqa: E501

        :return: The semi_major of this UncertaintyEllipse.
        :rtype: float
        """
        return self._semi_major

    @semi_major.setter
    def semi_major(self, semi_major: float):
        """Sets the semi_major of this UncertaintyEllipse.

        Indicates value of uncertainty.  # noqa: E501

        :param semi_major: The semi_major of this UncertaintyEllipse.
        :type semi_major: float
        """
        if semi_major is None:
            raise ValueError("Invalid value for `semi_major`, must not be `None`")  # noqa: E501
        if semi_major is not None and semi_major < 0:  # noqa: E501
            raise ValueError("Invalid value for `semi_major`, must be a value greater than or equal to `0`")  # noqa: E501

        self._semi_major = semi_major

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

        Indicates value of uncertainty.  # noqa: E501

        :return: The semi_minor of this UncertaintyEllipse.
        :rtype: float
        """
        return self._semi_minor

    @semi_minor.setter
    def semi_minor(self, semi_minor: float):
        """Sets the semi_minor of this UncertaintyEllipse.

        Indicates value of uncertainty.  # noqa: E501

        :param semi_minor: The semi_minor of this UncertaintyEllipse.
        :type semi_minor: float
        """
        if semi_minor is None:
            raise ValueError("Invalid value for `semi_minor`, must not be `None`")  # noqa: E501
        if semi_minor is not None and semi_minor < 0:  # noqa: E501
            raise ValueError("Invalid value for `semi_minor`, must be a value greater than or equal to `0`")  # noqa: E501

        self._semi_minor = semi_minor

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

        Indicates value of orientation angle.  # noqa: E501

        :return: The orientation_major of this UncertaintyEllipse.
        :rtype: int
        """
        return self._orientation_major

    @orientation_major.setter
    def orientation_major(self, orientation_major: int):
        """Sets the orientation_major of this UncertaintyEllipse.

        Indicates value of orientation angle.  # noqa: E501

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

        self._orientation_major = orientation_major
