# 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 LayerCommonSettingsUpdateParameter(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 = {
        'alias': 'OneOfLayerCommonSettingsUpdateParameterAlias',
        'labels': 'OneOfLayerCommonSettingsUpdateParameterLabels',
        'general': 'OneOfLayerCommonSettingsUpdateParameterGeneral',
        'interactivity': 'OneOfLayerCommonSettingsUpdateParameterInteractivity',
        'legend': 'OneOfLayerCommonSettingsUpdateParameterLegend',
        'rendering': 'OneOfLayerCommonSettingsUpdateParameterRendering',
        'visibility_ranges': 'OneOfLayerCommonSettingsUpdateParameterVisibilityRanges',
        'effects': 'OneOfLayerCommonSettingsUpdateParameterEffects'
    }

    attribute_map = {
        'alias': 'alias',
        'labels': 'labels',
        'general': 'general',
        'interactivity': 'interactivity',
        'legend': 'legend',
        'rendering': 'rendering',
        'visibility_ranges': 'visibilityRanges',
        'effects': 'effects'
    }

    def __init__(self, alias=None, labels=None, general=None, interactivity=None, legend=None, rendering=None, visibility_ranges=None, effects=None):  # noqa: E501
        """LayerCommonSettingsUpdateParameter - a model defined in Swagger"""  # noqa: E501
        self._alias = None
        self._labels = None
        self._general = None
        self._interactivity = None
        self._legend = None
        self._rendering = None
        self._visibility_ranges = None
        self._effects = None
        self.discriminator = None
        if alias is not None:
            self.alias = alias
        if labels is not None:
            self.labels = labels
        if general is not None:
            self.general = general
        if interactivity is not None:
            self.interactivity = interactivity
        if legend is not None:
            self.legend = legend
        if rendering is not None:
            self.rendering = rendering
        if visibility_ranges is not None:
            self.visibility_ranges = visibility_ranges
        if effects is not None:
            self.effects = effects

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


        :return: The alias of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :rtype: OneOfLayerCommonSettingsUpdateParameterAlias
        """
        return self._alias

    @alias.setter
    def alias(self, alias):
        """Sets the alias of this LayerCommonSettingsUpdateParameter.


        :param alias: The alias of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :type: OneOfLayerCommonSettingsUpdateParameterAlias
        """

        self._alias = alias

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


        :return: The labels of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :rtype: OneOfLayerCommonSettingsUpdateParameterLabels
        """
        return self._labels

    @labels.setter
    def labels(self, labels):
        """Sets the labels of this LayerCommonSettingsUpdateParameter.


        :param labels: The labels of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :type: OneOfLayerCommonSettingsUpdateParameterLabels
        """

        self._labels = labels

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


        :return: The general of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :rtype: OneOfLayerCommonSettingsUpdateParameterGeneral
        """
        return self._general

    @general.setter
    def general(self, general):
        """Sets the general of this LayerCommonSettingsUpdateParameter.


        :param general: The general of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :type: OneOfLayerCommonSettingsUpdateParameterGeneral
        """

        self._general = general

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


        :return: The interactivity of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :rtype: OneOfLayerCommonSettingsUpdateParameterInteractivity
        """
        return self._interactivity

    @interactivity.setter
    def interactivity(self, interactivity):
        """Sets the interactivity of this LayerCommonSettingsUpdateParameter.


        :param interactivity: The interactivity of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :type: OneOfLayerCommonSettingsUpdateParameterInteractivity
        """

        self._interactivity = interactivity

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


        :return: The legend of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :rtype: OneOfLayerCommonSettingsUpdateParameterLegend
        """
        return self._legend

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


        :param legend: The legend of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :type: OneOfLayerCommonSettingsUpdateParameterLegend
        """

        self._legend = legend

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


        :return: The rendering of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :rtype: OneOfLayerCommonSettingsUpdateParameterRendering
        """
        return self._rendering

    @rendering.setter
    def rendering(self, rendering):
        """Sets the rendering of this LayerCommonSettingsUpdateParameter.


        :param rendering: The rendering of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :type: OneOfLayerCommonSettingsUpdateParameterRendering
        """

        self._rendering = rendering

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


        :return: The visibility_ranges of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :rtype: OneOfLayerCommonSettingsUpdateParameterVisibilityRanges
        """
        return self._visibility_ranges

    @visibility_ranges.setter
    def visibility_ranges(self, visibility_ranges):
        """Sets the visibility_ranges of this LayerCommonSettingsUpdateParameter.


        :param visibility_ranges: The visibility_ranges of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :type: OneOfLayerCommonSettingsUpdateParameterVisibilityRanges
        """

        self._visibility_ranges = visibility_ranges

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


        :return: The effects of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :rtype: OneOfLayerCommonSettingsUpdateParameterEffects
        """
        return self._effects

    @effects.setter
    def effects(self, effects):
        """Sets the effects of this LayerCommonSettingsUpdateParameter.


        :param effects: The effects of this LayerCommonSettingsUpdateParameter.  # noqa: E501
        :type: OneOfLayerCommonSettingsUpdateParameterEffects
        """

        self._effects = effects

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

        return self.__dict__ == other.__dict__

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