# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from openapi_server.models.base_model_ import Model
from openapi_server import util


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

    Do not edit the class manually.
    """

    def __init__(self, name=None, osm_id=None, osm_type=None):  # noqa: E501
        """WaterCreation - a model defined in OpenAPI

        :param name: The name of this WaterCreation.  # noqa: E501
        :type name: str
        :param osm_id: The osm_id of this WaterCreation.  # noqa: E501
        :type osm_id: int
        :param osm_type: The osm_type of this WaterCreation.  # noqa: E501
        :type osm_type: str
        """
        self.openapi_types = {
            'name': str,
            'osm_id': int,
            'osm_type': str
        }

        self.attribute_map = {
            'name': 'name',
            'osm_id': 'osmId',
            'osm_type': 'osmType'
        }

        self._name = name
        self._osm_id = osm_id
        self._osm_type = osm_type

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

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

    @property
    def name(self):
        """Gets the name of this WaterCreation.


        :return: The name of this WaterCreation.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this WaterCreation.


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

        self._name = name

    @property
    def osm_id(self):
        """Gets the osm_id of this WaterCreation.


        :return: The osm_id of this WaterCreation.
        :rtype: int
        """
        return self._osm_id

    @osm_id.setter
    def osm_id(self, osm_id):
        """Sets the osm_id of this WaterCreation.


        :param osm_id: The osm_id of this WaterCreation.
        :type osm_id: int
        """

        self._osm_id = osm_id

    @property
    def osm_type(self):
        """Gets the osm_type of this WaterCreation.


        :return: The osm_type of this WaterCreation.
        :rtype: str
        """
        return self._osm_type

    @osm_type.setter
    def osm_type(self, osm_type):
        """Sets the osm_type of this WaterCreation.


        :param osm_type: The osm_type of this WaterCreation.
        :type osm_type: str
        """
        if osm_type is not None and len(osm_type) > 1:
            raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`")  # noqa: E501
        if osm_type is not None and len(osm_type) < 1:
            raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`")  # noqa: E501

        self._osm_type = osm_type
