# 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 UpdateVmClusterNetworkDetails(object):
    """
    Details for an VM cluster network.
    """

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

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

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

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

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

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

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

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

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

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

        """
        self.swagger_types = {
            'display_name': 'str',
            'scans': 'list[ScanDetails]',
            'listener_port': 'int',
            'listener_port_ssl': 'int',
            'dns_servers': 'list[str]',
            'ntp_servers': 'list[str]',
            'vm_networks': 'list[VmNetworkDetails]',
            'freeform_tags': 'dict(str, str)',
            'defined_tags': 'dict(str, dict(str, object))'
        }
        self.attribute_map = {
            'display_name': 'displayName',
            'scans': 'scans',
            'listener_port': 'listenerPort',
            'listener_port_ssl': 'listenerPortSsl',
            'dns_servers': 'dnsServers',
            'ntp_servers': 'ntpServers',
            'vm_networks': 'vmNetworks',
            'freeform_tags': 'freeformTags',
            'defined_tags': 'definedTags'
        }
        self._display_name = 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._freeform_tags = None
        self._defined_tags = None

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


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

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this UpdateVmClusterNetworkDetails.
        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 UpdateVmClusterNetworkDetails.
        :type: str
        """
        self._display_name = display_name

    @property
    def scans(self):
        """
        Gets the scans of this UpdateVmClusterNetworkDetails.
        The SCAN details.


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

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


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

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


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

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


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

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


        :return: The listener_port_ssl of this UpdateVmClusterNetworkDetails.
        :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 UpdateVmClusterNetworkDetails.
        The listener TCP/IP SSL port. Default is 2484.


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

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


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

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


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

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


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

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


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

    @property
    def vm_networks(self):
        """
        Gets the vm_networks of this UpdateVmClusterNetworkDetails.
        Details of the client and backup networks.


        :return: The vm_networks of this UpdateVmClusterNetworkDetails.
        :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 UpdateVmClusterNetworkDetails.
        Details of the client and backup networks.


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

    @property
    def freeform_tags(self):
        """
        Gets the freeform_tags of this UpdateVmClusterNetworkDetails.
        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 UpdateVmClusterNetworkDetails.
        :rtype: dict(str, str)
        """
        return self._freeform_tags

    @freeform_tags.setter
    def freeform_tags(self, freeform_tags):
        """
        Sets the freeform_tags of this UpdateVmClusterNetworkDetails.
        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 UpdateVmClusterNetworkDetails.
        :type: dict(str, str)
        """
        self._freeform_tags = freeform_tags

    @property
    def defined_tags(self):
        """
        Gets the defined_tags of this UpdateVmClusterNetworkDetails.
        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 UpdateVmClusterNetworkDetails.
        :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 UpdateVmClusterNetworkDetails.
        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 UpdateVmClusterNetworkDetails.
        :type: dict(str, dict(str, object))
        """
        self._defined_tags = defined_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
