# 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 OlvmSpm(object):
    """
    The host storage pool manager (SPM) status and definition.
    """

    #: A constant which can be used with the spm_status property of a OlvmSpm.
    #: This constant has a value of "CONTENDING"
    SPM_STATUS_CONTENDING = "CONTENDING"

    #: A constant which can be used with the spm_status property of a OlvmSpm.
    #: This constant has a value of "NONE"
    SPM_STATUS_NONE = "NONE"

    #: A constant which can be used with the spm_status property of a OlvmSpm.
    #: This constant has a value of "SPM"
    SPM_STATUS_SPM = "SPM"

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

        :param priority:
            The value to assign to the priority property of this OlvmSpm.
        :type priority: int

        :param spm_status:
            The value to assign to the spm_status property of this OlvmSpm.
            Allowed values for this property are: "CONTENDING", "NONE", "SPM"
        :type spm_status: str

        """
        self.swagger_types = {
            'priority': 'int',
            'spm_status': 'str'
        }
        self.attribute_map = {
            'priority': 'priority',
            'spm_status': 'spmStatus'
        }
        self._priority = None
        self._spm_status = None

    @property
    def priority(self):
        """
        Gets the priority of this OlvmSpm.
        Priority of this SPM.


        :return: The priority of this OlvmSpm.
        :rtype: int
        """
        return self._priority

    @priority.setter
    def priority(self, priority):
        """
        Sets the priority of this OlvmSpm.
        Priority of this SPM.


        :param priority: The priority of this OlvmSpm.
        :type: int
        """
        self._priority = priority

    @property
    def spm_status(self):
        """
        Gets the spm_status of this OlvmSpm.
        Status of this SPM.

        Allowed values for this property are: "CONTENDING", "NONE", "SPM"


        :return: The spm_status of this OlvmSpm.
        :rtype: str
        """
        return self._spm_status

    @spm_status.setter
    def spm_status(self, spm_status):
        """
        Sets the spm_status of this OlvmSpm.
        Status of this SPM.


        :param spm_status: The spm_status of this OlvmSpm.
        :type: str
        """
        allowed_values = ["CONTENDING", "NONE", "SPM"]
        if not value_allowed_none_or_none_sentinel(spm_status, allowed_values):
            raise ValueError(
                f"Invalid value for `spm_status`, must be None or one of {allowed_values}"
            )
        self._spm_status = spm_status

    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
