# 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 OlvmIscsiDetails(object):
    """
    The host iSCSI details.
    """

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

        :param address:
            The value to assign to the address property of this OlvmIscsiDetails.
        :type address: str

        :param disk_id:
            The value to assign to the disk_id property of this OlvmIscsiDetails.
        :type disk_id: str

        :param initiator:
            The value to assign to the initiator property of this OlvmIscsiDetails.
        :type initiator: str

        :param lun_mapping:
            The value to assign to the lun_mapping property of this OlvmIscsiDetails.
        :type lun_mapping: int

        :param paths:
            The value to assign to the paths property of this OlvmIscsiDetails.
        :type paths: int

        :param port:
            The value to assign to the port property of this OlvmIscsiDetails.
        :type port: int

        :param portal:
            The value to assign to the portal property of this OlvmIscsiDetails.
        :type portal: str

        :param product_id:
            The value to assign to the product_id property of this OlvmIscsiDetails.
        :type product_id: str

        :param serial:
            The value to assign to the serial property of this OlvmIscsiDetails.
        :type serial: str

        :param size_in_bytes:
            The value to assign to the size_in_bytes property of this OlvmIscsiDetails.
        :type size_in_bytes: int

        :param status:
            The value to assign to the status property of this OlvmIscsiDetails.
        :type status: str

        :param storage_domain_id:
            The value to assign to the storage_domain_id property of this OlvmIscsiDetails.
        :type storage_domain_id: str

        :param target:
            The value to assign to the target property of this OlvmIscsiDetails.
        :type target: str

        :param username:
            The value to assign to the username property of this OlvmIscsiDetails.
        :type username: str

        :param vendor_id:
            The value to assign to the vendor_id property of this OlvmIscsiDetails.
        :type vendor_id: str

        :param volume_group_id:
            The value to assign to the volume_group_id property of this OlvmIscsiDetails.
        :type volume_group_id: str

        """
        self.swagger_types = {
            'address': 'str',
            'disk_id': 'str',
            'initiator': 'str',
            'lun_mapping': 'int',
            'paths': 'int',
            'port': 'int',
            'portal': 'str',
            'product_id': 'str',
            'serial': 'str',
            'size_in_bytes': 'int',
            'status': 'str',
            'storage_domain_id': 'str',
            'target': 'str',
            'username': 'str',
            'vendor_id': 'str',
            'volume_group_id': 'str'
        }
        self.attribute_map = {
            'address': 'address',
            'disk_id': 'diskId',
            'initiator': 'initiator',
            'lun_mapping': 'lunMapping',
            'paths': 'paths',
            'port': 'port',
            'portal': 'portal',
            'product_id': 'productId',
            'serial': 'serial',
            'size_in_bytes': 'sizeInBytes',
            'status': 'status',
            'storage_domain_id': 'storageDomainId',
            'target': 'target',
            'username': 'username',
            'vendor_id': 'vendorId',
            'volume_group_id': 'volumeGroupId'
        }
        self._address = None
        self._disk_id = None
        self._initiator = None
        self._lun_mapping = None
        self._paths = None
        self._port = None
        self._portal = None
        self._product_id = None
        self._serial = None
        self._size_in_bytes = None
        self._status = None
        self._storage_domain_id = None
        self._target = None
        self._username = None
        self._vendor_id = None
        self._volume_group_id = None

    @property
    def address(self):
        """
        Gets the address of this OlvmIscsiDetails.
        Address of iSCSI


        :return: The address of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._address

    @address.setter
    def address(self, address):
        """
        Sets the address of this OlvmIscsiDetails.
        Address of iSCSI


        :param address: The address of this OlvmIscsiDetails.
        :type: str
        """
        self._address = address

    @property
    def disk_id(self):
        """
        Gets the disk_id of this OlvmIscsiDetails.
        Disk ID of iSCSI


        :return: The disk_id of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._disk_id

    @disk_id.setter
    def disk_id(self, disk_id):
        """
        Sets the disk_id of this OlvmIscsiDetails.
        Disk ID of iSCSI


        :param disk_id: The disk_id of this OlvmIscsiDetails.
        :type: str
        """
        self._disk_id = disk_id

    @property
    def initiator(self):
        """
        Gets the initiator of this OlvmIscsiDetails.
        Initiator of iSCSI


        :return: The initiator of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._initiator

    @initiator.setter
    def initiator(self, initiator):
        """
        Sets the initiator of this OlvmIscsiDetails.
        Initiator of iSCSI


        :param initiator: The initiator of this OlvmIscsiDetails.
        :type: str
        """
        self._initiator = initiator

    @property
    def lun_mapping(self):
        """
        Gets the lun_mapping of this OlvmIscsiDetails.
        LUN Mapping of iSCSI


        :return: The lun_mapping of this OlvmIscsiDetails.
        :rtype: int
        """
        return self._lun_mapping

    @lun_mapping.setter
    def lun_mapping(self, lun_mapping):
        """
        Sets the lun_mapping of this OlvmIscsiDetails.
        LUN Mapping of iSCSI


        :param lun_mapping: The lun_mapping of this OlvmIscsiDetails.
        :type: int
        """
        self._lun_mapping = lun_mapping

    @property
    def paths(self):
        """
        Gets the paths of this OlvmIscsiDetails.
        Number of paths of iSCSI


        :return: The paths of this OlvmIscsiDetails.
        :rtype: int
        """
        return self._paths

    @paths.setter
    def paths(self, paths):
        """
        Sets the paths of this OlvmIscsiDetails.
        Number of paths of iSCSI


        :param paths: The paths of this OlvmIscsiDetails.
        :type: int
        """
        self._paths = paths

    @property
    def port(self):
        """
        Gets the port of this OlvmIscsiDetails.
        Port number of iSCSI


        :return: The port of this OlvmIscsiDetails.
        :rtype: int
        """
        return self._port

    @port.setter
    def port(self, port):
        """
        Sets the port of this OlvmIscsiDetails.
        Port number of iSCSI


        :param port: The port of this OlvmIscsiDetails.
        :type: int
        """
        self._port = port

    @property
    def portal(self):
        """
        Gets the portal of this OlvmIscsiDetails.
        Portal of iSCSI


        :return: The portal of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._portal

    @portal.setter
    def portal(self, portal):
        """
        Sets the portal of this OlvmIscsiDetails.
        Portal of iSCSI


        :param portal: The portal of this OlvmIscsiDetails.
        :type: str
        """
        self._portal = portal

    @property
    def product_id(self):
        """
        Gets the product_id of this OlvmIscsiDetails.
        Product ID of iSCSI


        :return: The product_id of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._product_id

    @product_id.setter
    def product_id(self, product_id):
        """
        Sets the product_id of this OlvmIscsiDetails.
        Product ID of iSCSI


        :param product_id: The product_id of this OlvmIscsiDetails.
        :type: str
        """
        self._product_id = product_id

    @property
    def serial(self):
        """
        Gets the serial of this OlvmIscsiDetails.
        Serial of iSCSI


        :return: The serial of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._serial

    @serial.setter
    def serial(self, serial):
        """
        Sets the serial of this OlvmIscsiDetails.
        Serial of iSCSI


        :param serial: The serial of this OlvmIscsiDetails.
        :type: str
        """
        self._serial = serial

    @property
    def size_in_bytes(self):
        """
        Gets the size_in_bytes of this OlvmIscsiDetails.
        size of iSCSI


        :return: The size_in_bytes of this OlvmIscsiDetails.
        :rtype: int
        """
        return self._size_in_bytes

    @size_in_bytes.setter
    def size_in_bytes(self, size_in_bytes):
        """
        Sets the size_in_bytes of this OlvmIscsiDetails.
        size of iSCSI


        :param size_in_bytes: The size_in_bytes of this OlvmIscsiDetails.
        :type: int
        """
        self._size_in_bytes = size_in_bytes

    @property
    def status(self):
        """
        Gets the status of this OlvmIscsiDetails.
        Status of iSCSI


        :return: The status of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """
        Sets the status of this OlvmIscsiDetails.
        Status of iSCSI


        :param status: The status of this OlvmIscsiDetails.
        :type: str
        """
        self._status = status

    @property
    def storage_domain_id(self):
        """
        Gets the storage_domain_id of this OlvmIscsiDetails.
        Storage Domain ID of iSCSI


        :return: The storage_domain_id of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._storage_domain_id

    @storage_domain_id.setter
    def storage_domain_id(self, storage_domain_id):
        """
        Sets the storage_domain_id of this OlvmIscsiDetails.
        Storage Domain ID of iSCSI


        :param storage_domain_id: The storage_domain_id of this OlvmIscsiDetails.
        :type: str
        """
        self._storage_domain_id = storage_domain_id

    @property
    def target(self):
        """
        Gets the target of this OlvmIscsiDetails.
        target of iSCSI


        :return: The target of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._target

    @target.setter
    def target(self, target):
        """
        Sets the target of this OlvmIscsiDetails.
        target of iSCSI


        :param target: The target of this OlvmIscsiDetails.
        :type: str
        """
        self._target = target

    @property
    def username(self):
        """
        Gets the username of this OlvmIscsiDetails.
        Username of iSCSI


        :return: The username of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """
        Sets the username of this OlvmIscsiDetails.
        Username of iSCSI


        :param username: The username of this OlvmIscsiDetails.
        :type: str
        """
        self._username = username

    @property
    def vendor_id(self):
        """
        Gets the vendor_id of this OlvmIscsiDetails.
        Vendor ID of iSCSI


        :return: The vendor_id of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._vendor_id

    @vendor_id.setter
    def vendor_id(self, vendor_id):
        """
        Sets the vendor_id of this OlvmIscsiDetails.
        Vendor ID of iSCSI


        :param vendor_id: The vendor_id of this OlvmIscsiDetails.
        :type: str
        """
        self._vendor_id = vendor_id

    @property
    def volume_group_id(self):
        """
        Gets the volume_group_id of this OlvmIscsiDetails.
        Volume Group ID of iSCSI


        :return: The volume_group_id of this OlvmIscsiDetails.
        :rtype: str
        """
        return self._volume_group_id

    @volume_group_id.setter
    def volume_group_id(self, volume_group_id):
        """
        Sets the volume_group_id of this OlvmIscsiDetails.
        Volume Group ID of iSCSI


        :param volume_group_id: The volume_group_id of this OlvmIscsiDetails.
        :type: str
        """
        self._volume_group_id = volume_group_id

    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
