# coding: utf-8

"""
    Onshape REST API

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

    OpenAPI spec version: 1.94
    Contact: api-support@onshape.zendesk.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class BTGraphicsAppearance(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 = {
        'non_trivial': 'bool',
        'reset': 'bool',
        'color': 'list[str]',
        'opacity': 'int',
        'type_id': 'int',
        'export_type_name': 'str',
        'connection_source': 'BTConnection',
        'unknown_class': 'bool'
    }

    attribute_map = {
        'non_trivial': 'nonTrivial',
        'reset': 'reset',
        'color': 'color',
        'opacity': 'opacity',
        'type_id': 'typeId',
        'export_type_name': 'exportTypeName',
        'connection_source': 'connectionSource',
        'unknown_class': 'unknownClass'
    }

    def __init__(self, non_trivial=None, reset=None, color=None, opacity=None, type_id=None, export_type_name=None, connection_source=None, unknown_class=None):  # noqa: E501
        """BTGraphicsAppearance - a model defined in OpenAPI"""  # noqa: E501

        self._non_trivial = None
        self._reset = None
        self._color = None
        self._opacity = None
        self._type_id = None
        self._export_type_name = None
        self._connection_source = None
        self._unknown_class = None
        self.discriminator = None

        if non_trivial is not None:
            self.non_trivial = non_trivial
        if reset is not None:
            self.reset = reset
        if color is not None:
            self.color = color
        if opacity is not None:
            self.opacity = opacity
        if type_id is not None:
            self.type_id = type_id
        if export_type_name is not None:
            self.export_type_name = export_type_name
        if connection_source is not None:
            self.connection_source = connection_source
        if unknown_class is not None:
            self.unknown_class = unknown_class

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


        :return: The non_trivial of this BTGraphicsAppearance.  # noqa: E501
        :rtype: bool
        """
        return self._non_trivial

    @non_trivial.setter
    def non_trivial(self, non_trivial):
        """Sets the non_trivial of this BTGraphicsAppearance.


        :param non_trivial: The non_trivial of this BTGraphicsAppearance.  # noqa: E501
        :type: bool
        """

        self._non_trivial = non_trivial

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


        :return: The reset of this BTGraphicsAppearance.  # noqa: E501
        :rtype: bool
        """
        return self._reset

    @reset.setter
    def reset(self, reset):
        """Sets the reset of this BTGraphicsAppearance.


        :param reset: The reset of this BTGraphicsAppearance.  # noqa: E501
        :type: bool
        """

        self._reset = reset

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


        :return: The color of this BTGraphicsAppearance.  # noqa: E501
        :rtype: list[str]
        """
        return self._color

    @color.setter
    def color(self, color):
        """Sets the color of this BTGraphicsAppearance.


        :param color: The color of this BTGraphicsAppearance.  # noqa: E501
        :type: list[str]
        """

        self._color = color

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


        :return: The opacity of this BTGraphicsAppearance.  # noqa: E501
        :rtype: int
        """
        return self._opacity

    @opacity.setter
    def opacity(self, opacity):
        """Sets the opacity of this BTGraphicsAppearance.


        :param opacity: The opacity of this BTGraphicsAppearance.  # noqa: E501
        :type: int
        """

        self._opacity = opacity

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


        :return: The type_id of this BTGraphicsAppearance.  # noqa: E501
        :rtype: int
        """
        return self._type_id

    @type_id.setter
    def type_id(self, type_id):
        """Sets the type_id of this BTGraphicsAppearance.


        :param type_id: The type_id of this BTGraphicsAppearance.  # noqa: E501
        :type: int
        """

        self._type_id = type_id

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


        :return: The export_type_name of this BTGraphicsAppearance.  # noqa: E501
        :rtype: str
        """
        return self._export_type_name

    @export_type_name.setter
    def export_type_name(self, export_type_name):
        """Sets the export_type_name of this BTGraphicsAppearance.


        :param export_type_name: The export_type_name of this BTGraphicsAppearance.  # noqa: E501
        :type: str
        """

        self._export_type_name = export_type_name

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


        :return: The connection_source of this BTGraphicsAppearance.  # noqa: E501
        :rtype: BTConnection
        """
        return self._connection_source

    @connection_source.setter
    def connection_source(self, connection_source):
        """Sets the connection_source of this BTGraphicsAppearance.


        :param connection_source: The connection_source of this BTGraphicsAppearance.  # noqa: E501
        :type: BTConnection
        """

        self._connection_source = connection_source

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


        :return: The unknown_class of this BTGraphicsAppearance.  # noqa: E501
        :rtype: bool
        """
        return self._unknown_class

    @unknown_class.setter
    def unknown_class(self, unknown_class):
        """Sets the unknown_class of this BTGraphicsAppearance.


        :param unknown_class: The unknown_class of this BTGraphicsAppearance.  # noqa: E501
        :type: bool
        """

        self._unknown_class = unknown_class

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

        return self.__dict__ == other.__dict__

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