# coding: utf-8

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

from typing import List, Dict  # noqa: F401

from swagger_server.models.base_model_ import Model
from swagger_server import util


class DeletionMethod(Model):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    def __init__(self, id: int=None, label: str=None, data_schema: object=None, description: str=None, created_at: datetime=None, updated_at: datetime=None):  # noqa: E501
        """DeletionMethod - a model defined in Swagger

        :param id: The id of this DeletionMethod.  # noqa: E501
        :type id: int
        :param label: The label of this DeletionMethod.  # noqa: E501
        :type label: str
        :param data_schema: The data_schema of this DeletionMethod.  # noqa: E501
        :type data_schema: object
        :param description: The description of this DeletionMethod.  # noqa: E501
        :type description: str
        :param created_at: The created_at of this DeletionMethod.  # noqa: E501
        :type created_at: datetime
        :param updated_at: The updated_at of this DeletionMethod.  # noqa: E501
        :type updated_at: datetime
        """
        self.swagger_types = {
            'id': int,
            'label': str,
            'data_schema': object,
            'description': str,
            'created_at': datetime,
            'updated_at': datetime
        }

        self.attribute_map = {
            'id': 'id',
            'label': 'label',
            'data_schema': 'data_schema',
            'description': 'description',
            'created_at': 'created_at',
            'updated_at': 'updated_at'
        }

        self._id = id
        self._label = label
        self._data_schema = data_schema
        self._description = description
        self._created_at = created_at
        self._updated_at = updated_at

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

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

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


        :return: The id of this DeletionMethod.
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id: int):
        """Sets the id of this DeletionMethod.


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

        self._id = id

    @property
    def label(self) -> str:
        """Gets the label of this DeletionMethod.


        :return: The label of this DeletionMethod.
        :rtype: str
        """
        return self._label

    @label.setter
    def label(self, label: str):
        """Sets the label of this DeletionMethod.


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

        self._label = label

    @property
    def data_schema(self) -> object:
        """Gets the data_schema of this DeletionMethod.


        :return: The data_schema of this DeletionMethod.
        :rtype: object
        """
        return self._data_schema

    @data_schema.setter
    def data_schema(self, data_schema: object):
        """Sets the data_schema of this DeletionMethod.


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

        self._data_schema = data_schema

    @property
    def description(self) -> str:
        """Gets the description of this DeletionMethod.


        :return: The description of this DeletionMethod.
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description: str):
        """Sets the description of this DeletionMethod.


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

        self._description = description

    @property
    def created_at(self) -> datetime:
        """Gets the created_at of this DeletionMethod.


        :return: The created_at of this DeletionMethod.
        :rtype: datetime
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at: datetime):
        """Sets the created_at of this DeletionMethod.


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

        self._created_at = created_at

    @property
    def updated_at(self) -> datetime:
        """Gets the updated_at of this DeletionMethod.


        :return: The updated_at of this DeletionMethod.
        :rtype: datetime
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at: datetime):
        """Sets the updated_at of this DeletionMethod.


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

        self._updated_at = updated_at
