# 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 OlvmNicConfiguration(object):
    """
    The type describes the configuration of a virtual network interface.
    """

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

        :param boot_protocol:
            The value to assign to the boot_protocol property of this OlvmNicConfiguration.
        :type boot_protocol: oci.cloud_migrations.models.OlvmBootProtocol

        :param ip:
            The value to assign to the ip property of this OlvmNicConfiguration.
        :type ip: oci.cloud_migrations.models.OlvmIp

        :param ipv6:
            The value to assign to the ipv6 property of this OlvmNicConfiguration.
        :type ipv6: oci.cloud_migrations.models.OlvmIp

        :param ipv6_boot_protocol:
            The value to assign to the ipv6_boot_protocol property of this OlvmNicConfiguration.
        :type ipv6_boot_protocol: oci.cloud_migrations.models.OlvmBootProtocol

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

        :param is_on_boot:
            The value to assign to the is_on_boot property of this OlvmNicConfiguration.
        :type is_on_boot: bool

        """
        self.swagger_types = {
            'boot_protocol': 'OlvmBootProtocol',
            'ip': 'OlvmIp',
            'ipv6': 'OlvmIp',
            'ipv6_boot_protocol': 'OlvmBootProtocol',
            'name': 'str',
            'is_on_boot': 'bool'
        }
        self.attribute_map = {
            'boot_protocol': 'bootProtocol',
            'ip': 'ip',
            'ipv6': 'ipv6',
            'ipv6_boot_protocol': 'ipv6BootProtocol',
            'name': 'name',
            'is_on_boot': 'isOnBoot'
        }
        self._boot_protocol = None
        self._ip = None
        self._ipv6 = None
        self._ipv6_boot_protocol = None
        self._name = None
        self._is_on_boot = None

    @property
    def boot_protocol(self):
        """
        Gets the boot_protocol of this OlvmNicConfiguration.

        :return: The boot_protocol of this OlvmNicConfiguration.
        :rtype: oci.cloud_migrations.models.OlvmBootProtocol
        """
        return self._boot_protocol

    @boot_protocol.setter
    def boot_protocol(self, boot_protocol):
        """
        Sets the boot_protocol of this OlvmNicConfiguration.

        :param boot_protocol: The boot_protocol of this OlvmNicConfiguration.
        :type: oci.cloud_migrations.models.OlvmBootProtocol
        """
        self._boot_protocol = boot_protocol

    @property
    def ip(self):
        """
        Gets the ip of this OlvmNicConfiguration.

        :return: The ip of this OlvmNicConfiguration.
        :rtype: oci.cloud_migrations.models.OlvmIp
        """
        return self._ip

    @ip.setter
    def ip(self, ip):
        """
        Sets the ip of this OlvmNicConfiguration.

        :param ip: The ip of this OlvmNicConfiguration.
        :type: oci.cloud_migrations.models.OlvmIp
        """
        self._ip = ip

    @property
    def ipv6(self):
        """
        Gets the ipv6 of this OlvmNicConfiguration.

        :return: The ipv6 of this OlvmNicConfiguration.
        :rtype: oci.cloud_migrations.models.OlvmIp
        """
        return self._ipv6

    @ipv6.setter
    def ipv6(self, ipv6):
        """
        Sets the ipv6 of this OlvmNicConfiguration.

        :param ipv6: The ipv6 of this OlvmNicConfiguration.
        :type: oci.cloud_migrations.models.OlvmIp
        """
        self._ipv6 = ipv6

    @property
    def ipv6_boot_protocol(self):
        """
        Gets the ipv6_boot_protocol of this OlvmNicConfiguration.

        :return: The ipv6_boot_protocol of this OlvmNicConfiguration.
        :rtype: oci.cloud_migrations.models.OlvmBootProtocol
        """
        return self._ipv6_boot_protocol

    @ipv6_boot_protocol.setter
    def ipv6_boot_protocol(self, ipv6_boot_protocol):
        """
        Sets the ipv6_boot_protocol of this OlvmNicConfiguration.

        :param ipv6_boot_protocol: The ipv6_boot_protocol of this OlvmNicConfiguration.
        :type: oci.cloud_migrations.models.OlvmBootProtocol
        """
        self._ipv6_boot_protocol = ipv6_boot_protocol

    @property
    def name(self):
        """
        Gets the name of this OlvmNicConfiguration.
        Network interface name.


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

    @name.setter
    def name(self, name):
        """
        Sets the name of this OlvmNicConfiguration.
        Network interface name.


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

    @property
    def is_on_boot(self):
        """
        Gets the is_on_boot of this OlvmNicConfiguration.
        Specifies whether the network interface should be activated on the virtual machine guest operating system boot.


        :return: The is_on_boot of this OlvmNicConfiguration.
        :rtype: bool
        """
        return self._is_on_boot

    @is_on_boot.setter
    def is_on_boot(self, is_on_boot):
        """
        Sets the is_on_boot of this OlvmNicConfiguration.
        Specifies whether the network interface should be activated on the virtual machine guest operating system boot.


        :param is_on_boot: The is_on_boot of this OlvmNicConfiguration.
        :type: bool
        """
        self._is_on_boot = is_on_boot

    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
