# 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 BTAssemblyDefinitionInfo(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 = {
        'sub_assemblies': 'list[BTSubAssemblyInfo]',
        'parts': 'list[BTAssemblyPartsInfo]',
        'root_assembly': 'BTRootAssemblyInfo',
        'part_studio_features': 'list[BTAssemblyPSFeatureInfo]'
    }

    attribute_map = {
        'sub_assemblies': 'subAssemblies',
        'parts': 'parts',
        'root_assembly': 'rootAssembly',
        'part_studio_features': 'partStudioFeatures'
    }

    def __init__(self, sub_assemblies=None, parts=None, root_assembly=None, part_studio_features=None):  # noqa: E501
        """BTAssemblyDefinitionInfo - a model defined in OpenAPI"""  # noqa: E501

        self._sub_assemblies = None
        self._parts = None
        self._root_assembly = None
        self._part_studio_features = None
        self.discriminator = None

        if sub_assemblies is not None:
            self.sub_assemblies = sub_assemblies
        if parts is not None:
            self.parts = parts
        if root_assembly is not None:
            self.root_assembly = root_assembly
        if part_studio_features is not None:
            self.part_studio_features = part_studio_features

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


        :return: The sub_assemblies of this BTAssemblyDefinitionInfo.  # noqa: E501
        :rtype: list[BTSubAssemblyInfo]
        """
        return self._sub_assemblies

    @sub_assemblies.setter
    def sub_assemblies(self, sub_assemblies):
        """Sets the sub_assemblies of this BTAssemblyDefinitionInfo.


        :param sub_assemblies: The sub_assemblies of this BTAssemblyDefinitionInfo.  # noqa: E501
        :type: list[BTSubAssemblyInfo]
        """

        self._sub_assemblies = sub_assemblies

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


        :return: The parts of this BTAssemblyDefinitionInfo.  # noqa: E501
        :rtype: list[BTAssemblyPartsInfo]
        """
        return self._parts

    @parts.setter
    def parts(self, parts):
        """Sets the parts of this BTAssemblyDefinitionInfo.


        :param parts: The parts of this BTAssemblyDefinitionInfo.  # noqa: E501
        :type: list[BTAssemblyPartsInfo]
        """

        self._parts = parts

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


        :return: The root_assembly of this BTAssemblyDefinitionInfo.  # noqa: E501
        :rtype: BTRootAssemblyInfo
        """
        return self._root_assembly

    @root_assembly.setter
    def root_assembly(self, root_assembly):
        """Sets the root_assembly of this BTAssemblyDefinitionInfo.


        :param root_assembly: The root_assembly of this BTAssemblyDefinitionInfo.  # noqa: E501
        :type: BTRootAssemblyInfo
        """

        self._root_assembly = root_assembly

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


        :return: The part_studio_features of this BTAssemblyDefinitionInfo.  # noqa: E501
        :rtype: list[BTAssemblyPSFeatureInfo]
        """
        return self._part_studio_features

    @part_studio_features.setter
    def part_studio_features(self, part_studio_features):
        """Sets the part_studio_features of this BTAssemblyDefinitionInfo.


        :param part_studio_features: The part_studio_features of this BTAssemblyDefinitionInfo.  # noqa: E501
        :type: list[BTAssemblyPSFeatureInfo]
        """

        self._part_studio_features = part_studio_features

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

        return self.__dict__ == other.__dict__

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