# coding: utf-8

"""
    Decision Lens API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from dlxapi.configuration import Configuration


class ResourcePoolBudgetAmount(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 = {
        'resource_pool': 'ResourcePool',
        'time_period': 'TimePeriod',
        'amount': 'float',
        'baseline_amount': 'float',
        'details': 'ResourcePoolBudgetAmounts'
    }

    attribute_map = {
        'resource_pool': 'resourcePool',
        'time_period': 'timePeriod',
        'amount': 'amount',
        'baseline_amount': 'baselineAmount',
        'details': 'details'
    }

    def __init__(self, resource_pool=None, time_period=None, amount=None, baseline_amount=None, details=None, _configuration=None):  # noqa: E501
        """ResourcePoolBudgetAmount - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._resource_pool = None
        self._time_period = None
        self._amount = None
        self._baseline_amount = None
        self._details = None
        self.discriminator = None

        if resource_pool is not None:
            self.resource_pool = resource_pool
        if time_period is not None:
            self.time_period = time_period
        if amount is not None:
            self.amount = amount
        if baseline_amount is not None:
            self.baseline_amount = baseline_amount
        if details is not None:
            self.details = details

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


        :return: The resource_pool of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: ResourcePool
        """
        return self._resource_pool

    @resource_pool.setter
    def resource_pool(self, resource_pool):
        """Sets the resource_pool of this ResourcePoolBudgetAmount.


        :param resource_pool: The resource_pool of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: ResourcePool
        """

        self._resource_pool = resource_pool

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


        :return: The time_period of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: TimePeriod
        """
        return self._time_period

    @time_period.setter
    def time_period(self, time_period):
        """Sets the time_period of this ResourcePoolBudgetAmount.


        :param time_period: The time_period of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: TimePeriod
        """

        self._time_period = time_period

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


        :return: The amount of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: float
        """
        return self._amount

    @amount.setter
    def amount(self, amount):
        """Sets the amount of this ResourcePoolBudgetAmount.


        :param amount: The amount of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: float
        """

        self._amount = amount

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


        :return: The baseline_amount of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: float
        """
        return self._baseline_amount

    @baseline_amount.setter
    def baseline_amount(self, baseline_amount):
        """Sets the baseline_amount of this ResourcePoolBudgetAmount.


        :param baseline_amount: The baseline_amount of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: float
        """

        self._baseline_amount = baseline_amount

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


        :return: The details of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: ResourcePoolBudgetAmounts
        """
        return self._details

    @details.setter
    def details(self, details):
        """Sets the details of this ResourcePoolBudgetAmount.


        :param details: The details of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: ResourcePoolBudgetAmounts
        """

        self._details = details

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()

# coding: utf-8

"""
    Decision Lens API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from dlxapi.configuration import Configuration


class ResourcePoolBudgetAmount(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 = {
        'resource_pool': 'ResourcePool',
        'time_period': 'TimePeriod',
        'amount': 'float',
        'baseline_amount': 'float',
        'details': 'ResourcePoolBudgetAmounts'
    }

    attribute_map = {
        'resource_pool': 'resourcePool',
        'time_period': 'timePeriod',
        'amount': 'amount',
        'baseline_amount': 'baselineAmount',
        'details': 'details'
    }

    def __init__(self, resource_pool=None, time_period=None, amount=None, baseline_amount=None, details=None, _configuration=None):  # noqa: E501
        """ResourcePoolBudgetAmount - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._resource_pool = None
        self._time_period = None
        self._amount = None
        self._baseline_amount = None
        self._details = None
        self.discriminator = None

        if resource_pool is not None:
            self.resource_pool = resource_pool
        if time_period is not None:
            self.time_period = time_period
        if amount is not None:
            self.amount = amount
        if baseline_amount is not None:
            self.baseline_amount = baseline_amount
        if details is not None:
            self.details = details

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


        :return: The resource_pool of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: ResourcePool
        """
        return self._resource_pool

    @resource_pool.setter
    def resource_pool(self, resource_pool):
        """Sets the resource_pool of this ResourcePoolBudgetAmount.


        :param resource_pool: The resource_pool of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: ResourcePool
        """

        self._resource_pool = resource_pool

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


        :return: The time_period of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: TimePeriod
        """
        return self._time_period

    @time_period.setter
    def time_period(self, time_period):
        """Sets the time_period of this ResourcePoolBudgetAmount.


        :param time_period: The time_period of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: TimePeriod
        """

        self._time_period = time_period

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


        :return: The amount of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: float
        """
        return self._amount

    @amount.setter
    def amount(self, amount):
        """Sets the amount of this ResourcePoolBudgetAmount.


        :param amount: The amount of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: float
        """

        self._amount = amount

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


        :return: The baseline_amount of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: float
        """
        return self._baseline_amount

    @baseline_amount.setter
    def baseline_amount(self, baseline_amount):
        """Sets the baseline_amount of this ResourcePoolBudgetAmount.


        :param baseline_amount: The baseline_amount of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: float
        """

        self._baseline_amount = baseline_amount

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


        :return: The details of this ResourcePoolBudgetAmount.  # noqa: E501
        :rtype: ResourcePoolBudgetAmounts
        """
        return self._details

    @details.setter
    def details(self, details):
        """Sets the details of this ResourcePoolBudgetAmount.


        :param details: The details of this ResourcePoolBudgetAmount.  # noqa: E501
        :type: ResourcePoolBudgetAmounts
        """

        self._details = details

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()

# coding: utf-8 Decision Lens API      No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501      OpenAPI spec version: 1.0          Generated by: https://github.com/swagger-api/swagger-codegen.git # noqa: F401 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. # noqa: E501 ResourcePoolBudgetAmount - a model defined in Swagger # noqa: E501 Gets the resource_pool of this ResourcePoolBudgetAmount.  # noqa: E501           :return: The resource_pool of this ResourcePoolBudgetAmount.  # noqa: E501         :rtype: ResourcePool Sets the resource_pool of this ResourcePoolBudgetAmount.           :param resource_pool: The resource_pool of this ResourcePoolBudgetAmount.  # noqa: E501         :type: ResourcePool Gets the time_period of this ResourcePoolBudgetAmount.  # noqa: E501           :return: The time_period of this ResourcePoolBudgetAmount.  # noqa: E501         :rtype: TimePeriod Sets the time_period of this ResourcePoolBudgetAmount.           :param time_period: The time_period of this ResourcePoolBudgetAmount.  # noqa: E501         :type: TimePeriod Gets the amount of this ResourcePoolBudgetAmount.  # noqa: E501           :return: The amount of this ResourcePoolBudgetAmount.  # noqa: E501         :rtype: float Sets the amount of this ResourcePoolBudgetAmount.           :param amount: The amount of this ResourcePoolBudgetAmount.  # noqa: E501         :type: float Gets the baseline_amount of this ResourcePoolBudgetAmount.  # noqa: E501           :return: The baseline_amount of this ResourcePoolBudgetAmount.  # noqa: E501         :rtype: float Sets the baseline_amount of this ResourcePoolBudgetAmount.           :param baseline_amount: The baseline_amount of this ResourcePoolBudgetAmount.  # noqa: E501         :type: float Gets the details of this ResourcePoolBudgetAmount.  # noqa: E501           :return: The details of this ResourcePoolBudgetAmount.  # noqa: E501         :rtype: ResourcePoolBudgetAmounts Sets the details of this ResourcePoolBudgetAmount.           :param details: The details of this ResourcePoolBudgetAmount.  # noqa: E501         :type: ResourcePoolBudgetAmounts Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal