# 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 OlvmDataCenter(object):
    """
    An OLVM Data Center.
    """

    #: A constant which can be used with the quota_mode_type property of a OlvmDataCenter.
    #: This constant has a value of "AUDIT"
    QUOTA_MODE_TYPE_AUDIT = "AUDIT"

    #: A constant which can be used with the quota_mode_type property of a OlvmDataCenter.
    #: This constant has a value of "DISABLED"
    QUOTA_MODE_TYPE_DISABLED = "DISABLED"

    #: A constant which can be used with the quota_mode_type property of a OlvmDataCenter.
    #: This constant has a value of "ENABLED"
    QUOTA_MODE_TYPE_ENABLED = "ENABLED"

    #: A constant which can be used with the data_center_status property of a OlvmDataCenter.
    #: This constant has a value of "CONTEND"
    DATA_CENTER_STATUS_CONTEND = "CONTEND"

    #: A constant which can be used with the data_center_status property of a OlvmDataCenter.
    #: This constant has a value of "MAINTENANCE"
    DATA_CENTER_STATUS_MAINTENANCE = "MAINTENANCE"

    #: A constant which can be used with the data_center_status property of a OlvmDataCenter.
    #: This constant has a value of "NOT_OPERATIONAL"
    DATA_CENTER_STATUS_NOT_OPERATIONAL = "NOT_OPERATIONAL"

    #: A constant which can be used with the data_center_status property of a OlvmDataCenter.
    #: This constant has a value of "PROBLEMATIC"
    DATA_CENTER_STATUS_PROBLEMATIC = "PROBLEMATIC"

    #: A constant which can be used with the data_center_status property of a OlvmDataCenter.
    #: This constant has a value of "UNINITIALIZED"
    DATA_CENTER_STATUS_UNINITIALIZED = "UNINITIALIZED"

    #: A constant which can be used with the data_center_status property of a OlvmDataCenter.
    #: This constant has a value of "UP"
    DATA_CENTER_STATUS_UP = "UP"

    #: A constant which can be used with the storage_format property of a OlvmDataCenter.
    #: This constant has a value of "V1"
    STORAGE_FORMAT_V1 = "V1"

    #: A constant which can be used with the storage_format property of a OlvmDataCenter.
    #: This constant has a value of "V2"
    STORAGE_FORMAT_V2 = "V2"

    #: A constant which can be used with the storage_format property of a OlvmDataCenter.
    #: This constant has a value of "V3"
    STORAGE_FORMAT_V3 = "V3"

    #: A constant which can be used with the storage_format property of a OlvmDataCenter.
    #: This constant has a value of "V4"
    STORAGE_FORMAT_V4 = "V4"

    #: A constant which can be used with the storage_format property of a OlvmDataCenter.
    #: This constant has a value of "V5"
    STORAGE_FORMAT_V5 = "V5"

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

        :param comment:
            The value to assign to the comment property of this OlvmDataCenter.
        :type comment: str

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

        :param id:
            The value to assign to the id property of this OlvmDataCenter.
        :type id: str

        :param name:
            The value to assign to the name property of this OlvmDataCenter.
        :type name: str

        :param is_local:
            The value to assign to the is_local property of this OlvmDataCenter.
        :type is_local: bool

        :param quota_mode_type:
            The value to assign to the quota_mode_type property of this OlvmDataCenter.
            Allowed values for this property are: "AUDIT", "DISABLED", "ENABLED"
        :type quota_mode_type: str

        :param data_center_status:
            The value to assign to the data_center_status property of this OlvmDataCenter.
            Allowed values for this property are: "CONTEND", "MAINTENANCE", "NOT_OPERATIONAL", "PROBLEMATIC", "UNINITIALIZED", "UP"
        :type data_center_status: str

        :param storage_format:
            The value to assign to the storage_format property of this OlvmDataCenter.
            Allowed values for this property are: "V1", "V2", "V3", "V4", "V5"
        :type storage_format: str

        :param supported_versions:
            The value to assign to the supported_versions property of this OlvmDataCenter.
        :type supported_versions: list[oci.cloud_bridge.models.OlvmVersion]

        :param version:
            The value to assign to the version property of this OlvmDataCenter.
        :type version: oci.cloud_bridge.models.OlvmVersion

        """
        self.swagger_types = {
            'comment': 'str',
            'description': 'str',
            'id': 'str',
            'name': 'str',
            'is_local': 'bool',
            'quota_mode_type': 'str',
            'data_center_status': 'str',
            'storage_format': 'str',
            'supported_versions': 'list[OlvmVersion]',
            'version': 'OlvmVersion'
        }
        self.attribute_map = {
            'comment': 'comment',
            'description': 'description',
            'id': 'id',
            'name': 'name',
            'is_local': 'isLocal',
            'quota_mode_type': 'quotaModeType',
            'data_center_status': 'dataCenterStatus',
            'storage_format': 'storageFormat',
            'supported_versions': 'supportedVersions',
            'version': 'version'
        }
        self._comment = None
        self._description = None
        self._id = None
        self._name = None
        self._is_local = None
        self._quota_mode_type = None
        self._data_center_status = None
        self._storage_format = None
        self._supported_versions = None
        self._version = None

    @property
    def comment(self):
        """
        Gets the comment of this OlvmDataCenter.
        Free text containing comments about this object.


        :return: The comment of this OlvmDataCenter.
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """
        Sets the comment of this OlvmDataCenter.
        Free text containing comments about this object.


        :param comment: The comment of this OlvmDataCenter.
        :type: str
        """
        self._comment = comment

    @property
    def description(self):
        """
        Gets the description of this OlvmDataCenter.
        A human-readable description in plain text.


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

    @description.setter
    def description(self, description):
        """
        Sets the description of this OlvmDataCenter.
        A human-readable description in plain text.


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

    @property
    def id(self):
        """
        Gets the id of this OlvmDataCenter.
        A unique identifier.


        :return: The id of this OlvmDataCenter.
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """
        Sets the id of this OlvmDataCenter.
        A unique identifier.


        :param id: The id of this OlvmDataCenter.
        :type: str
        """
        self._id = id

    @property
    def name(self):
        """
        Gets the name of this OlvmDataCenter.
        A human-readable name in plain text.


        :return: The name of this OlvmDataCenter.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this OlvmDataCenter.
        A human-readable name in plain text.


        :param name: The name of this OlvmDataCenter.
        :type: str
        """
        self._name = name

    @property
    def is_local(self):
        """
        Gets the is_local of this OlvmDataCenter.
        Whether the data center is local.


        :return: The is_local of this OlvmDataCenter.
        :rtype: bool
        """
        return self._is_local

    @is_local.setter
    def is_local(self, is_local):
        """
        Sets the is_local of this OlvmDataCenter.
        Whether the data center is local.


        :param is_local: The is_local of this OlvmDataCenter.
        :type: bool
        """
        self._is_local = is_local

    @property
    def quota_mode_type(self):
        """
        Gets the quota_mode_type of this OlvmDataCenter.
        The type of quota mode

        Allowed values for this property are: "AUDIT", "DISABLED", "ENABLED"


        :return: The quota_mode_type of this OlvmDataCenter.
        :rtype: str
        """
        return self._quota_mode_type

    @quota_mode_type.setter
    def quota_mode_type(self, quota_mode_type):
        """
        Sets the quota_mode_type of this OlvmDataCenter.
        The type of quota mode


        :param quota_mode_type: The quota_mode_type of this OlvmDataCenter.
        :type: str
        """
        allowed_values = ["AUDIT", "DISABLED", "ENABLED"]
        if not value_allowed_none_or_none_sentinel(quota_mode_type, allowed_values):
            raise ValueError(
                f"Invalid value for `quota_mode_type`, must be None or one of {allowed_values}"
            )
        self._quota_mode_type = quota_mode_type

    @property
    def data_center_status(self):
        """
        Gets the data_center_status of this OlvmDataCenter.
        The status of data center

        Allowed values for this property are: "CONTEND", "MAINTENANCE", "NOT_OPERATIONAL", "PROBLEMATIC", "UNINITIALIZED", "UP"


        :return: The data_center_status of this OlvmDataCenter.
        :rtype: str
        """
        return self._data_center_status

    @data_center_status.setter
    def data_center_status(self, data_center_status):
        """
        Sets the data_center_status of this OlvmDataCenter.
        The status of data center


        :param data_center_status: The data_center_status of this OlvmDataCenter.
        :type: str
        """
        allowed_values = ["CONTEND", "MAINTENANCE", "NOT_OPERATIONAL", "PROBLEMATIC", "UNINITIALIZED", "UP"]
        if not value_allowed_none_or_none_sentinel(data_center_status, allowed_values):
            raise ValueError(
                f"Invalid value for `data_center_status`, must be None or one of {allowed_values}"
            )
        self._data_center_status = data_center_status

    @property
    def storage_format(self):
        """
        Gets the storage_format of this OlvmDataCenter.
        Type which represents a format of storage domain

        Allowed values for this property are: "V1", "V2", "V3", "V4", "V5"


        :return: The storage_format of this OlvmDataCenter.
        :rtype: str
        """
        return self._storage_format

    @storage_format.setter
    def storage_format(self, storage_format):
        """
        Sets the storage_format of this OlvmDataCenter.
        Type which represents a format of storage domain


        :param storage_format: The storage_format of this OlvmDataCenter.
        :type: str
        """
        allowed_values = ["V1", "V2", "V3", "V4", "V5"]
        if not value_allowed_none_or_none_sentinel(storage_format, allowed_values):
            raise ValueError(
                f"Invalid value for `storage_format`, must be None or one of {allowed_values}"
            )
        self._storage_format = storage_format

    @property
    def supported_versions(self):
        """
        Gets the supported_versions of this OlvmDataCenter.
        List of supported versions.


        :return: The supported_versions of this OlvmDataCenter.
        :rtype: list[oci.cloud_bridge.models.OlvmVersion]
        """
        return self._supported_versions

    @supported_versions.setter
    def supported_versions(self, supported_versions):
        """
        Sets the supported_versions of this OlvmDataCenter.
        List of supported versions.


        :param supported_versions: The supported_versions of this OlvmDataCenter.
        :type: list[oci.cloud_bridge.models.OlvmVersion]
        """
        self._supported_versions = supported_versions

    @property
    def version(self):
        """
        Gets the version of this OlvmDataCenter.

        :return: The version of this OlvmDataCenter.
        :rtype: oci.cloud_bridge.models.OlvmVersion
        """
        return self._version

    @version.setter
    def version(self, version):
        """
        Sets the version of this OlvmDataCenter.

        :param version: The version of this OlvmDataCenter.
        :type: oci.cloud_bridge.models.OlvmVersion
        """
        self._version = version

    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
