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

from .create_container_volume_details import CreateContainerVolumeDetails
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 CreateContainerOciFssVolumeDetails(CreateContainerVolumeDetails):
    """
    An OCI File Storage Service (FSS) File System that can be mounted to Containers within a Container Instance.
    Check https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/FileSystem for more details.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new CreateContainerOciFssVolumeDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.container_instances.models.CreateContainerOciFssVolumeDetails.volume_type` attribute
        of this class is ``OCI_FSS_FILE_SYSTEM`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param name:
            The value to assign to the name property of this CreateContainerOciFssVolumeDetails.
        :type name: str

        :param volume_type:
            The value to assign to the volume_type property of this CreateContainerOciFssVolumeDetails.
            Allowed values for this property are: "EMPTYDIR", "CONFIGFILE", "OCI_FSS_FILE_SYSTEM"
        :type volume_type: str

        :param mount_target:
            The value to assign to the mount_target property of this CreateContainerOciFssVolumeDetails.
        :type mount_target: oci.container_instances.models.CreateOciFssMountTargetDetails

        :param export:
            The value to assign to the export property of this CreateContainerOciFssVolumeDetails.
        :type export: oci.container_instances.models.CreateOciFssExportDetails

        :param security:
            The value to assign to the security property of this CreateContainerOciFssVolumeDetails.
        :type security: oci.container_instances.models.CreateOciFssSecurityDetails

        :param mount_command:
            The value to assign to the mount_command property of this CreateContainerOciFssVolumeDetails.
        :type mount_command: oci.container_instances.models.CreateOciFssMountCommandDetails

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

        """
        self.swagger_types = {
            'name': 'str',
            'volume_type': 'str',
            'mount_target': 'CreateOciFssMountTargetDetails',
            'export': 'CreateOciFssExportDetails',
            'security': 'CreateOciFssSecurityDetails',
            'mount_command': 'CreateOciFssMountCommandDetails',
            'subnet_id': 'str'
        }
        self.attribute_map = {
            'name': 'name',
            'volume_type': 'volumeType',
            'mount_target': 'mountTarget',
            'export': 'export',
            'security': 'security',
            'mount_command': 'mountCommand',
            'subnet_id': 'subnetId'
        }
        self._name = None
        self._volume_type = None
        self._mount_target = None
        self._export = None
        self._security = None
        self._mount_command = None
        self._subnet_id = None
        self._volume_type = 'OCI_FSS_FILE_SYSTEM'

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

        :return: The mount_target of this CreateContainerOciFssVolumeDetails.
        :rtype: oci.container_instances.models.CreateOciFssMountTargetDetails
        """
        return self._mount_target

    @mount_target.setter
    def mount_target(self, mount_target):
        """
        Sets the mount_target of this CreateContainerOciFssVolumeDetails.

        :param mount_target: The mount_target of this CreateContainerOciFssVolumeDetails.
        :type: oci.container_instances.models.CreateOciFssMountTargetDetails
        """
        self._mount_target = mount_target

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

        :return: The export of this CreateContainerOciFssVolumeDetails.
        :rtype: oci.container_instances.models.CreateOciFssExportDetails
        """
        return self._export

    @export.setter
    def export(self, export):
        """
        Sets the export of this CreateContainerOciFssVolumeDetails.

        :param export: The export of this CreateContainerOciFssVolumeDetails.
        :type: oci.container_instances.models.CreateOciFssExportDetails
        """
        self._export = export

    @property
    def security(self):
        """
        Gets the security of this CreateContainerOciFssVolumeDetails.

        :return: The security of this CreateContainerOciFssVolumeDetails.
        :rtype: oci.container_instances.models.CreateOciFssSecurityDetails
        """
        return self._security

    @security.setter
    def security(self, security):
        """
        Sets the security of this CreateContainerOciFssVolumeDetails.

        :param security: The security of this CreateContainerOciFssVolumeDetails.
        :type: oci.container_instances.models.CreateOciFssSecurityDetails
        """
        self._security = security

    @property
    def mount_command(self):
        """
        Gets the mount_command of this CreateContainerOciFssVolumeDetails.

        :return: The mount_command of this CreateContainerOciFssVolumeDetails.
        :rtype: oci.container_instances.models.CreateOciFssMountCommandDetails
        """
        return self._mount_command

    @mount_command.setter
    def mount_command(self, mount_command):
        """
        Sets the mount_command of this CreateContainerOciFssVolumeDetails.

        :param mount_command: The mount_command of this CreateContainerOciFssVolumeDetails.
        :type: oci.container_instances.models.CreateOciFssMountCommandDetails
        """
        self._mount_command = mount_command

    @property
    def subnet_id(self):
        """
        Gets the subnet_id of this CreateContainerOciFssVolumeDetails.
        Specifies the network interface to be used for the OCI File Storage Service (FSS) volume.
        This is a required parameter when a Container Instance is attached to more than one subnets.


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

    @subnet_id.setter
    def subnet_id(self, subnet_id):
        """
        Sets the subnet_id of this CreateContainerOciFssVolumeDetails.
        Specifies the network interface to be used for the OCI File Storage Service (FSS) volume.
        This is a required parameter when a Container Instance is attached to more than one subnets.


        :param subnet_id: The subnet_id of this CreateContainerOciFssVolumeDetails.
        :type: str
        """
        self._subnet_id = subnet_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
