# 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 PoiAnalysis(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_id': 'str',
        'layer_id': 'str',
        'table_id': 'str',
        'heatmap_layer_id': 'str',
        'name_column_id': 'str',
        'kv_levels_column_id': 'str',
        'kv_classes_column_id': 'str',
        'bus_id_column_id': 'str',
        'name': 'str',
        'kv_values': 'list[str]',
        'kv_classes_to_levels': 'dict(str, list[float])',
        'scenarios': 'list[PoiAnalysisScenario]',
        'has_footprint_polygon': 'bool',
        'is_pregenerating': 'bool',
        'can_use_worst_dispatch': 'bool',
        'only_use_worst_dispatch': 'bool',
        'generating_scenario_id': 'str',
        'extent': 'OneOfPoiAnalysisExtent',
        'custom_poi_analyses': 'list[CustomPoiAnalysis]',
        'initial_contingency_loading_max_data': 'OneOfPoiAnalysisInitialContingencyLoadingMaxData',
        'transmission': 'OneOfPoiAnalysisTransmission',
        'mask': 'OneOfPoiAnalysisMask',
        'harmer_and_stress_gen': 'OneOfPoiAnalysisHarmerAndStressGen',
        'harmer_layer': 'OneOfPoiAnalysisHarmerLayer',
        'kv_values_column_id': 'str'
    }

    attribute_map = {
        'map_id': 'mapId',
        'layer_id': 'layerId',
        'table_id': 'tableId',
        'heatmap_layer_id': 'heatmapLayerId',
        'name_column_id': 'nameColumnId',
        'kv_levels_column_id': 'kvLevelsColumnId',
        'kv_classes_column_id': 'kvClassesColumnId',
        'bus_id_column_id': 'busIdColumnId',
        'name': 'name',
        'kv_values': 'kvValues',
        'kv_classes_to_levels': 'kvClassesToLevels',
        'scenarios': 'scenarios',
        'has_footprint_polygon': 'hasFootprintPolygon',
        'is_pregenerating': 'isPregenerating',
        'can_use_worst_dispatch': 'canUseWorstDispatch',
        'only_use_worst_dispatch': 'onlyUseWorstDispatch',
        'generating_scenario_id': 'generatingScenarioId',
        'extent': 'extent',
        'custom_poi_analyses': 'customPoiAnalyses',
        'initial_contingency_loading_max_data': 'initialContingencyLoadingMaxData',
        'transmission': 'transmission',
        'mask': 'mask',
        'harmer_and_stress_gen': 'harmerAndStressGen',
        'harmer_layer': 'harmerLayer',
        'kv_values_column_id': 'kvValuesColumnId'
    }

    def __init__(self, map_id=None, layer_id=None, table_id=None, heatmap_layer_id=None, name_column_id=None, kv_levels_column_id=None, kv_classes_column_id=None, bus_id_column_id=None, name=None, kv_values=None, kv_classes_to_levels=None, scenarios=None, has_footprint_polygon=None, is_pregenerating=None, can_use_worst_dispatch=None, only_use_worst_dispatch=None, generating_scenario_id=None, extent=None, custom_poi_analyses=None, initial_contingency_loading_max_data=None, transmission=None, mask=None, harmer_and_stress_gen=None, harmer_layer=None, kv_values_column_id=None):  # noqa: E501
        """PoiAnalysis - a model defined in Swagger"""  # noqa: E501
        self._map_id = None
        self._layer_id = None
        self._table_id = None
        self._heatmap_layer_id = None
        self._name_column_id = None
        self._kv_levels_column_id = None
        self._kv_classes_column_id = None
        self._bus_id_column_id = None
        self._name = None
        self._kv_values = None
        self._kv_classes_to_levels = None
        self._scenarios = None
        self._has_footprint_polygon = None
        self._is_pregenerating = None
        self._can_use_worst_dispatch = None
        self._only_use_worst_dispatch = None
        self._generating_scenario_id = None
        self._extent = None
        self._custom_poi_analyses = None
        self._initial_contingency_loading_max_data = None
        self._transmission = None
        self._mask = None
        self._harmer_and_stress_gen = None
        self._harmer_layer = None
        self._kv_values_column_id = None
        self.discriminator = None
        if map_id is not None:
            self.map_id = map_id
        if layer_id is not None:
            self.layer_id = layer_id
        if table_id is not None:
            self.table_id = table_id
        if heatmap_layer_id is not None:
            self.heatmap_layer_id = heatmap_layer_id
        if name_column_id is not None:
            self.name_column_id = name_column_id
        if kv_levels_column_id is not None:
            self.kv_levels_column_id = kv_levels_column_id
        if kv_classes_column_id is not None:
            self.kv_classes_column_id = kv_classes_column_id
        if bus_id_column_id is not None:
            self.bus_id_column_id = bus_id_column_id
        if name is not None:
            self.name = name
        if kv_values is not None:
            self.kv_values = kv_values
        if kv_classes_to_levels is not None:
            self.kv_classes_to_levels = kv_classes_to_levels
        if scenarios is not None:
            self.scenarios = scenarios
        if has_footprint_polygon is not None:
            self.has_footprint_polygon = has_footprint_polygon
        if is_pregenerating is not None:
            self.is_pregenerating = is_pregenerating
        if can_use_worst_dispatch is not None:
            self.can_use_worst_dispatch = can_use_worst_dispatch
        if only_use_worst_dispatch is not None:
            self.only_use_worst_dispatch = only_use_worst_dispatch
        if generating_scenario_id is not None:
            self.generating_scenario_id = generating_scenario_id
        if extent is not None:
            self.extent = extent
        if custom_poi_analyses is not None:
            self.custom_poi_analyses = custom_poi_analyses
        if initial_contingency_loading_max_data is not None:
            self.initial_contingency_loading_max_data = initial_contingency_loading_max_data
        if transmission is not None:
            self.transmission = transmission
        if mask is not None:
            self.mask = mask
        if harmer_and_stress_gen is not None:
            self.harmer_and_stress_gen = harmer_and_stress_gen
        if harmer_layer is not None:
            self.harmer_layer = harmer_layer
        if kv_values_column_id is not None:
            self.kv_values_column_id = kv_values_column_id

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


        :return: The map_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._map_id

    @map_id.setter
    def map_id(self, map_id):
        """Sets the map_id of this PoiAnalysis.


        :param map_id: The map_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._map_id = map_id

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


        :return: The layer_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._layer_id

    @layer_id.setter
    def layer_id(self, layer_id):
        """Sets the layer_id of this PoiAnalysis.


        :param layer_id: The layer_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._layer_id = layer_id

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


        :return: The table_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._table_id

    @table_id.setter
    def table_id(self, table_id):
        """Sets the table_id of this PoiAnalysis.


        :param table_id: The table_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._table_id = table_id

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


        :return: The heatmap_layer_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._heatmap_layer_id

    @heatmap_layer_id.setter
    def heatmap_layer_id(self, heatmap_layer_id):
        """Sets the heatmap_layer_id of this PoiAnalysis.


        :param heatmap_layer_id: The heatmap_layer_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._heatmap_layer_id = heatmap_layer_id

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


        :return: The name_column_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._name_column_id

    @name_column_id.setter
    def name_column_id(self, name_column_id):
        """Sets the name_column_id of this PoiAnalysis.


        :param name_column_id: The name_column_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._name_column_id = name_column_id

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


        :return: The kv_levels_column_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._kv_levels_column_id

    @kv_levels_column_id.setter
    def kv_levels_column_id(self, kv_levels_column_id):
        """Sets the kv_levels_column_id of this PoiAnalysis.


        :param kv_levels_column_id: The kv_levels_column_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._kv_levels_column_id = kv_levels_column_id

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


        :return: The kv_classes_column_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._kv_classes_column_id

    @kv_classes_column_id.setter
    def kv_classes_column_id(self, kv_classes_column_id):
        """Sets the kv_classes_column_id of this PoiAnalysis.


        :param kv_classes_column_id: The kv_classes_column_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._kv_classes_column_id = kv_classes_column_id

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


        :return: The bus_id_column_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._bus_id_column_id

    @bus_id_column_id.setter
    def bus_id_column_id(self, bus_id_column_id):
        """Sets the bus_id_column_id of this PoiAnalysis.


        :param bus_id_column_id: The bus_id_column_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._bus_id_column_id = bus_id_column_id

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


        :return: The name of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this PoiAnalysis.


        :param name: The name of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The kv_values of this PoiAnalysis.  # noqa: E501
        :rtype: list[str]
        """
        return self._kv_values

    @kv_values.setter
    def kv_values(self, kv_values):
        """Sets the kv_values of this PoiAnalysis.


        :param kv_values: The kv_values of this PoiAnalysis.  # noqa: E501
        :type: list[str]
        """

        self._kv_values = kv_values

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


        :return: The kv_classes_to_levels of this PoiAnalysis.  # noqa: E501
        :rtype: dict(str, list[float])
        """
        return self._kv_classes_to_levels

    @kv_classes_to_levels.setter
    def kv_classes_to_levels(self, kv_classes_to_levels):
        """Sets the kv_classes_to_levels of this PoiAnalysis.


        :param kv_classes_to_levels: The kv_classes_to_levels of this PoiAnalysis.  # noqa: E501
        :type: dict(str, list[float])
        """

        self._kv_classes_to_levels = kv_classes_to_levels

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


        :return: The scenarios of this PoiAnalysis.  # noqa: E501
        :rtype: list[PoiAnalysisScenario]
        """
        return self._scenarios

    @scenarios.setter
    def scenarios(self, scenarios):
        """Sets the scenarios of this PoiAnalysis.


        :param scenarios: The scenarios of this PoiAnalysis.  # noqa: E501
        :type: list[PoiAnalysisScenario]
        """

        self._scenarios = scenarios

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


        :return: The has_footprint_polygon of this PoiAnalysis.  # noqa: E501
        :rtype: bool
        """
        return self._has_footprint_polygon

    @has_footprint_polygon.setter
    def has_footprint_polygon(self, has_footprint_polygon):
        """Sets the has_footprint_polygon of this PoiAnalysis.


        :param has_footprint_polygon: The has_footprint_polygon of this PoiAnalysis.  # noqa: E501
        :type: bool
        """

        self._has_footprint_polygon = has_footprint_polygon

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


        :return: The is_pregenerating of this PoiAnalysis.  # noqa: E501
        :rtype: bool
        """
        return self._is_pregenerating

    @is_pregenerating.setter
    def is_pregenerating(self, is_pregenerating):
        """Sets the is_pregenerating of this PoiAnalysis.


        :param is_pregenerating: The is_pregenerating of this PoiAnalysis.  # noqa: E501
        :type: bool
        """

        self._is_pregenerating = is_pregenerating

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


        :return: The can_use_worst_dispatch of this PoiAnalysis.  # noqa: E501
        :rtype: bool
        """
        return self._can_use_worst_dispatch

    @can_use_worst_dispatch.setter
    def can_use_worst_dispatch(self, can_use_worst_dispatch):
        """Sets the can_use_worst_dispatch of this PoiAnalysis.


        :param can_use_worst_dispatch: The can_use_worst_dispatch of this PoiAnalysis.  # noqa: E501
        :type: bool
        """

        self._can_use_worst_dispatch = can_use_worst_dispatch

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


        :return: The only_use_worst_dispatch of this PoiAnalysis.  # noqa: E501
        :rtype: bool
        """
        return self._only_use_worst_dispatch

    @only_use_worst_dispatch.setter
    def only_use_worst_dispatch(self, only_use_worst_dispatch):
        """Sets the only_use_worst_dispatch of this PoiAnalysis.


        :param only_use_worst_dispatch: The only_use_worst_dispatch of this PoiAnalysis.  # noqa: E501
        :type: bool
        """

        self._only_use_worst_dispatch = only_use_worst_dispatch

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


        :return: The generating_scenario_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._generating_scenario_id

    @generating_scenario_id.setter
    def generating_scenario_id(self, generating_scenario_id):
        """Sets the generating_scenario_id of this PoiAnalysis.


        :param generating_scenario_id: The generating_scenario_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._generating_scenario_id = generating_scenario_id

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


        :return: The extent of this PoiAnalysis.  # noqa: E501
        :rtype: OneOfPoiAnalysisExtent
        """
        return self._extent

    @extent.setter
    def extent(self, extent):
        """Sets the extent of this PoiAnalysis.


        :param extent: The extent of this PoiAnalysis.  # noqa: E501
        :type: OneOfPoiAnalysisExtent
        """

        self._extent = extent

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


        :return: The custom_poi_analyses of this PoiAnalysis.  # noqa: E501
        :rtype: list[CustomPoiAnalysis]
        """
        return self._custom_poi_analyses

    @custom_poi_analyses.setter
    def custom_poi_analyses(self, custom_poi_analyses):
        """Sets the custom_poi_analyses of this PoiAnalysis.


        :param custom_poi_analyses: The custom_poi_analyses of this PoiAnalysis.  # noqa: E501
        :type: list[CustomPoiAnalysis]
        """

        self._custom_poi_analyses = custom_poi_analyses

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


        :return: The initial_contingency_loading_max_data of this PoiAnalysis.  # noqa: E501
        :rtype: OneOfPoiAnalysisInitialContingencyLoadingMaxData
        """
        return self._initial_contingency_loading_max_data

    @initial_contingency_loading_max_data.setter
    def initial_contingency_loading_max_data(self, initial_contingency_loading_max_data):
        """Sets the initial_contingency_loading_max_data of this PoiAnalysis.


        :param initial_contingency_loading_max_data: The initial_contingency_loading_max_data of this PoiAnalysis.  # noqa: E501
        :type: OneOfPoiAnalysisInitialContingencyLoadingMaxData
        """

        self._initial_contingency_loading_max_data = initial_contingency_loading_max_data

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


        :return: The transmission of this PoiAnalysis.  # noqa: E501
        :rtype: OneOfPoiAnalysisTransmission
        """
        return self._transmission

    @transmission.setter
    def transmission(self, transmission):
        """Sets the transmission of this PoiAnalysis.


        :param transmission: The transmission of this PoiAnalysis.  # noqa: E501
        :type: OneOfPoiAnalysisTransmission
        """

        self._transmission = transmission

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


        :return: The mask of this PoiAnalysis.  # noqa: E501
        :rtype: OneOfPoiAnalysisMask
        """
        return self._mask

    @mask.setter
    def mask(self, mask):
        """Sets the mask of this PoiAnalysis.


        :param mask: The mask of this PoiAnalysis.  # noqa: E501
        :type: OneOfPoiAnalysisMask
        """

        self._mask = mask

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


        :return: The harmer_and_stress_gen of this PoiAnalysis.  # noqa: E501
        :rtype: OneOfPoiAnalysisHarmerAndStressGen
        """
        return self._harmer_and_stress_gen

    @harmer_and_stress_gen.setter
    def harmer_and_stress_gen(self, harmer_and_stress_gen):
        """Sets the harmer_and_stress_gen of this PoiAnalysis.


        :param harmer_and_stress_gen: The harmer_and_stress_gen of this PoiAnalysis.  # noqa: E501
        :type: OneOfPoiAnalysisHarmerAndStressGen
        """

        self._harmer_and_stress_gen = harmer_and_stress_gen

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


        :return: The harmer_layer of this PoiAnalysis.  # noqa: E501
        :rtype: OneOfPoiAnalysisHarmerLayer
        """
        return self._harmer_layer

    @harmer_layer.setter
    def harmer_layer(self, harmer_layer):
        """Sets the harmer_layer of this PoiAnalysis.


        :param harmer_layer: The harmer_layer of this PoiAnalysis.  # noqa: E501
        :type: OneOfPoiAnalysisHarmerLayer
        """

        self._harmer_layer = harmer_layer

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


        :return: The kv_values_column_id of this PoiAnalysis.  # noqa: E501
        :rtype: str
        """
        return self._kv_values_column_id

    @kv_values_column_id.setter
    def kv_values_column_id(self, kv_values_column_id):
        """Sets the kv_values_column_id of this PoiAnalysis.


        :param kv_values_column_id: The kv_values_column_id of this PoiAnalysis.  # noqa: E501
        :type: str
        """

        self._kv_values_column_id = kv_values_column_id

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

        return self.__dict__ == other.__dict__

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