# coding: utf-8

"""
    SCORM Cloud Rest API

    REST API used for SCORM Cloud integrations.  # noqa: E501

    OpenAPI spec version: 2.0
    Contact: systems@rusticisoftware.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


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

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'ip_address': 'bool',
        'fingerprint': 'bool',
        'expiry': 'int',
        'sliding_expiry': 'int'
    }

    attribute_map = {
        'ip_address': 'ipAddress',
        'fingerprint': 'fingerprint',
        'expiry': 'expiry',
        'sliding_expiry': 'slidingExpiry'
    }

    def __init__(self, ip_address=None, fingerprint=None, expiry=None, sliding_expiry=None):  # noqa: E501
        """LaunchAuthOptionsSchema - a model defined in Swagger"""  # noqa: E501

        self._ip_address = None
        self._fingerprint = None
        self._expiry = None
        self._sliding_expiry = None
        self.discriminator = None

        if ip_address is not None:
            self.ip_address = ip_address
        if fingerprint is not None:
            self.fingerprint = fingerprint
        if expiry is not None:
            self.expiry = expiry
        if sliding_expiry is not None:
            self.sliding_expiry = sliding_expiry

    @property
    def ip_address(self):
        """Gets the ip_address of this LaunchAuthOptionsSchema.  # noqa: E501

        :return: The ip_address of this LaunchAuthOptionsSchema.  # noqa: E501
        :rtype: bool
        """
        return self._ip_address

    @ip_address.setter
    def ip_address(self, ip_address):
        """Sets the ip_address of this LaunchAuthOptionsSchema.

        :param ip_address: The ip_address of this LaunchAuthOptionsSchema.  # noqa: E501
        :type: bool
        """

        self._ip_address = ip_address

    @property
    def fingerprint(self):
        """Gets the fingerprint of this LaunchAuthOptionsSchema.  # noqa: E501

        :return: The fingerprint of this LaunchAuthOptionsSchema.  # noqa: E501
        :rtype: bool
        """
        return self._fingerprint

    @fingerprint.setter
    def fingerprint(self, fingerprint):
        """Sets the fingerprint of this LaunchAuthOptionsSchema.

        :param fingerprint: The fingerprint of this LaunchAuthOptionsSchema.  # noqa: E501
        :type: bool
        """

        self._fingerprint = fingerprint

    @property
    def expiry(self):
        """Gets the expiry of this LaunchAuthOptionsSchema.  # noqa: E501

        :return: The expiry of this LaunchAuthOptionsSchema.  # noqa: E501
        :rtype: int
        """
        return self._expiry

    @expiry.setter
    def expiry(self, expiry):
        """Sets the expiry of this LaunchAuthOptionsSchema.

        :param expiry: The expiry of this LaunchAuthOptionsSchema.  # noqa: E501
        :type: int
        """

        self._expiry = expiry

    @property
    def sliding_expiry(self):
        """Gets the sliding_expiry of this LaunchAuthOptionsSchema.  # noqa: E501

        :return: The sliding_expiry of this LaunchAuthOptionsSchema.  # noqa: E501
        :rtype: int
        """
        return self._sliding_expiry

    @sliding_expiry.setter
    def sliding_expiry(self, sliding_expiry):
        """Sets the sliding_expiry of this LaunchAuthOptionsSchema.

        :param sliding_expiry: The sliding_expiry of this LaunchAuthOptionsSchema.  # noqa: E501
        :type: int
        """

        self._sliding_expiry = sliding_expiry

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(LaunchAuthOptionsSchema, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, LaunchAuthOptionsSchema):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
