# coding: utf-8
# Copyright (c) 2016, 2025, 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: 20220125


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 ComputeInstanceNonMovableBlockVolumeOperation(object):
    """
    Deprecated. Use the 'ComputeInstanceNonMovableBlockVolumeAttachAndMountOperationsDetails' definition instead of this.
    The details of operations performed on a block volume.
    """

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

        :param block_volume_id:
            The value to assign to the block_volume_id property of this ComputeInstanceNonMovableBlockVolumeOperation.
        :type block_volume_id: str

        :param attachment_details:
            The value to assign to the attachment_details property of this ComputeInstanceNonMovableBlockVolumeOperation.
        :type attachment_details: oci.disaster_recovery.models.BlockVolumeAttachmentDetails

        :param mount_details:
            The value to assign to the mount_details property of this ComputeInstanceNonMovableBlockVolumeOperation.
        :type mount_details: oci.disaster_recovery.models.BlockVolumeMountDetails

        """
        self.swagger_types = {
            'block_volume_id': 'str',
            'attachment_details': 'BlockVolumeAttachmentDetails',
            'mount_details': 'BlockVolumeMountDetails'
        }
        self.attribute_map = {
            'block_volume_id': 'blockVolumeId',
            'attachment_details': 'attachmentDetails',
            'mount_details': 'mountDetails'
        }
        self._block_volume_id = None
        self._attachment_details = None
        self._mount_details = None

    @property
    def block_volume_id(self):
        """
        **[Required]** Gets the block_volume_id of this ComputeInstanceNonMovableBlockVolumeOperation.
        The OCID of the block volume.

        Example: `ocid1.volume.oc1..uniqueID`


        :return: The block_volume_id of this ComputeInstanceNonMovableBlockVolumeOperation.
        :rtype: str
        """
        return self._block_volume_id

    @block_volume_id.setter
    def block_volume_id(self, block_volume_id):
        """
        Sets the block_volume_id of this ComputeInstanceNonMovableBlockVolumeOperation.
        The OCID of the block volume.

        Example: `ocid1.volume.oc1..uniqueID`


        :param block_volume_id: The block_volume_id of this ComputeInstanceNonMovableBlockVolumeOperation.
        :type: str
        """
        self._block_volume_id = block_volume_id

    @property
    def attachment_details(self):
        """
        Gets the attachment_details of this ComputeInstanceNonMovableBlockVolumeOperation.

        :return: The attachment_details of this ComputeInstanceNonMovableBlockVolumeOperation.
        :rtype: oci.disaster_recovery.models.BlockVolumeAttachmentDetails
        """
        return self._attachment_details

    @attachment_details.setter
    def attachment_details(self, attachment_details):
        """
        Sets the attachment_details of this ComputeInstanceNonMovableBlockVolumeOperation.

        :param attachment_details: The attachment_details of this ComputeInstanceNonMovableBlockVolumeOperation.
        :type: oci.disaster_recovery.models.BlockVolumeAttachmentDetails
        """
        self._attachment_details = attachment_details

    @property
    def mount_details(self):
        """
        Gets the mount_details of this ComputeInstanceNonMovableBlockVolumeOperation.

        :return: The mount_details of this ComputeInstanceNonMovableBlockVolumeOperation.
        :rtype: oci.disaster_recovery.models.BlockVolumeMountDetails
        """
        return self._mount_details

    @mount_details.setter
    def mount_details(self, mount_details):
        """
        Sets the mount_details of this ComputeInstanceNonMovableBlockVolumeOperation.

        :param mount_details: The mount_details of this ComputeInstanceNonMovableBlockVolumeOperation.
        :type: oci.disaster_recovery.models.BlockVolumeMountDetails
        """
        self._mount_details = mount_details

    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
