# 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 PageState(Model):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    def __init__(self, learner_keycloak_id: str=None, learner_username: str=None, page_number: int=None):  # noqa: E501
        """PageState - a model defined in Swagger

        :param learner_keycloak_id: The learner_keycloak_id of this PageState.  # noqa: E501
        :type learner_keycloak_id: str
        :param learner_username: The learner_username of this PageState.  # noqa: E501
        :type learner_username: str
        :param page_number: The page_number of this PageState.  # noqa: E501
        :type page_number: int
        """
        self.swagger_types = {
            'learner_keycloak_id': str,
            'learner_username': str,
            'page_number': int
        }

        self.attribute_map = {
            'learner_keycloak_id': 'learnerKeycloakId',
            'learner_username': 'learnerUsername',
            'page_number': 'pageNumber'
        }

        self._learner_keycloak_id = learner_keycloak_id
        self._learner_username = learner_username
        self._page_number = page_number

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

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

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

        The keycloak GUID for the learner (the subject field of the OAUTH object)  # noqa: E501

        :return: The learner_keycloak_id of this PageState.
        :rtype: str
        """
        return self._learner_keycloak_id

    @learner_keycloak_id.setter
    def learner_keycloak_id(self, learner_keycloak_id: str):
        """Sets the learner_keycloak_id of this PageState.

        The keycloak GUID for the learner (the subject field of the OAUTH object)  # noqa: E501

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

        self._learner_keycloak_id = learner_keycloak_id

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

        The learner's login name  # noqa: E501

        :return: The learner_username of this PageState.
        :rtype: str
        """
        return self._learner_username

    @learner_username.setter
    def learner_username(self, learner_username: str):
        """Sets the learner_username of this PageState.

        The learner's login name  # noqa: E501

        :param learner_username: The learner_username of this PageState.
        :type learner_username: str
        """

        self._learner_username = learner_username

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

        Page number in the UI  # noqa: E501

        :return: The page_number of this PageState.
        :rtype: int
        """
        return self._page_number

    @page_number.setter
    def page_number(self, page_number: int):
        """Sets the page_number of this PageState.

        Page number in the UI  # noqa: E501

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

        self._page_number = page_number
