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


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 VmClusterNetwork(object):
    """
    Details of the VM cluster network on Database Infrastructure.
    """

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "CREATING"
    LIFECYCLE_STATE_CREATING = "CREATING"

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "REQUIRES_VALIDATION"
    LIFECYCLE_STATE_REQUIRES_VALIDATION = "REQUIRES_VALIDATION"

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "VALIDATING"
    LIFECYCLE_STATE_VALIDATING = "VALIDATING"

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "VALIDATED"
    LIFECYCLE_STATE_VALIDATED = "VALIDATED"

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "VALIDATION_FAILED"
    LIFECYCLE_STATE_VALIDATION_FAILED = "VALIDATION_FAILED"

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "UPDATING"
    LIFECYCLE_STATE_UPDATING = "UPDATING"

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "ALLOCATED"
    LIFECYCLE_STATE_ALLOCATED = "ALLOCATED"

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "DELETING"
    LIFECYCLE_STATE_DELETING = "DELETING"

    #: A constant which can be used with the lifecycle_state property of a VmClusterNetwork.
    #: This constant has a value of "DELETED"
    LIFECYCLE_STATE_DELETED = "DELETED"

    #: A constant which can be used with the consumer_type property of a VmClusterNetwork.
    #: This constant has a value of "INSTANCE"
    CONSUMER_TYPE_INSTANCE = "INSTANCE"

    #: A constant which can be used with the consumer_type property of a VmClusterNetwork.
    #: This constant has a value of "CLUSTER"
    CONSUMER_TYPE_CLUSTER = "CLUSTER"

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

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

        :param compartment_id:
            The value to assign to the compartment_id property of this VmClusterNetwork.
        :type compartment_id: str

        :param node_count:
            The value to assign to the node_count property of this VmClusterNetwork.
        :type node_count: int

        :param infrastructure_id:
            The value to assign to the infrastructure_id property of this VmClusterNetwork.
        :type infrastructure_id: str

        :param base_vm_cluster_id:
            The value to assign to the base_vm_cluster_id property of this VmClusterNetwork.
        :type base_vm_cluster_id: str

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

        :param is_scan_enabled:
            The value to assign to the is_scan_enabled property of this VmClusterNetwork.
        :type is_scan_enabled: bool

        :param scans:
            The value to assign to the scans property of this VmClusterNetwork.
        :type scans: list[oci.datacc.models.ScanDetails]

        :param listener_port:
            The value to assign to the listener_port property of this VmClusterNetwork.
        :type listener_port: int

        :param listener_port_ssl:
            The value to assign to the listener_port_ssl property of this VmClusterNetwork.
        :type listener_port_ssl: int

        :param dns_servers:
            The value to assign to the dns_servers property of this VmClusterNetwork.
        :type dns_servers: list[str]

        :param ntp_servers:
            The value to assign to the ntp_servers property of this VmClusterNetwork.
        :type ntp_servers: list[str]

        :param vm_networks:
            The value to assign to the vm_networks property of this VmClusterNetwork.
        :type vm_networks: list[oci.datacc.models.VmNetworkDetails]

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this VmClusterNetwork.
            Allowed values for this property are: "CREATING", "REQUIRES_VALIDATION", "VALIDATING", "VALIDATED", "VALIDATION_FAILED", "UPDATING", "ALLOCATED", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param time_created:
            The value to assign to the time_created property of this VmClusterNetwork.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this VmClusterNetwork.
        :type time_updated: datetime

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this VmClusterNetwork.
        :type lifecycle_details: str

        :param associated_resource_id:
            The value to assign to the associated_resource_id property of this VmClusterNetwork.
        :type associated_resource_id: str

        :param consumer_type:
            The value to assign to the consumer_type property of this VmClusterNetwork.
            Allowed values for this property are: "INSTANCE", "CLUSTER", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type consumer_type: str

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

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

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

        """
        self.swagger_types = {
            'id': 'str',
            'compartment_id': 'str',
            'node_count': 'int',
            'infrastructure_id': 'str',
            'base_vm_cluster_id': 'str',
            'display_name': 'str',
            'is_scan_enabled': 'bool',
            'scans': 'list[ScanDetails]',
            'listener_port': 'int',
            'listener_port_ssl': 'int',
            'dns_servers': 'list[str]',
            'ntp_servers': 'list[str]',
            'vm_networks': 'list[VmNetworkDetails]',
            'lifecycle_state': 'str',
            'time_created': 'datetime',
            'time_updated': 'datetime',
            'lifecycle_details': 'str',
            'associated_resource_id': 'str',
            'consumer_type': 'str',
            'freeform_tags': 'dict(str, str)',
            'defined_tags': 'dict(str, dict(str, object))',
            'system_tags': 'dict(str, dict(str, object))'
        }
        self.attribute_map = {
            'id': 'id',
            'compartment_id': 'compartmentId',
            'node_count': 'nodeCount',
            'infrastructure_id': 'infrastructureId',
            'base_vm_cluster_id': 'baseVmClusterId',
            'display_name': 'displayName',
            'is_scan_enabled': 'isScanEnabled',
            'scans': 'scans',
            'listener_port': 'listenerPort',
            'listener_port_ssl': 'listenerPortSsl',
            'dns_servers': 'dnsServers',
            'ntp_servers': 'ntpServers',
            'vm_networks': 'vmNetworks',
            'lifecycle_state': 'lifecycleState',
            'time_created': 'timeCreated',
            'time_updated': 'timeUpdated',
            'lifecycle_details': 'lifecycleDetails',
            'associated_resource_id': 'associatedResourceId',
            'consumer_type': 'consumerType',
            'freeform_tags': 'freeformTags',
            'defined_tags': 'definedTags',
            'system_tags': 'systemTags'
        }
        self._id = None
        self._compartment_id = None
        self._node_count = None
        self._infrastructure_id = None
        self._base_vm_cluster_id = None
        self._display_name = None
        self._is_scan_enabled = None
        self._scans = None
        self._listener_port = None
        self._listener_port_ssl = None
        self._dns_servers = None
        self._ntp_servers = None
        self._vm_networks = None
        self._lifecycle_state = None
        self._time_created = None
        self._time_updated = None
        self._lifecycle_details = None
        self._associated_resource_id = None
        self._consumer_type = None
        self._freeform_tags = None
        self._defined_tags = None
        self._system_tags = None

    @property
    def id(self):
        """
        **[Required]** Gets the id of this VmClusterNetwork.
        The `OCID`__ of the VM cluster network.

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


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

    @id.setter
    def id(self, id):
        """
        Sets the id of this VmClusterNetwork.
        The `OCID`__ of the VM cluster network.

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


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

    @property
    def compartment_id(self):
        """
        **[Required]** Gets the compartment_id of this VmClusterNetwork.
        The `OCID`__ of the compartment containing the VM cluster network.

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


        :return: The compartment_id of this VmClusterNetwork.
        :rtype: str
        """
        return self._compartment_id

    @compartment_id.setter
    def compartment_id(self, compartment_id):
        """
        Sets the compartment_id of this VmClusterNetwork.
        The `OCID`__ of the compartment containing the VM cluster network.

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


        :param compartment_id: The compartment_id of this VmClusterNetwork.
        :type: str
        """
        self._compartment_id = compartment_id

    @property
    def node_count(self):
        """
        Gets the node_count of this VmClusterNetwork.
        Count of virtual machines in this VM cluster.


        :return: The node_count of this VmClusterNetwork.
        :rtype: int
        """
        return self._node_count

    @node_count.setter
    def node_count(self, node_count):
        """
        Sets the node_count of this VmClusterNetwork.
        Count of virtual machines in this VM cluster.


        :param node_count: The node_count of this VmClusterNetwork.
        :type: int
        """
        self._node_count = node_count

    @property
    def infrastructure_id(self):
        """
        **[Required]** Gets the infrastructure_id of this VmClusterNetwork.
        The `OCID`__ of the Database Infrastructure.

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


        :return: The infrastructure_id of this VmClusterNetwork.
        :rtype: str
        """
        return self._infrastructure_id

    @infrastructure_id.setter
    def infrastructure_id(self, infrastructure_id):
        """
        Sets the infrastructure_id of this VmClusterNetwork.
        The `OCID`__ of the Database Infrastructure.

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


        :param infrastructure_id: The infrastructure_id of this VmClusterNetwork.
        :type: str
        """
        self._infrastructure_id = infrastructure_id

    @property
    def base_vm_cluster_id(self):
        """
        Gets the base_vm_cluster_id of this VmClusterNetwork.
        The `OCID`__ of the associated VM cluster.

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


        :return: The base_vm_cluster_id of this VmClusterNetwork.
        :rtype: str
        """
        return self._base_vm_cluster_id

    @base_vm_cluster_id.setter
    def base_vm_cluster_id(self, base_vm_cluster_id):
        """
        Sets the base_vm_cluster_id of this VmClusterNetwork.
        The `OCID`__ of the associated VM cluster.

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


        :param base_vm_cluster_id: The base_vm_cluster_id of this VmClusterNetwork.
        :type: str
        """
        self._base_vm_cluster_id = base_vm_cluster_id

    @property
    def display_name(self):
        """
        **[Required]** Gets the display_name of this VmClusterNetwork.
        The user-friendly name for the VM cluster network. The name does not need to be unique.


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

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this VmClusterNetwork.
        The user-friendly name for the VM cluster network. The name does not need to be unique.


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

    @property
    def is_scan_enabled(self):
        """
        Gets the is_scan_enabled of this VmClusterNetwork.
        Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster.


        :return: The is_scan_enabled of this VmClusterNetwork.
        :rtype: bool
        """
        return self._is_scan_enabled

    @is_scan_enabled.setter
    def is_scan_enabled(self, is_scan_enabled):
        """
        Sets the is_scan_enabled of this VmClusterNetwork.
        Indicates whether Single Client Access Name (SCAN) is enabled on the VM cluster.


        :param is_scan_enabled: The is_scan_enabled of this VmClusterNetwork.
        :type: bool
        """
        self._is_scan_enabled = is_scan_enabled

    @property
    def scans(self):
        """
        **[Required]** Gets the scans of this VmClusterNetwork.
        The SCAN details.


        :return: The scans of this VmClusterNetwork.
        :rtype: list[oci.datacc.models.ScanDetails]
        """
        return self._scans

    @scans.setter
    def scans(self, scans):
        """
        Sets the scans of this VmClusterNetwork.
        The SCAN details.


        :param scans: The scans of this VmClusterNetwork.
        :type: list[oci.datacc.models.ScanDetails]
        """
        self._scans = scans

    @property
    def listener_port(self):
        """
        Gets the listener_port of this VmClusterNetwork.
        The listener TCP/IP port.


        :return: The listener_port of this VmClusterNetwork.
        :rtype: int
        """
        return self._listener_port

    @listener_port.setter
    def listener_port(self, listener_port):
        """
        Sets the listener_port of this VmClusterNetwork.
        The listener TCP/IP port.


        :param listener_port: The listener_port of this VmClusterNetwork.
        :type: int
        """
        self._listener_port = listener_port

    @property
    def listener_port_ssl(self):
        """
        Gets the listener_port_ssl of this VmClusterNetwork.
        The listener TCP/IP SSL port.


        :return: The listener_port_ssl of this VmClusterNetwork.
        :rtype: int
        """
        return self._listener_port_ssl

    @listener_port_ssl.setter
    def listener_port_ssl(self, listener_port_ssl):
        """
        Sets the listener_port_ssl of this VmClusterNetwork.
        The listener TCP/IP SSL port.


        :param listener_port_ssl: The listener_port_ssl of this VmClusterNetwork.
        :type: int
        """
        self._listener_port_ssl = listener_port_ssl

    @property
    def dns_servers(self):
        """
        Gets the dns_servers of this VmClusterNetwork.
        The list of DNS server IP addresses. Maximum of 3 allowed.


        :return: The dns_servers of this VmClusterNetwork.
        :rtype: list[str]
        """
        return self._dns_servers

    @dns_servers.setter
    def dns_servers(self, dns_servers):
        """
        Sets the dns_servers of this VmClusterNetwork.
        The list of DNS server IP addresses. Maximum of 3 allowed.


        :param dns_servers: The dns_servers of this VmClusterNetwork.
        :type: list[str]
        """
        self._dns_servers = dns_servers

    @property
    def ntp_servers(self):
        """
        Gets the ntp_servers of this VmClusterNetwork.
        The list of NTP server IP addresses. Maximum of 3 allowed.


        :return: The ntp_servers of this VmClusterNetwork.
        :rtype: list[str]
        """
        return self._ntp_servers

    @ntp_servers.setter
    def ntp_servers(self, ntp_servers):
        """
        Sets the ntp_servers of this VmClusterNetwork.
        The list of NTP server IP addresses. Maximum of 3 allowed.


        :param ntp_servers: The ntp_servers of this VmClusterNetwork.
        :type: list[str]
        """
        self._ntp_servers = ntp_servers

    @property
    def vm_networks(self):
        """
        **[Required]** Gets the vm_networks of this VmClusterNetwork.
        Details of the client and backup networks.


        :return: The vm_networks of this VmClusterNetwork.
        :rtype: list[oci.datacc.models.VmNetworkDetails]
        """
        return self._vm_networks

    @vm_networks.setter
    def vm_networks(self, vm_networks):
        """
        Sets the vm_networks of this VmClusterNetwork.
        Details of the client and backup networks.


        :param vm_networks: The vm_networks of this VmClusterNetwork.
        :type: list[oci.datacc.models.VmNetworkDetails]
        """
        self._vm_networks = vm_networks

    @property
    def lifecycle_state(self):
        """
        Gets the lifecycle_state of this VmClusterNetwork.
        The current state of the virtual machine cluster network.

        Allowed values for this property are: "CREATING", "REQUIRES_VALIDATION", "VALIDATING", "VALIDATED", "VALIDATION_FAILED", "UPDATING", "ALLOCATED", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this VmClusterNetwork.
        :rtype: str
        """
        return self._lifecycle_state

    @lifecycle_state.setter
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this VmClusterNetwork.
        The current state of the virtual machine cluster network.


        :param lifecycle_state: The lifecycle_state of this VmClusterNetwork.
        :type: str
        """
        allowed_values = ["CREATING", "REQUIRES_VALIDATION", "VALIDATING", "VALIDATED", "VALIDATION_FAILED", "UPDATING", "ALLOCATED", "DELETING", "DELETED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state

    @property
    def time_created(self):
        """
        Gets the time_created of this VmClusterNetwork.
        The time that the VM cluster network was created. An RFC3339 formatted datetime string.


        :return: The time_created of this VmClusterNetwork.
        :rtype: datetime
        """
        return self._time_created

    @time_created.setter
    def time_created(self, time_created):
        """
        Sets the time_created of this VmClusterNetwork.
        The time that the VM cluster network was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this VmClusterNetwork.
        :type: datetime
        """
        self._time_created = time_created

    @property
    def time_updated(self):
        """
        Gets the time_updated of this VmClusterNetwork.
        The time that the VM cluster network was last updated. An RFC3339 formatted datetime string.


        :return: The time_updated of this VmClusterNetwork.
        :rtype: datetime
        """
        return self._time_updated

    @time_updated.setter
    def time_updated(self, time_updated):
        """
        Sets the time_updated of this VmClusterNetwork.
        The time that the VM cluster network was last updated. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this VmClusterNetwork.
        :type: datetime
        """
        self._time_updated = time_updated

    @property
    def lifecycle_details(self):
        """
        Gets the lifecycle_details of this VmClusterNetwork.
        Lifecycle state details of the VM cluster network.


        :return: The lifecycle_details of this VmClusterNetwork.
        :rtype: str
        """
        return self._lifecycle_details

    @lifecycle_details.setter
    def lifecycle_details(self, lifecycle_details):
        """
        Sets the lifecycle_details of this VmClusterNetwork.
        Lifecycle state details of the VM cluster network.


        :param lifecycle_details: The lifecycle_details of this VmClusterNetwork.
        :type: str
        """
        self._lifecycle_details = lifecycle_details

    @property
    def associated_resource_id(self):
        """
        Gets the associated_resource_id of this VmClusterNetwork.
        The `OCID`__ of the associated resource.

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


        :return: The associated_resource_id of this VmClusterNetwork.
        :rtype: str
        """
        return self._associated_resource_id

    @associated_resource_id.setter
    def associated_resource_id(self, associated_resource_id):
        """
        Sets the associated_resource_id of this VmClusterNetwork.
        The `OCID`__ of the associated resource.

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


        :param associated_resource_id: The associated_resource_id of this VmClusterNetwork.
        :type: str
        """
        self._associated_resource_id = associated_resource_id

    @property
    def consumer_type(self):
        """
        Gets the consumer_type of this VmClusterNetwork.
        Consumer type for the VM cluster network.

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


        :return: The consumer_type of this VmClusterNetwork.
        :rtype: str
        """
        return self._consumer_type

    @consumer_type.setter
    def consumer_type(self, consumer_type):
        """
        Sets the consumer_type of this VmClusterNetwork.
        Consumer type for the VM cluster network.


        :param consumer_type: The consumer_type of this VmClusterNetwork.
        :type: str
        """
        allowed_values = ["INSTANCE", "CLUSTER"]
        if not value_allowed_none_or_none_sentinel(consumer_type, allowed_values):
            consumer_type = 'UNKNOWN_ENUM_VALUE'
        self._consumer_type = consumer_type

    @property
    def freeform_tags(self):
        """
        Gets the freeform_tags of this VmClusterNetwork.
        Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only.
        Example: `{\"bar-key\": \"value\"}`


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

    @freeform_tags.setter
    def freeform_tags(self, freeform_tags):
        """
        Sets the freeform_tags of this VmClusterNetwork.
        Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only.
        Example: `{\"bar-key\": \"value\"}`


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

    @property
    def defined_tags(self):
        """
        Gets the defined_tags of this VmClusterNetwork.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`


        :return: The defined_tags of this VmClusterNetwork.
        :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 VmClusterNetwork.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`


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

    @property
    def system_tags(self):
        """
        Gets the system_tags of this VmClusterNetwork.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{ \"orcl-cloud\": { \"free-tier-retained\": \"true\" } }`


        :return: The system_tags of this VmClusterNetwork.
        :rtype: dict(str, dict(str, object))
        """
        return self._system_tags

    @system_tags.setter
    def system_tags(self, system_tags):
        """
        Sets the system_tags of this VmClusterNetwork.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{ \"orcl-cloud\": { \"free-tier-retained\": \"true\" } }`


        :param system_tags: The system_tags of this VmClusterNetwork.
        :type: dict(str, dict(str, object))
        """
        self._system_tags = system_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
