# 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 PoiTransmission(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 = {
        'layer_id': 'str',
        'table_transmission_id': 'str',
        'transmission_id': 'str',
        'from_kv': 'str',
        'contingency_loading_max_percent': 'str',
        'points': 'OneOfPoiTransmissionPoints'
    }

    attribute_map = {
        'layer_id': 'layerId',
        'table_transmission_id': 'tableTransmissionId',
        'transmission_id': 'transmissionId',
        'from_kv': 'fromKv',
        'contingency_loading_max_percent': 'contingencyLoadingMaxPercent',
        'points': 'points'
    }

    def __init__(self, layer_id=None, table_transmission_id=None, transmission_id=None, from_kv=None, contingency_loading_max_percent=None, points=None):  # noqa: E501
        """PoiTransmission - a model defined in Swagger"""  # noqa: E501
        self._layer_id = None
        self._table_transmission_id = None
        self._transmission_id = None
        self._from_kv = None
        self._contingency_loading_max_percent = None
        self._points = None
        self.discriminator = None
        if layer_id is not None:
            self.layer_id = layer_id
        if table_transmission_id is not None:
            self.table_transmission_id = table_transmission_id
        if transmission_id is not None:
            self.transmission_id = transmission_id
        if from_kv is not None:
            self.from_kv = from_kv
        if contingency_loading_max_percent is not None:
            self.contingency_loading_max_percent = contingency_loading_max_percent
        if points is not None:
            self.points = points

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


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

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


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

        self._layer_id = layer_id

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


        :return: The table_transmission_id of this PoiTransmission.  # noqa: E501
        :rtype: str
        """
        return self._table_transmission_id

    @table_transmission_id.setter
    def table_transmission_id(self, table_transmission_id):
        """Sets the table_transmission_id of this PoiTransmission.


        :param table_transmission_id: The table_transmission_id of this PoiTransmission.  # noqa: E501
        :type: str
        """

        self._table_transmission_id = table_transmission_id

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


        :return: The transmission_id of this PoiTransmission.  # noqa: E501
        :rtype: str
        """
        return self._transmission_id

    @transmission_id.setter
    def transmission_id(self, transmission_id):
        """Sets the transmission_id of this PoiTransmission.


        :param transmission_id: The transmission_id of this PoiTransmission.  # noqa: E501
        :type: str
        """

        self._transmission_id = transmission_id

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


        :return: The from_kv of this PoiTransmission.  # noqa: E501
        :rtype: str
        """
        return self._from_kv

    @from_kv.setter
    def from_kv(self, from_kv):
        """Sets the from_kv of this PoiTransmission.


        :param from_kv: The from_kv of this PoiTransmission.  # noqa: E501
        :type: str
        """

        self._from_kv = from_kv

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


        :return: The contingency_loading_max_percent of this PoiTransmission.  # noqa: E501
        :rtype: str
        """
        return self._contingency_loading_max_percent

    @contingency_loading_max_percent.setter
    def contingency_loading_max_percent(self, contingency_loading_max_percent):
        """Sets the contingency_loading_max_percent of this PoiTransmission.


        :param contingency_loading_max_percent: The contingency_loading_max_percent of this PoiTransmission.  # noqa: E501
        :type: str
        """

        self._contingency_loading_max_percent = contingency_loading_max_percent

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


        :return: The points of this PoiTransmission.  # noqa: E501
        :rtype: OneOfPoiTransmissionPoints
        """
        return self._points

    @points.setter
    def points(self, points):
        """Sets the points of this PoiTransmission.


        :param points: The points of this PoiTransmission.  # noqa: E501
        :type: OneOfPoiTransmissionPoints
        """

        self._points = points

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

        return self.__dict__ == other.__dict__

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