# coding: utf-8

"""
    Aron API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by: https://openapi-generator.tech
"""


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


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

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'encryption_methods': 'list[SamlEncryptionMethod]',
        'key_info': 'SamlKeyInfo',
        'use': 'str'
    }

    attribute_map = {
        'encryption_methods': 'EncryptionMethods',
        'key_info': 'KeyInfo',
        'use': 'Use'
    }

    def __init__(self, encryption_methods=None, key_info=None, use=None, local_vars_configuration=None):  # noqa: E501
        """SamlKeyDescriptor - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._encryption_methods = None
        self._key_info = None
        self._use = None
        self.discriminator = None

        if encryption_methods is not None:
            self.encryption_methods = encryption_methods
        if key_info is not None:
            self.key_info = key_info
        if use is not None:
            self.use = use

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


        :return: The encryption_methods of this SamlKeyDescriptor.  # noqa: E501
        :rtype: list[SamlEncryptionMethod]
        """
        return self._encryption_methods

    @encryption_methods.setter
    def encryption_methods(self, encryption_methods):
        """Sets the encryption_methods of this SamlKeyDescriptor.


        :param encryption_methods: The encryption_methods of this SamlKeyDescriptor.  # noqa: E501
        :type encryption_methods: list[SamlEncryptionMethod]
        """

        self._encryption_methods = encryption_methods

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


        :return: The key_info of this SamlKeyDescriptor.  # noqa: E501
        :rtype: SamlKeyInfo
        """
        return self._key_info

    @key_info.setter
    def key_info(self, key_info):
        """Sets the key_info of this SamlKeyDescriptor.


        :param key_info: The key_info of this SamlKeyDescriptor.  # noqa: E501
        :type key_info: SamlKeyInfo
        """

        self._key_info = key_info

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


        :return: The use of this SamlKeyDescriptor.  # noqa: E501
        :rtype: str
        """
        return self._use

    @use.setter
    def use(self, use):
        """Sets the use of this SamlKeyDescriptor.


        :param use: The use of this SamlKeyDescriptor.  # noqa: E501
        :type use: str
        """

        self._use = use

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

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(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, SamlKeyDescriptor):
            return False

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
