# coding: utf-8

"""
    Onshape REST API

    The Onshape REST API consumed by all clients.  # noqa: E501

    The version of the OpenAPI document: 1.106
    Contact: api-support@onshape.zendesk.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class BTExportModelFace1363(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 = {
        'orientation': 'bool',
        'area': 'float',
        'box': 'BTBoundingBox1052',
        'surface': 'BTSurfaceDescription1564',
        'loops': 'list[BTExportModelLoop1182]',
        'id': 'str',
        'bt_type': 'str'
    }

    attribute_map = {
        'orientation': 'orientation',
        'area': 'area',
        'box': 'box',
        'surface': 'surface',
        'loops': 'loops',
        'id': 'id',
        'bt_type': 'btType'
    }

    def __init__(self, orientation=None, area=None, box=None, surface=None, loops=None, id=None, bt_type=None):  # noqa: E501
        """BTExportModelFace1363 - a model defined in OpenAPI"""  # noqa: E501

        self._orientation = None
        self._area = None
        self._box = None
        self._surface = None
        self._loops = None
        self._id = None
        self._bt_type = None
        self.discriminator = None

        if orientation is not None:
            self.orientation = orientation
        if area is not None:
            self.area = area
        if box is not None:
            self.box = box
        if surface is not None:
            self.surface = surface
        if loops is not None:
            self.loops = loops
        if id is not None:
            self.id = id
        if bt_type is not None:
            self.bt_type = bt_type

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


        :return: The orientation of this BTExportModelFace1363.  # noqa: E501
        :rtype: bool
        """
        return self._orientation

    @orientation.setter
    def orientation(self, orientation):
        """Sets the orientation of this BTExportModelFace1363.


        :param orientation: The orientation of this BTExportModelFace1363.  # noqa: E501
        :type: bool
        """

        self._orientation = orientation

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


        :return: The area of this BTExportModelFace1363.  # noqa: E501
        :rtype: float
        """
        return self._area

    @area.setter
    def area(self, area):
        """Sets the area of this BTExportModelFace1363.


        :param area: The area of this BTExportModelFace1363.  # noqa: E501
        :type: float
        """

        self._area = area

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


        :return: The box of this BTExportModelFace1363.  # noqa: E501
        :rtype: BTBoundingBox1052
        """
        return self._box

    @box.setter
    def box(self, box):
        """Sets the box of this BTExportModelFace1363.


        :param box: The box of this BTExportModelFace1363.  # noqa: E501
        :type: BTBoundingBox1052
        """

        self._box = box

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


        :return: The surface of this BTExportModelFace1363.  # noqa: E501
        :rtype: BTSurfaceDescription1564
        """
        return self._surface

    @surface.setter
    def surface(self, surface):
        """Sets the surface of this BTExportModelFace1363.


        :param surface: The surface of this BTExportModelFace1363.  # noqa: E501
        :type: BTSurfaceDescription1564
        """

        self._surface = surface

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


        :return: The loops of this BTExportModelFace1363.  # noqa: E501
        :rtype: list[BTExportModelLoop1182]
        """
        return self._loops

    @loops.setter
    def loops(self, loops):
        """Sets the loops of this BTExportModelFace1363.


        :param loops: The loops of this BTExportModelFace1363.  # noqa: E501
        :type: list[BTExportModelLoop1182]
        """

        self._loops = loops

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


        :return: The id of this BTExportModelFace1363.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this BTExportModelFace1363.


        :param id: The id of this BTExportModelFace1363.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The bt_type of this BTExportModelFace1363.  # noqa: E501
        :rtype: str
        """
        return self._bt_type

    @bt_type.setter
    def bt_type(self, bt_type):
        """Sets the bt_type of this BTExportModelFace1363.


        :param bt_type: The bt_type of this BTExportModelFace1363.  # noqa: E501
        :type: str
        """

        self._bt_type = bt_type

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

        for attr, _ in six.iteritems(self.openapi_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

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

        return self.__dict__ == other.__dict__

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