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


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 OlvmTemplateVersion(object):
    """
    Indicates whether this is the base version or a sub-version of another template.
    """

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

        :param version_name:
            The value to assign to the version_name property of this OlvmTemplateVersion.
        :type version_name: str

        :param version_number:
            The value to assign to the version_number property of this OlvmTemplateVersion.
        :type version_number: int

        """
        self.swagger_types = {
            'version_name': 'str',
            'version_number': 'int'
        }
        self.attribute_map = {
            'version_name': 'versionName',
            'version_number': 'versionNumber'
        }
        self._version_name = None
        self._version_number = None

    @property
    def version_name(self):
        """
        Gets the version_name of this OlvmTemplateVersion.
        The name of this version.


        :return: The version_name of this OlvmTemplateVersion.
        :rtype: str
        """
        return self._version_name

    @version_name.setter
    def version_name(self, version_name):
        """
        Sets the version_name of this OlvmTemplateVersion.
        The name of this version.


        :param version_name: The version_name of this OlvmTemplateVersion.
        :type: str
        """
        self._version_name = version_name

    @property
    def version_number(self):
        """
        Gets the version_number of this OlvmTemplateVersion.
        The index of this version in the versions hierarchy of the template.


        :return: The version_number of this OlvmTemplateVersion.
        :rtype: int
        """
        return self._version_number

    @version_number.setter
    def version_number(self, version_number):
        """
        Sets the version_number of this OlvmTemplateVersion.
        The index of this version in the versions hierarchy of the template.


        :param version_number: The version_number of this OlvmTemplateVersion.
        :type: int
        """
        self._version_number = version_number

    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
