# coding: utf-8

"""
    validateapi

    The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.  # noqa: E501

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


import pprint
import re  # noqa: F401

import six


class GetGenderResponse(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 = {
        'successful': 'bool',
        'gender': 'str'
    }

    attribute_map = {
        'successful': 'Successful',
        'gender': 'Gender'
    }

    def __init__(self, successful=None, gender=None):  # noqa: E501
        """GetGenderResponse - a model defined in Swagger"""  # noqa: E501

        self._successful = None
        self._gender = None
        self.discriminator = None

        if successful is not None:
            self.successful = successful
        if gender is not None:
            self.gender = gender

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

        True if successful, false otherwise  # noqa: E501

        :return: The successful of this GetGenderResponse.  # noqa: E501
        :rtype: bool
        """
        return self._successful

    @successful.setter
    def successful(self, successful):
        """Sets the successful of this GetGenderResponse.

        True if successful, false otherwise  # noqa: E501

        :param successful: The successful of this GetGenderResponse.  # noqa: E501
        :type: bool
        """

        self._successful = successful

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

        Gender for this name; possible values are Male, Female, and Neutral (can be applied to Male or Female)  # noqa: E501

        :return: The gender of this GetGenderResponse.  # noqa: E501
        :rtype: str
        """
        return self._gender

    @gender.setter
    def gender(self, gender):
        """Sets the gender of this GetGenderResponse.

        Gender for this name; possible values are Male, Female, and Neutral (can be applied to Male or Female)  # noqa: E501

        :param gender: The gender of this GetGenderResponse.  # noqa: E501
        :type: str
        """

        self._gender = gender

    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(GetGenderResponse, 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, GetGenderResponse):
            return False

        return self.__dict__ == other.__dict__

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