# coding: utf-8

"""
    Knetik Platform API Documentation latest 

    This is the spec for the Knetik API.  Use this in conjunction with the documentation found at https://knetikcloud.com.

    OpenAPI spec version: latest 
    Contact: support@knetik.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class RevenueProductReportResource(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 = {
        'item_id': 'int',
        'item_name': 'str',
        'revenue': 'float',
        'volume': 'int'
    }

    attribute_map = {
        'item_id': 'item_id',
        'item_name': 'item_name',
        'revenue': 'revenue',
        'volume': 'volume'
    }

    def __init__(self, item_id=None, item_name=None, revenue=None, volume=None):
        """
        RevenueProductReportResource - a model defined in Swagger
        """

        self._item_id = None
        self._item_name = None
        self._revenue = None
        self._volume = None
        self.discriminator = None

        if item_id is not None:
          self.item_id = item_id
        if item_name is not None:
          self.item_name = item_name
        if revenue is not None:
          self.revenue = revenue
        if volume is not None:
          self.volume = volume

    @property
    def item_id(self):
        """
        Gets the item_id of this RevenueProductReportResource.

        :return: The item_id of this RevenueProductReportResource.
        :rtype: int
        """
        return self._item_id

    @item_id.setter
    def item_id(self, item_id):
        """
        Sets the item_id of this RevenueProductReportResource.

        :param item_id: The item_id of this RevenueProductReportResource.
        :type: int
        """

        self._item_id = item_id

    @property
    def item_name(self):
        """
        Gets the item_name of this RevenueProductReportResource.

        :return: The item_name of this RevenueProductReportResource.
        :rtype: str
        """
        return self._item_name

    @item_name.setter
    def item_name(self, item_name):
        """
        Sets the item_name of this RevenueProductReportResource.

        :param item_name: The item_name of this RevenueProductReportResource.
        :type: str
        """

        self._item_name = item_name

    @property
    def revenue(self):
        """
        Gets the revenue of this RevenueProductReportResource.

        :return: The revenue of this RevenueProductReportResource.
        :rtype: float
        """
        return self._revenue

    @revenue.setter
    def revenue(self, revenue):
        """
        Sets the revenue of this RevenueProductReportResource.

        :param revenue: The revenue of this RevenueProductReportResource.
        :type: float
        """

        self._revenue = revenue

    @property
    def volume(self):
        """
        Gets the volume of this RevenueProductReportResource.

        :return: The volume of this RevenueProductReportResource.
        :rtype: int
        """
        return self._volume

    @volume.setter
    def volume(self, volume):
        """
        Sets the volume of this RevenueProductReportResource.

        :param volume: The volume of this RevenueProductReportResource.
        :type: int
        """

        self._volume = volume

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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, RevenueProductReportResource):
            return False

        return self.__dict__ == other.__dict__

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