# 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 ReplicationLocationDetail(object):
    """
    Replication location detail where the snapshots reside
    """

    #: A constant which can be used with the replication_location_type property of a ReplicationLocationDetail.
    #: This constant has a value of "OCI_OBJECT_STORE"
    REPLICATION_LOCATION_TYPE_OCI_OBJECT_STORE = "OCI_OBJECT_STORE"

    #: A constant which can be used with the replication_location_type property of a ReplicationLocationDetail.
    #: This constant has a value of "OLVM_STORAGE_DOMAIN"
    REPLICATION_LOCATION_TYPE_OLVM_STORAGE_DOMAIN = "OLVM_STORAGE_DOMAIN"

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

        :param replication_location_type:
            The value to assign to the replication_location_type property of this ReplicationLocationDetail.
            Allowed values for this property are: "OCI_OBJECT_STORE", "OLVM_STORAGE_DOMAIN", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type replication_location_type: str

        :param metadata:
            The value to assign to the metadata property of this ReplicationLocationDetail.
        :type metadata: object

        """
        self.swagger_types = {
            'replication_location_type': 'str',
            'metadata': 'object'
        }
        self.attribute_map = {
            'replication_location_type': 'replicationLocationType',
            'metadata': 'metadata'
        }
        self._replication_location_type = None
        self._metadata = None

    @property
    def replication_location_type(self):
        """
        Gets the replication_location_type of this ReplicationLocationDetail.
        The type of replication location

        Allowed values for this property are: "OCI_OBJECT_STORE", "OLVM_STORAGE_DOMAIN", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The replication_location_type of this ReplicationLocationDetail.
        :rtype: str
        """
        return self._replication_location_type

    @replication_location_type.setter
    def replication_location_type(self, replication_location_type):
        """
        Sets the replication_location_type of this ReplicationLocationDetail.
        The type of replication location


        :param replication_location_type: The replication_location_type of this ReplicationLocationDetail.
        :type: str
        """
        allowed_values = ["OCI_OBJECT_STORE", "OLVM_STORAGE_DOMAIN"]
        if not value_allowed_none_or_none_sentinel(replication_location_type, allowed_values):
            replication_location_type = 'UNKNOWN_ENUM_VALUE'
        self._replication_location_type = replication_location_type

    @property
    def metadata(self):
        """
        Gets the metadata of this ReplicationLocationDetail.
        Properties for each of the replication location types


        :return: The metadata of this ReplicationLocationDetail.
        :rtype: object
        """
        return self._metadata

    @metadata.setter
    def metadata(self, metadata):
        """
        Sets the metadata of this ReplicationLocationDetail.
        Properties for each of the replication location types


        :param metadata: The metadata of this ReplicationLocationDetail.
        :type: object
        """
        self._metadata = metadata

    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
