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


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 BulkCreatePrivateIpsDetails(object):
    """
    Details used to create secondary private IPv4 addresses in a bulk operation.
    """

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

        :param vnic_id:
            The value to assign to the vnic_id property of this BulkCreatePrivateIpsDetails.
        :type vnic_id: str

        :param vlan_id:
            The value to assign to the vlan_id property of this BulkCreatePrivateIpsDetails.
        :type vlan_id: str

        :param subnet_id:
            The value to assign to the subnet_id property of this BulkCreatePrivateIpsDetails.
        :type subnet_id: str

        :param bulk_create_private_ip_item:
            The value to assign to the bulk_create_private_ip_item property of this BulkCreatePrivateIpsDetails.
        :type bulk_create_private_ip_item: list[oci.core.models.BulkCreatePrivateIpItem]

        """
        self.swagger_types = {
            'vnic_id': 'str',
            'vlan_id': 'str',
            'subnet_id': 'str',
            'bulk_create_private_ip_item': 'list[BulkCreatePrivateIpItem]'
        }
        self.attribute_map = {
            'vnic_id': 'vnicId',
            'vlan_id': 'vlanId',
            'subnet_id': 'subnetId',
            'bulk_create_private_ip_item': 'bulkCreatePrivateIpItem'
        }
        self._vnic_id = None
        self._vlan_id = None
        self._subnet_id = None
        self._bulk_create_private_ip_item = None

    @property
    def vnic_id(self):
        """
        Gets the vnic_id of this BulkCreatePrivateIpsDetails.
        The `OCID`__ of the VNIC to assign the private IPs to. The VNIC and private IPs must be in the same subnet.

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


        :return: The vnic_id of this BulkCreatePrivateIpsDetails.
        :rtype: str
        """
        return self._vnic_id

    @vnic_id.setter
    def vnic_id(self, vnic_id):
        """
        Sets the vnic_id of this BulkCreatePrivateIpsDetails.
        The `OCID`__ of the VNIC to assign the private IPs to. The VNIC and private IPs must be in the same subnet.

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


        :param vnic_id: The vnic_id of this BulkCreatePrivateIpsDetails.
        :type: str
        """
        self._vnic_id = vnic_id

    @property
    def vlan_id(self):
        """
        Gets the vlan_id of this BulkCreatePrivateIpsDetails.
        Use this attribute only with the Oracle Cloud VMware Solution. The `OCID`__ of the VLAN from which the private IPs is to be drawn. The IP addresses, *if supplied*, must be valid for the given VLAN. See :class:`Vlan`.

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


        :return: The vlan_id of this BulkCreatePrivateIpsDetails.
        :rtype: str
        """
        return self._vlan_id

    @vlan_id.setter
    def vlan_id(self, vlan_id):
        """
        Sets the vlan_id of this BulkCreatePrivateIpsDetails.
        Use this attribute only with the Oracle Cloud VMware Solution. The `OCID`__ of the VLAN from which the private IPs is to be drawn. The IP addresses, *if supplied*, must be valid for the given VLAN. See :class:`Vlan`.

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


        :param vlan_id: The vlan_id of this BulkCreatePrivateIpsDetails.
        :type: str
        """
        self._vlan_id = vlan_id

    @property
    def subnet_id(self):
        """
        Gets the subnet_id of this BulkCreatePrivateIpsDetails.
        The `OCID`__ of the subnet from which the private IPs is to be drawn. The IP addresses,
        *if supplied*, must be valid for the given subnet.

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


        :return: The subnet_id of this BulkCreatePrivateIpsDetails.
        :rtype: str
        """
        return self._subnet_id

    @subnet_id.setter
    def subnet_id(self, subnet_id):
        """
        Sets the subnet_id of this BulkCreatePrivateIpsDetails.
        The `OCID`__ of the subnet from which the private IPs is to be drawn. The IP addresses,
        *if supplied*, must be valid for the given subnet.

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


        :param subnet_id: The subnet_id of this BulkCreatePrivateIpsDetails.
        :type: str
        """
        self._subnet_id = subnet_id

    @property
    def bulk_create_private_ip_item(self):
        """
        **[Required]** Gets the bulk_create_private_ip_item of this BulkCreatePrivateIpsDetails.
        A secondary IPv4 address to assign.


        :return: The bulk_create_private_ip_item of this BulkCreatePrivateIpsDetails.
        :rtype: list[oci.core.models.BulkCreatePrivateIpItem]
        """
        return self._bulk_create_private_ip_item

    @bulk_create_private_ip_item.setter
    def bulk_create_private_ip_item(self, bulk_create_private_ip_item):
        """
        Sets the bulk_create_private_ip_item of this BulkCreatePrivateIpsDetails.
        A secondary IPv4 address to assign.


        :param bulk_create_private_ip_item: The bulk_create_private_ip_item of this BulkCreatePrivateIpsDetails.
        :type: list[oci.core.models.BulkCreatePrivateIpItem]
        """
        self._bulk_create_private_ip_item = bulk_create_private_ip_item

    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
