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


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 NodePoolSecondaryVnicDetails(object):
    """
    Details for secondary vnic attachments to Nodes
    """

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

        :param create_vnic_details:
            The value to assign to the create_vnic_details property of this NodePoolSecondaryVnicDetails.
        :type create_vnic_details: oci.container_engine.models.CreateVnicDetails

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

        :param nic_index:
            The value to assign to the nic_index property of this NodePoolSecondaryVnicDetails.
        :type nic_index: int

        """
        self.swagger_types = {
            'create_vnic_details': 'CreateVnicDetails',
            'display_name': 'str',
            'nic_index': 'int'
        }
        self.attribute_map = {
            'create_vnic_details': 'createVnicDetails',
            'display_name': 'displayName',
            'nic_index': 'nicIndex'
        }
        self._create_vnic_details = None
        self._display_name = None
        self._nic_index = None

    @property
    def create_vnic_details(self):
        """
        **[Required]** Gets the create_vnic_details of this NodePoolSecondaryVnicDetails.

        :return: The create_vnic_details of this NodePoolSecondaryVnicDetails.
        :rtype: oci.container_engine.models.CreateVnicDetails
        """
        return self._create_vnic_details

    @create_vnic_details.setter
    def create_vnic_details(self, create_vnic_details):
        """
        Sets the create_vnic_details of this NodePoolSecondaryVnicDetails.

        :param create_vnic_details: The create_vnic_details of this NodePoolSecondaryVnicDetails.
        :type: oci.container_engine.models.CreateVnicDetails
        """
        self._create_vnic_details = create_vnic_details

    @property
    def display_name(self):
        """
        Gets the display_name of this NodePoolSecondaryVnicDetails.
        Display name for vnic attachment


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

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this NodePoolSecondaryVnicDetails.
        Display name for vnic attachment


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

    @property
    def nic_index(self):
        """
        Gets the nic_index of this NodePoolSecondaryVnicDetails.
        Which physical network interface card (NIC) the VNIC will use


        :return: The nic_index of this NodePoolSecondaryVnicDetails.
        :rtype: int
        """
        return self._nic_index

    @nic_index.setter
    def nic_index(self, nic_index):
        """
        Sets the nic_index of this NodePoolSecondaryVnicDetails.
        Which physical network interface card (NIC) the VNIC will use


        :param nic_index: The nic_index of this NodePoolSecondaryVnicDetails.
        :type: int
        """
        self._nic_index = nic_index

    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
