# coding: utf-8

"""
    CartoVista REST API

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

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

import pprint
import re  # noqa: F401

import six

class PropertiesOfComponentLayout(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 = {
        'map': 'OneOfPropertiesOfComponentLayoutMap',
        'layers': 'OneOfPropertiesOfComponentLayoutLayers',
        'info': 'OneOfPropertiesOfComponentLayoutInfo',
        'data': 'OneOfPropertiesOfComponentLayoutData',
        'legend': 'OneOfPropertiesOfComponentLayoutLegend',
        'chart': 'OneOfPropertiesOfComponentLayoutChart',
        'story': 'OneOfPropertiesOfComponentLayoutStory',
        'routing': 'OneOfPropertiesOfComponentLayoutRouting',
        'profile': 'OneOfPropertiesOfComponentLayoutProfile',
        'time_view': 'OneOfPropertiesOfComponentLayoutTimeView',
        'time_animation_controller': 'OneOfPropertiesOfComponentLayoutTimeAnimationController',
        'composite_scoring': 'OneOfPropertiesOfComponentLayoutCompositeScoring',
        'poi_analysis': 'OneOfPropertiesOfComponentLayoutPoiAnalysis'
    }

    attribute_map = {
        'map': 'map',
        'layers': 'layers',
        'info': 'info',
        'data': 'data',
        'legend': 'legend',
        'chart': 'chart',
        'story': 'story',
        'routing': 'routing',
        'profile': 'profile',
        'time_view': 'timeView',
        'time_animation_controller': 'timeAnimationController',
        'composite_scoring': 'compositeScoring',
        'poi_analysis': 'poiAnalysis'
    }

    def __init__(self, map=None, layers=None, info=None, data=None, legend=None, chart=None, story=None, routing=None, profile=None, time_view=None, time_animation_controller=None, composite_scoring=None, poi_analysis=None):  # noqa: E501
        """PropertiesOfComponentLayout - a model defined in Swagger"""  # noqa: E501
        self._map = None
        self._layers = None
        self._info = None
        self._data = None
        self._legend = None
        self._chart = None
        self._story = None
        self._routing = None
        self._profile = None
        self._time_view = None
        self._time_animation_controller = None
        self._composite_scoring = None
        self._poi_analysis = None
        self.discriminator = None
        if map is not None:
            self.map = map
        if layers is not None:
            self.layers = layers
        if info is not None:
            self.info = info
        if data is not None:
            self.data = data
        if legend is not None:
            self.legend = legend
        if chart is not None:
            self.chart = chart
        if story is not None:
            self.story = story
        if routing is not None:
            self.routing = routing
        if profile is not None:
            self.profile = profile
        if time_view is not None:
            self.time_view = time_view
        if time_animation_controller is not None:
            self.time_animation_controller = time_animation_controller
        if composite_scoring is not None:
            self.composite_scoring = composite_scoring
        if poi_analysis is not None:
            self.poi_analysis = poi_analysis

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


        :return: The map of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutMap
        """
        return self._map

    @map.setter
    def map(self, map):
        """Sets the map of this PropertiesOfComponentLayout.


        :param map: The map of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutMap
        """

        self._map = map

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


        :return: The layers of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutLayers
        """
        return self._layers

    @layers.setter
    def layers(self, layers):
        """Sets the layers of this PropertiesOfComponentLayout.


        :param layers: The layers of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutLayers
        """

        self._layers = layers

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


        :return: The info of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutInfo
        """
        return self._info

    @info.setter
    def info(self, info):
        """Sets the info of this PropertiesOfComponentLayout.


        :param info: The info of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutInfo
        """

        self._info = info

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


        :return: The data of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutData
        """
        return self._data

    @data.setter
    def data(self, data):
        """Sets the data of this PropertiesOfComponentLayout.


        :param data: The data of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutData
        """

        self._data = data

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


        :return: The legend of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutLegend
        """
        return self._legend

    @legend.setter
    def legend(self, legend):
        """Sets the legend of this PropertiesOfComponentLayout.


        :param legend: The legend of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutLegend
        """

        self._legend = legend

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


        :return: The chart of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutChart
        """
        return self._chart

    @chart.setter
    def chart(self, chart):
        """Sets the chart of this PropertiesOfComponentLayout.


        :param chart: The chart of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutChart
        """

        self._chart = chart

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


        :return: The story of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutStory
        """
        return self._story

    @story.setter
    def story(self, story):
        """Sets the story of this PropertiesOfComponentLayout.


        :param story: The story of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutStory
        """

        self._story = story

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


        :return: The routing of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutRouting
        """
        return self._routing

    @routing.setter
    def routing(self, routing):
        """Sets the routing of this PropertiesOfComponentLayout.


        :param routing: The routing of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutRouting
        """

        self._routing = routing

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


        :return: The profile of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutProfile
        """
        return self._profile

    @profile.setter
    def profile(self, profile):
        """Sets the profile of this PropertiesOfComponentLayout.


        :param profile: The profile of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutProfile
        """

        self._profile = profile

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


        :return: The time_view of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutTimeView
        """
        return self._time_view

    @time_view.setter
    def time_view(self, time_view):
        """Sets the time_view of this PropertiesOfComponentLayout.


        :param time_view: The time_view of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutTimeView
        """

        self._time_view = time_view

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


        :return: The time_animation_controller of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutTimeAnimationController
        """
        return self._time_animation_controller

    @time_animation_controller.setter
    def time_animation_controller(self, time_animation_controller):
        """Sets the time_animation_controller of this PropertiesOfComponentLayout.


        :param time_animation_controller: The time_animation_controller of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutTimeAnimationController
        """

        self._time_animation_controller = time_animation_controller

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


        :return: The composite_scoring of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutCompositeScoring
        """
        return self._composite_scoring

    @composite_scoring.setter
    def composite_scoring(self, composite_scoring):
        """Sets the composite_scoring of this PropertiesOfComponentLayout.


        :param composite_scoring: The composite_scoring of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutCompositeScoring
        """

        self._composite_scoring = composite_scoring

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


        :return: The poi_analysis of this PropertiesOfComponentLayout.  # noqa: E501
        :rtype: OneOfPropertiesOfComponentLayoutPoiAnalysis
        """
        return self._poi_analysis

    @poi_analysis.setter
    def poi_analysis(self, poi_analysis):
        """Sets the poi_analysis of this PropertiesOfComponentLayout.


        :param poi_analysis: The poi_analysis of this PropertiesOfComponentLayout.  # noqa: E501
        :type: OneOfPropertiesOfComponentLayoutPoiAnalysis
        """

        self._poi_analysis = poi_analysis

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

        return self.__dict__ == other.__dict__

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