# 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: 20230701


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 UpdateByolDetails(object):
    """
    The details to update BYOL.
    """

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

        :param display_name:
            The value to assign to the display_name property of this UpdateByolDetails.
        :type display_name: str

        :param total_units:
            The value to assign to the total_units property of this UpdateByolDetails.
        :type total_units: int

        :param description:
            The value to assign to the description property of this UpdateByolDetails.
        :type description: str

        :param software_type:
            The value to assign to the software_type property of this UpdateByolDetails.
        :type software_type: str

        :param time_term_start:
            The value to assign to the time_term_start property of this UpdateByolDetails.
        :type time_term_start: datetime

        :param time_term_end:
            The value to assign to the time_term_end property of this UpdateByolDetails.
        :type time_term_end: datetime

        :param entitlement_key:
            The value to assign to the entitlement_key property of this UpdateByolDetails.
        :type entitlement_key: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this UpdateByolDetails.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this UpdateByolDetails.
        :type defined_tags: dict(str, dict(str, object))

        """
        self.swagger_types = {
            'display_name': 'str',
            'total_units': 'int',
            'description': 'str',
            'software_type': 'str',
            'time_term_start': 'datetime',
            'time_term_end': 'datetime',
            'entitlement_key': 'str',
            'freeform_tags': 'dict(str, str)',
            'defined_tags': 'dict(str, dict(str, object))'
        }
        self.attribute_map = {
            'display_name': 'displayName',
            'total_units': 'totalUnits',
            'description': 'description',
            'software_type': 'softwareType',
            'time_term_start': 'timeTermStart',
            'time_term_end': 'timeTermEnd',
            'entitlement_key': 'entitlementKey',
            'freeform_tags': 'freeformTags',
            'defined_tags': 'definedTags'
        }
        self._display_name = None
        self._total_units = None
        self._description = None
        self._software_type = None
        self._time_term_start = None
        self._time_term_end = None
        self._entitlement_key = None
        self._freeform_tags = None
        self._defined_tags = None

    @property
    def display_name(self):
        """
        Gets the display_name of this UpdateByolDetails.
        A descriptive name for the BYOL.


        :return: The display_name of this UpdateByolDetails.
        :rtype: str
        """
        return self._display_name

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this UpdateByolDetails.
        A descriptive name for the BYOL.


        :param display_name: The display_name of this UpdateByolDetails.
        :type: str
        """
        self._display_name = display_name

    @property
    def total_units(self):
        """
        Gets the total_units of this UpdateByolDetails.
        Total quantity of licensed units for the specified `softwareType`:

        - VCF, VDEFEND: number of OCPUs
        - VSAN: storage capacity in TiB (tebibytes)
        - AVI_LOAD_BALANCER: number of instances


        :return: The total_units of this UpdateByolDetails.
        :rtype: int
        """
        return self._total_units

    @total_units.setter
    def total_units(self, total_units):
        """
        Sets the total_units of this UpdateByolDetails.
        Total quantity of licensed units for the specified `softwareType`:

        - VCF, VDEFEND: number of OCPUs
        - VSAN: storage capacity in TiB (tebibytes)
        - AVI_LOAD_BALANCER: number of instances


        :param total_units: The total_units of this UpdateByolDetails.
        :type: int
        """
        self._total_units = total_units

    @property
    def description(self):
        """
        Gets the description of this UpdateByolDetails.
        A description of the BYOL.


        :return: The description of this UpdateByolDetails.
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """
        Sets the description of this UpdateByolDetails.
        A description of the BYOL.


        :param description: The description of this UpdateByolDetails.
        :type: str
        """
        self._description = description

    @property
    def software_type(self):
        """
        Gets the software_type of this UpdateByolDetails.
        The type of VMware software the BYOL applies to.
        Supported values:
        - VCF (VMware Cloud Foundation)
        - VSAN (VMware vSAN)
        - VDEFEND (VMware vDefend Firewall)
        - AVI_LOAD_BALANCER (VMware Avi Load Balancer)


        :return: The software_type of this UpdateByolDetails.
        :rtype: str
        """
        return self._software_type

    @software_type.setter
    def software_type(self, software_type):
        """
        Sets the software_type of this UpdateByolDetails.
        The type of VMware software the BYOL applies to.
        Supported values:
        - VCF (VMware Cloud Foundation)
        - VSAN (VMware vSAN)
        - VDEFEND (VMware vDefend Firewall)
        - AVI_LOAD_BALANCER (VMware Avi Load Balancer)


        :param software_type: The software_type of this UpdateByolDetails.
        :type: str
        """
        self._software_type = software_type

    @property
    def time_term_start(self):
        """
        Gets the time_term_start of this UpdateByolDetails.
        The date and time when the BYOL becomes active. VMware software functionality cannot begin before this time.
        In the format defined by`RFC3339`__.
        Example: `2016-08-25T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_term_start of this UpdateByolDetails.
        :rtype: datetime
        """
        return self._time_term_start

    @time_term_start.setter
    def time_term_start(self, time_term_start):
        """
        Sets the time_term_start of this UpdateByolDetails.
        The date and time when the BYOL becomes active. VMware software functionality cannot begin before this time.
        In the format defined by`RFC3339`__.
        Example: `2016-08-25T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_term_start: The time_term_start of this UpdateByolDetails.
        :type: datetime
        """
        self._time_term_start = time_term_start

    @property
    def time_term_end(self):
        """
        Gets the time_term_end of this UpdateByolDetails.
        The date and time when the BYOL expires and becomes inactive.
        In the format defined by`RFC3339`__.

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_term_end of this UpdateByolDetails.
        :rtype: datetime
        """
        return self._time_term_end

    @time_term_end.setter
    def time_term_end(self, time_term_end):
        """
        Sets the time_term_end of this UpdateByolDetails.
        The date and time when the BYOL expires and becomes inactive.
        In the format defined by`RFC3339`__.

        __ https://tools.ietf.org/html/rfc3339


        :param time_term_end: The time_term_end of this UpdateByolDetails.
        :type: datetime
        """
        self._time_term_end = time_term_end

    @property
    def entitlement_key(self):
        """
        Gets the entitlement_key of this UpdateByolDetails.
        The Broadcom-supplied identifier of a BYOL license.


        :return: The entitlement_key of this UpdateByolDetails.
        :rtype: str
        """
        return self._entitlement_key

    @entitlement_key.setter
    def entitlement_key(self, entitlement_key):
        """
        Sets the entitlement_key of this UpdateByolDetails.
        The Broadcom-supplied identifier of a BYOL license.


        :param entitlement_key: The entitlement_key of this UpdateByolDetails.
        :type: str
        """
        self._entitlement_key = entitlement_key

    @property
    def freeform_tags(self):
        """
        Gets the freeform_tags of this UpdateByolDetails.
        Free-form tags for this resource. Each tag is a simple key-value pair with no
        predefined name, type, or namespace. For more information, see `Resource Tags`__.

        Example: `{\"Department\": \"Finance\"}`

        __ https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this UpdateByolDetails.
        :rtype: dict(str, str)
        """
        return self._freeform_tags

    @freeform_tags.setter
    def freeform_tags(self, freeform_tags):
        """
        Sets the freeform_tags of this UpdateByolDetails.
        Free-form tags for this resource. Each tag is a simple key-value pair with no
        predefined name, type, or namespace. For more information, see `Resource Tags`__.

        Example: `{\"Department\": \"Finance\"}`

        __ https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this UpdateByolDetails.
        :type: dict(str, str)
        """
        self._freeform_tags = freeform_tags

    @property
    def defined_tags(self):
        """
        Gets the defined_tags of this UpdateByolDetails.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, see `Resource Tags`__.

        Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`

        __ https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this UpdateByolDetails.
        :rtype: dict(str, dict(str, object))
        """
        return self._defined_tags

    @defined_tags.setter
    def defined_tags(self, defined_tags):
        """
        Sets the defined_tags of this UpdateByolDetails.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, see `Resource Tags`__.

        Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`

        __ https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this UpdateByolDetails.
        :type: dict(str, dict(str, object))
        """
        self._defined_tags = defined_tags

    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
