# 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 GridSourceUpdateParameters(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 = {
        'unique_identifier': 'str',
        'name': 'str',
        'description': 'str',
        'timestamp': 'datetime',
        'no_data_enabled': 'bool',
        'no_data_value': 'str'
    }

    attribute_map = {
        'unique_identifier': 'uniqueIdentifier',
        'name': 'name',
        'description': 'description',
        'timestamp': 'timestamp',
        'no_data_enabled': 'noDataEnabled',
        'no_data_value': 'noDataValue'
    }

    def __init__(self, unique_identifier=None, name=None, description=None, timestamp=None, no_data_enabled=None, no_data_value=None):  # noqa: E501
        """GridSourceUpdateParameters - a model defined in Swagger"""  # noqa: E501
        self._unique_identifier = None
        self._name = None
        self._description = None
        self._timestamp = None
        self._no_data_enabled = None
        self._no_data_value = None
        self.discriminator = None
        if unique_identifier is not None:
            self.unique_identifier = unique_identifier
        if name is not None:
            self.name = name
        if description is not None:
            self.description = description
        if timestamp is not None:
            self.timestamp = timestamp
        if no_data_enabled is not None:
            self.no_data_enabled = no_data_enabled
        if no_data_value is not None:
            self.no_data_value = no_data_value

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


        :return: The unique_identifier of this GridSourceUpdateParameters.  # noqa: E501
        :rtype: str
        """
        return self._unique_identifier

    @unique_identifier.setter
    def unique_identifier(self, unique_identifier):
        """Sets the unique_identifier of this GridSourceUpdateParameters.


        :param unique_identifier: The unique_identifier of this GridSourceUpdateParameters.  # noqa: E501
        :type: str
        """

        self._unique_identifier = unique_identifier

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


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

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


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

        self._name = name

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


        :return: The description of this GridSourceUpdateParameters.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this GridSourceUpdateParameters.


        :param description: The description of this GridSourceUpdateParameters.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The timestamp of this GridSourceUpdateParameters.  # noqa: E501
        :rtype: datetime
        """
        return self._timestamp

    @timestamp.setter
    def timestamp(self, timestamp):
        """Sets the timestamp of this GridSourceUpdateParameters.


        :param timestamp: The timestamp of this GridSourceUpdateParameters.  # noqa: E501
        :type: datetime
        """

        self._timestamp = timestamp

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


        :return: The no_data_enabled of this GridSourceUpdateParameters.  # noqa: E501
        :rtype: bool
        """
        return self._no_data_enabled

    @no_data_enabled.setter
    def no_data_enabled(self, no_data_enabled):
        """Sets the no_data_enabled of this GridSourceUpdateParameters.


        :param no_data_enabled: The no_data_enabled of this GridSourceUpdateParameters.  # noqa: E501
        :type: bool
        """

        self._no_data_enabled = no_data_enabled

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


        :return: The no_data_value of this GridSourceUpdateParameters.  # noqa: E501
        :rtype: str
        """
        return self._no_data_value

    @no_data_value.setter
    def no_data_value(self, no_data_value):
        """Sets the no_data_value of this GridSourceUpdateParameters.


        :param no_data_value: The no_data_value of this GridSourceUpdateParameters.  # noqa: E501
        :type: str
        """

        self._no_data_value = no_data_value

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

        return self.__dict__ == other.__dict__

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