# coding: utf-8
# Copyright (c) 2016, 2026, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220919


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class CurrentMonthlyCost(object):
    """
    Current monthly compute and storage costs.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new CurrentMonthlyCost object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param compute_amount:
            The value to assign to the compute_amount property of this CurrentMonthlyCost.
        :type compute_amount: float

        :param storage_amount:
            The value to assign to the storage_amount property of this CurrentMonthlyCost.
        :type storage_amount: float

        :param currency_code:
            The value to assign to the currency_code property of this CurrentMonthlyCost.
        :type currency_code: str

        :param asset_count:
            The value to assign to the asset_count property of this CurrentMonthlyCost.
        :type asset_count: int

        """
        self.swagger_types = {
            'compute_amount': 'float',
            'storage_amount': 'float',
            'currency_code': 'str',
            'asset_count': 'int'
        }
        self.attribute_map = {
            'compute_amount': 'computeAmount',
            'storage_amount': 'storageAmount',
            'currency_code': 'currencyCode',
            'asset_count': 'assetCount'
        }
        self._compute_amount = None
        self._storage_amount = None
        self._currency_code = None
        self._asset_count = None

    @property
    def compute_amount(self):
        """
        **[Required]** Gets the compute_amount of this CurrentMonthlyCost.
        Current monthly compute costs.


        :return: The compute_amount of this CurrentMonthlyCost.
        :rtype: float
        """
        return self._compute_amount

    @compute_amount.setter
    def compute_amount(self, compute_amount):
        """
        Sets the compute_amount of this CurrentMonthlyCost.
        Current monthly compute costs.


        :param compute_amount: The compute_amount of this CurrentMonthlyCost.
        :type: float
        """
        self._compute_amount = compute_amount

    @property
    def storage_amount(self):
        """
        Gets the storage_amount of this CurrentMonthlyCost.
        Current monthly storage costs.


        :return: The storage_amount of this CurrentMonthlyCost.
        :rtype: float
        """
        return self._storage_amount

    @storage_amount.setter
    def storage_amount(self, storage_amount):
        """
        Sets the storage_amount of this CurrentMonthlyCost.
        Current monthly storage costs.


        :param storage_amount: The storage_amount of this CurrentMonthlyCost.
        :type: float
        """
        self._storage_amount = storage_amount

    @property
    def currency_code(self):
        """
        **[Required]** Gets the currency_code of this CurrentMonthlyCost.
        Currency code as defined by ISO-4217.


        :return: The currency_code of this CurrentMonthlyCost.
        :rtype: str
        """
        return self._currency_code

    @currency_code.setter
    def currency_code(self, currency_code):
        """
        Sets the currency_code of this CurrentMonthlyCost.
        Currency code as defined by ISO-4217.


        :param currency_code: The currency_code of this CurrentMonthlyCost.
        :type: str
        """
        self._currency_code = currency_code

    @property
    def asset_count(self):
        """
        Gets the asset_count of this CurrentMonthlyCost.
        Number of assets used in this calculation.


        :return: The asset_count of this CurrentMonthlyCost.
        :rtype: int
        """
        return self._asset_count

    @asset_count.setter
    def asset_count(self, asset_count):
        """
        Sets the asset_count of this CurrentMonthlyCost.
        Number of assets used in this calculation.


        :param asset_count: The asset_count of this CurrentMonthlyCost.
        :type: int
        """
        self._asset_count = asset_count

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
