# coding: utf-8

"""
    efs

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class CreateFileSystemRequest(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'bandwidth_mode': 'str',
        'burst_bandwidth': 'int',
        'charge_type': 'str',
        'description': 'str',
        'file_system_name': 'str',
        'instance_type': 'str',
        'one_step': 'bool',
        'performance_density': 'str',
        'project_name': 'str',
        'provisioned_bandwidth': 'int',
        'tags': 'list[TagForCreateFileSystemInput]',
        'zone_id': 'str'
    }

    attribute_map = {
        'bandwidth_mode': 'BandwidthMode',
        'burst_bandwidth': 'BurstBandwidth',
        'charge_type': 'ChargeType',
        'description': 'Description',
        'file_system_name': 'FileSystemName',
        'instance_type': 'InstanceType',
        'one_step': 'OneStep',
        'performance_density': 'PerformanceDensity',
        'project_name': 'ProjectName',
        'provisioned_bandwidth': 'ProvisionedBandwidth',
        'tags': 'Tags',
        'zone_id': 'ZoneId'
    }

    def __init__(self, bandwidth_mode=None, burst_bandwidth=None, charge_type=None, description=None, file_system_name=None, instance_type=None, one_step=None, performance_density=None, project_name=None, provisioned_bandwidth=None, tags=None, zone_id=None, _configuration=None):  # noqa: E501
        """CreateFileSystemRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._bandwidth_mode = None
        self._burst_bandwidth = None
        self._charge_type = None
        self._description = None
        self._file_system_name = None
        self._instance_type = None
        self._one_step = None
        self._performance_density = None
        self._project_name = None
        self._provisioned_bandwidth = None
        self._tags = None
        self._zone_id = None
        self.discriminator = None

        self.bandwidth_mode = bandwidth_mode
        if burst_bandwidth is not None:
            self.burst_bandwidth = burst_bandwidth
        if charge_type is not None:
            self.charge_type = charge_type
        if description is not None:
            self.description = description
        self.file_system_name = file_system_name
        self.instance_type = instance_type
        if one_step is not None:
            self.one_step = one_step
        self.performance_density = performance_density
        if project_name is not None:
            self.project_name = project_name
        if provisioned_bandwidth is not None:
            self.provisioned_bandwidth = provisioned_bandwidth
        if tags is not None:
            self.tags = tags
        self.zone_id = zone_id

    @property
    def bandwidth_mode(self):
        """Gets the bandwidth_mode of this CreateFileSystemRequest.  # noqa: E501


        :return: The bandwidth_mode of this CreateFileSystemRequest.  # noqa: E501
        :rtype: str
        """
        return self._bandwidth_mode

    @bandwidth_mode.setter
    def bandwidth_mode(self, bandwidth_mode):
        """Sets the bandwidth_mode of this CreateFileSystemRequest.


        :param bandwidth_mode: The bandwidth_mode of this CreateFileSystemRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and bandwidth_mode is None:
            raise ValueError("Invalid value for `bandwidth_mode`, must not be `None`")  # noqa: E501
        allowed_values = ["Unknown", "Baseline", "Provisioned"]  # noqa: E501
        if (self._configuration.client_side_validation and
                bandwidth_mode not in allowed_values):
            raise ValueError(
                "Invalid value for `bandwidth_mode` ({0}), must be one of {1}"  # noqa: E501
                .format(bandwidth_mode, allowed_values)
            )

        self._bandwidth_mode = bandwidth_mode

    @property
    def burst_bandwidth(self):
        """Gets the burst_bandwidth of this CreateFileSystemRequest.  # noqa: E501


        :return: The burst_bandwidth of this CreateFileSystemRequest.  # noqa: E501
        :rtype: int
        """
        return self._burst_bandwidth

    @burst_bandwidth.setter
    def burst_bandwidth(self, burst_bandwidth):
        """Sets the burst_bandwidth of this CreateFileSystemRequest.


        :param burst_bandwidth: The burst_bandwidth of this CreateFileSystemRequest.  # noqa: E501
        :type: int
        """

        self._burst_bandwidth = burst_bandwidth

    @property
    def charge_type(self):
        """Gets the charge_type of this CreateFileSystemRequest.  # noqa: E501


        :return: The charge_type of this CreateFileSystemRequest.  # noqa: E501
        :rtype: str
        """
        return self._charge_type

    @charge_type.setter
    def charge_type(self, charge_type):
        """Sets the charge_type of this CreateFileSystemRequest.


        :param charge_type: The charge_type of this CreateFileSystemRequest.  # noqa: E501
        :type: str
        """
        allowed_values = ["PayAsYouGo", "NotEnabled"]  # noqa: E501
        if (self._configuration.client_side_validation and
                charge_type not in allowed_values):
            raise ValueError(
                "Invalid value for `charge_type` ({0}), must be one of {1}"  # noqa: E501
                .format(charge_type, allowed_values)
            )

        self._charge_type = charge_type

    @property
    def description(self):
        """Gets the description of this CreateFileSystemRequest.  # noqa: E501


        :return: The description of this CreateFileSystemRequest.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this CreateFileSystemRequest.


        :param description: The description of this CreateFileSystemRequest.  # noqa: E501
        :type: str
        """

        self._description = description

    @property
    def file_system_name(self):
        """Gets the file_system_name of this CreateFileSystemRequest.  # noqa: E501


        :return: The file_system_name of this CreateFileSystemRequest.  # noqa: E501
        :rtype: str
        """
        return self._file_system_name

    @file_system_name.setter
    def file_system_name(self, file_system_name):
        """Sets the file_system_name of this CreateFileSystemRequest.


        :param file_system_name: The file_system_name of this CreateFileSystemRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and file_system_name is None:
            raise ValueError("Invalid value for `file_system_name`, must not be `None`")  # noqa: E501

        self._file_system_name = file_system_name

    @property
    def instance_type(self):
        """Gets the instance_type of this CreateFileSystemRequest.  # noqa: E501


        :return: The instance_type of this CreateFileSystemRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_type

    @instance_type.setter
    def instance_type(self, instance_type):
        """Sets the instance_type of this CreateFileSystemRequest.


        :param instance_type: The instance_type of this CreateFileSystemRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and instance_type is None:
            raise ValueError("Invalid value for `instance_type`, must not be `None`")  # noqa: E501
        allowed_values = ["Unknown", "Basic", "Premium", "IntelliTier"]  # noqa: E501
        if (self._configuration.client_side_validation and
                instance_type not in allowed_values):
            raise ValueError(
                "Invalid value for `instance_type` ({0}), must be one of {1}"  # noqa: E501
                .format(instance_type, allowed_values)
            )

        self._instance_type = instance_type

    @property
    def one_step(self):
        """Gets the one_step of this CreateFileSystemRequest.  # noqa: E501


        :return: The one_step of this CreateFileSystemRequest.  # noqa: E501
        :rtype: bool
        """
        return self._one_step

    @one_step.setter
    def one_step(self, one_step):
        """Sets the one_step of this CreateFileSystemRequest.


        :param one_step: The one_step of this CreateFileSystemRequest.  # noqa: E501
        :type: bool
        """

        self._one_step = one_step

    @property
    def performance_density(self):
        """Gets the performance_density of this CreateFileSystemRequest.  # noqa: E501


        :return: The performance_density of this CreateFileSystemRequest.  # noqa: E501
        :rtype: str
        """
        return self._performance_density

    @performance_density.setter
    def performance_density(self, performance_density):
        """Sets the performance_density of this CreateFileSystemRequest.


        :param performance_density: The performance_density of this CreateFileSystemRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and performance_density is None:
            raise ValueError("Invalid value for `performance_density`, must not be `None`")  # noqa: E501
        allowed_values = ["Unknown", "Basic_50", "Premium_125"]  # noqa: E501
        if (self._configuration.client_side_validation and
                performance_density not in allowed_values):
            raise ValueError(
                "Invalid value for `performance_density` ({0}), must be one of {1}"  # noqa: E501
                .format(performance_density, allowed_values)
            )

        self._performance_density = performance_density

    @property
    def project_name(self):
        """Gets the project_name of this CreateFileSystemRequest.  # noqa: E501


        :return: The project_name of this CreateFileSystemRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this CreateFileSystemRequest.


        :param project_name: The project_name of this CreateFileSystemRequest.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

    @property
    def provisioned_bandwidth(self):
        """Gets the provisioned_bandwidth of this CreateFileSystemRequest.  # noqa: E501


        :return: The provisioned_bandwidth of this CreateFileSystemRequest.  # noqa: E501
        :rtype: int
        """
        return self._provisioned_bandwidth

    @provisioned_bandwidth.setter
    def provisioned_bandwidth(self, provisioned_bandwidth):
        """Sets the provisioned_bandwidth of this CreateFileSystemRequest.


        :param provisioned_bandwidth: The provisioned_bandwidth of this CreateFileSystemRequest.  # noqa: E501
        :type: int
        """

        self._provisioned_bandwidth = provisioned_bandwidth

    @property
    def tags(self):
        """Gets the tags of this CreateFileSystemRequest.  # noqa: E501


        :return: The tags of this CreateFileSystemRequest.  # noqa: E501
        :rtype: list[TagForCreateFileSystemInput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this CreateFileSystemRequest.


        :param tags: The tags of this CreateFileSystemRequest.  # noqa: E501
        :type: list[TagForCreateFileSystemInput]
        """

        self._tags = tags

    @property
    def zone_id(self):
        """Gets the zone_id of this CreateFileSystemRequest.  # noqa: E501


        :return: The zone_id of this CreateFileSystemRequest.  # noqa: E501
        :rtype: str
        """
        return self._zone_id

    @zone_id.setter
    def zone_id(self, zone_id):
        """Sets the zone_id of this CreateFileSystemRequest.


        :param zone_id: The zone_id of this CreateFileSystemRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and zone_id is None:
            raise ValueError("Invalid value for `zone_id`, must not be `None`")  # noqa: E501

        self._zone_id = zone_id

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(CreateFileSystemRequest, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, CreateFileSystemRequest):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, CreateFileSystemRequest):
            return True

        return self.to_dict() != other.to_dict()
