from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from chromestatus_openapi.models.base_model import Model
from chromestatus_openapi import util


class Action(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, url=None, prerequisites=None):  # noqa: E501
        """Action - a model defined in OpenAPI

        :param name: The name of this Action.  # noqa: E501
        :type name: str
        :param url: The url of this Action.  # noqa: E501
        :type url: str
        :param prerequisites: The prerequisites of this Action.  # noqa: E501
        :type prerequisites: List[str]
        """
        self.openapi_types = {
            'name': str,
            'url': str,
            'prerequisites': List[str]
        }

        self.attribute_map = {
            'name': 'name',
            'url': 'url',
            'prerequisites': 'prerequisites'
        }

        self._name = name
        self._url = url
        self._prerequisites = prerequisites

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

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

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


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

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


        :param name: The name of this Action.
        :type name: str
        """

        self._name = name

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


        :return: The url of this Action.
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url: str):
        """Sets the url of this Action.


        :param url: The url of this Action.
        :type url: str
        """

        self._url = url

    @property
    def prerequisites(self) -> List[str]:
        """Gets the prerequisites of this Action.


        :return: The prerequisites of this Action.
        :rtype: List[str]
        """
        return self._prerequisites

    @prerequisites.setter
    def prerequisites(self, prerequisites: List[str]):
        """Sets the prerequisites of this Action.


        :param prerequisites: The prerequisites of this Action.
        :type prerequisites: List[str]
        """

        self._prerequisites = prerequisites
