# 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 PatchSubnetDetails(object):
    """
    The request to patch the subnet.
    Example:
    {
    \"patchSubnetInstructions\": [
    {
    \"operation\": \"REPLACE\",
    \"selection\": \"ipv6CidrBlock\",
    \"value\": {\"cidr\": \"2001::/56\"}
    },
    {
    \"operation\": \"REPLACE\",
    \"selection\": \"ipv6CidrBlocks\",
    \"value\": { \"cidrs\": [ \"2001:db8:1234:1111::/64\", \"2001:db8:1234:2121::/64\" ] }
    }
    ]
    }
    """

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

        :param patch_subnet_instructions:
            The value to assign to the patch_subnet_instructions property of this PatchSubnetDetails.
        :type patch_subnet_instructions: list[oci.core.models.PatchSubnetInstruction]

        """
        self.swagger_types = {
            'patch_subnet_instructions': 'list[PatchSubnetInstruction]'
        }
        self.attribute_map = {
            'patch_subnet_instructions': 'patchSubnetInstructions'
        }
        self._patch_subnet_instructions = None

    @property
    def patch_subnet_instructions(self):
        """
        **[Required]** Gets the patch_subnet_instructions of this PatchSubnetDetails.
        List of patch instructions for Subnet.


        :return: The patch_subnet_instructions of this PatchSubnetDetails.
        :rtype: list[oci.core.models.PatchSubnetInstruction]
        """
        return self._patch_subnet_instructions

    @patch_subnet_instructions.setter
    def patch_subnet_instructions(self, patch_subnet_instructions):
        """
        Sets the patch_subnet_instructions of this PatchSubnetDetails.
        List of patch instructions for Subnet.


        :param patch_subnet_instructions: The patch_subnet_instructions of this PatchSubnetDetails.
        :type: list[oci.core.models.PatchSubnetInstruction]
        """
        self._patch_subnet_instructions = patch_subnet_instructions

    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
