# coding: utf-8

"""
    id

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class GetIdentityProviderSAMLResponse(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 = {
        'attribute_mapping': 'str',
        'certificate': 'str',
        'claims_propagation_config': 'ClaimsPropagationConfigForGetIdentityProviderSAMLOutput',
        'enabled': 'bool',
        'enabled_encryption': 'bool',
        'enabled_sign': 'bool',
        'id_attribute': 'str',
        'idp_metadata': 'str',
        'name': 'str',
        'provider': 'str',
        'provider_options': 'ProviderOptionsForGetIdentityProviderSAMLOutput',
        'uid': 'str'
    }

    attribute_map = {
        'attribute_mapping': 'AttributeMapping',
        'certificate': 'Certificate',
        'claims_propagation_config': 'ClaimsPropagationConfig',
        'enabled': 'Enabled',
        'enabled_encryption': 'EnabledEncryption',
        'enabled_sign': 'EnabledSign',
        'id_attribute': 'IdAttribute',
        'idp_metadata': 'IdpMetadata',
        'name': 'Name',
        'provider': 'Provider',
        'provider_options': 'ProviderOptions',
        'uid': 'Uid'
    }

    def __init__(self, attribute_mapping=None, certificate=None, claims_propagation_config=None, enabled=None, enabled_encryption=None, enabled_sign=None, id_attribute=None, idp_metadata=None, name=None, provider=None, provider_options=None, uid=None, _configuration=None):  # noqa: E501
        """GetIdentityProviderSAMLResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._attribute_mapping = None
        self._certificate = None
        self._claims_propagation_config = None
        self._enabled = None
        self._enabled_encryption = None
        self._enabled_sign = None
        self._id_attribute = None
        self._idp_metadata = None
        self._name = None
        self._provider = None
        self._provider_options = None
        self._uid = None
        self.discriminator = None

        if attribute_mapping is not None:
            self.attribute_mapping = attribute_mapping
        if certificate is not None:
            self.certificate = certificate
        if claims_propagation_config is not None:
            self.claims_propagation_config = claims_propagation_config
        if enabled is not None:
            self.enabled = enabled
        if enabled_encryption is not None:
            self.enabled_encryption = enabled_encryption
        if enabled_sign is not None:
            self.enabled_sign = enabled_sign
        if id_attribute is not None:
            self.id_attribute = id_attribute
        if idp_metadata is not None:
            self.idp_metadata = idp_metadata
        if name is not None:
            self.name = name
        if provider is not None:
            self.provider = provider
        if provider_options is not None:
            self.provider_options = provider_options
        if uid is not None:
            self.uid = uid

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


        :return: The attribute_mapping of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: str
        """
        return self._attribute_mapping

    @attribute_mapping.setter
    def attribute_mapping(self, attribute_mapping):
        """Sets the attribute_mapping of this GetIdentityProviderSAMLResponse.


        :param attribute_mapping: The attribute_mapping of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: str
        """

        self._attribute_mapping = attribute_mapping

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


        :return: The certificate of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: str
        """
        return self._certificate

    @certificate.setter
    def certificate(self, certificate):
        """Sets the certificate of this GetIdentityProviderSAMLResponse.


        :param certificate: The certificate of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: str
        """

        self._certificate = certificate

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


        :return: The claims_propagation_config of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: ClaimsPropagationConfigForGetIdentityProviderSAMLOutput
        """
        return self._claims_propagation_config

    @claims_propagation_config.setter
    def claims_propagation_config(self, claims_propagation_config):
        """Sets the claims_propagation_config of this GetIdentityProviderSAMLResponse.


        :param claims_propagation_config: The claims_propagation_config of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: ClaimsPropagationConfigForGetIdentityProviderSAMLOutput
        """

        self._claims_propagation_config = claims_propagation_config

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


        :return: The enabled of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: bool
        """
        return self._enabled

    @enabled.setter
    def enabled(self, enabled):
        """Sets the enabled of this GetIdentityProviderSAMLResponse.


        :param enabled: The enabled of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: bool
        """

        self._enabled = enabled

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


        :return: The enabled_encryption of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: bool
        """
        return self._enabled_encryption

    @enabled_encryption.setter
    def enabled_encryption(self, enabled_encryption):
        """Sets the enabled_encryption of this GetIdentityProviderSAMLResponse.


        :param enabled_encryption: The enabled_encryption of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: bool
        """

        self._enabled_encryption = enabled_encryption

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


        :return: The enabled_sign of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: bool
        """
        return self._enabled_sign

    @enabled_sign.setter
    def enabled_sign(self, enabled_sign):
        """Sets the enabled_sign of this GetIdentityProviderSAMLResponse.


        :param enabled_sign: The enabled_sign of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: bool
        """

        self._enabled_sign = enabled_sign

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


        :return: The id_attribute of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: str
        """
        return self._id_attribute

    @id_attribute.setter
    def id_attribute(self, id_attribute):
        """Sets the id_attribute of this GetIdentityProviderSAMLResponse.


        :param id_attribute: The id_attribute of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: str
        """

        self._id_attribute = id_attribute

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


        :return: The idp_metadata of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: str
        """
        return self._idp_metadata

    @idp_metadata.setter
    def idp_metadata(self, idp_metadata):
        """Sets the idp_metadata of this GetIdentityProviderSAMLResponse.


        :param idp_metadata: The idp_metadata of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: str
        """

        self._idp_metadata = idp_metadata

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


        :return: The name of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: str
        """
        return self._name

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


        :param name: The name of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The provider of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: str
        """
        return self._provider

    @provider.setter
    def provider(self, provider):
        """Sets the provider of this GetIdentityProviderSAMLResponse.


        :param provider: The provider of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: str
        """

        self._provider = provider

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


        :return: The provider_options of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: ProviderOptionsForGetIdentityProviderSAMLOutput
        """
        return self._provider_options

    @provider_options.setter
    def provider_options(self, provider_options):
        """Sets the provider_options of this GetIdentityProviderSAMLResponse.


        :param provider_options: The provider_options of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: ProviderOptionsForGetIdentityProviderSAMLOutput
        """

        self._provider_options = provider_options

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


        :return: The uid of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :rtype: str
        """
        return self._uid

    @uid.setter
    def uid(self, uid):
        """Sets the uid of this GetIdentityProviderSAMLResponse.


        :param uid: The uid of this GetIdentityProviderSAMLResponse.  # noqa: E501
        :type: str
        """

        self._uid = uid

    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(GetIdentityProviderSAMLResponse, 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, GetIdentityProviderSAMLResponse):
            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, GetIdentityProviderSAMLResponse):
            return True

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