# coding: utf-8

"""
    waf

    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 ModifyTLSConfigRequest(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 = {
        'alarm_threshold': 'int',
        'capacity_alert': 'bool',
        'capacity_alert_interval': 'int',
        'domain_list': 'list[str]',
        'field_list': 'FieldListForModifyTLSConfigInput',
        'field_select_all': 'bool',
        'project_name': 'str',
        'tls_storage_time': 'int',
        'waf_action_list': 'WafActionListForModifyTLSConfigInput',
        'waf_action_select_all': 'bool'
    }

    attribute_map = {
        'alarm_threshold': 'AlarmThreshold',
        'capacity_alert': 'CapacityAlert',
        'capacity_alert_interval': 'CapacityAlertInterval',
        'domain_list': 'DomainList',
        'field_list': 'FieldList',
        'field_select_all': 'FieldSelectAll',
        'project_name': 'ProjectName',
        'tls_storage_time': 'TLSStorageTime',
        'waf_action_list': 'WafActionList',
        'waf_action_select_all': 'WafActionSelectAll'
    }

    def __init__(self, alarm_threshold=None, capacity_alert=None, capacity_alert_interval=None, domain_list=None, field_list=None, field_select_all=None, project_name=None, tls_storage_time=None, waf_action_list=None, waf_action_select_all=None, _configuration=None):  # noqa: E501
        """ModifyTLSConfigRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._alarm_threshold = None
        self._capacity_alert = None
        self._capacity_alert_interval = None
        self._domain_list = None
        self._field_list = None
        self._field_select_all = None
        self._project_name = None
        self._tls_storage_time = None
        self._waf_action_list = None
        self._waf_action_select_all = None
        self.discriminator = None

        if alarm_threshold is not None:
            self.alarm_threshold = alarm_threshold
        if capacity_alert is not None:
            self.capacity_alert = capacity_alert
        if capacity_alert_interval is not None:
            self.capacity_alert_interval = capacity_alert_interval
        if domain_list is not None:
            self.domain_list = domain_list
        if field_list is not None:
            self.field_list = field_list
        if field_select_all is not None:
            self.field_select_all = field_select_all
        if project_name is not None:
            self.project_name = project_name
        if tls_storage_time is not None:
            self.tls_storage_time = tls_storage_time
        if waf_action_list is not None:
            self.waf_action_list = waf_action_list
        if waf_action_select_all is not None:
            self.waf_action_select_all = waf_action_select_all

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


        :return: The alarm_threshold of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: int
        """
        return self._alarm_threshold

    @alarm_threshold.setter
    def alarm_threshold(self, alarm_threshold):
        """Sets the alarm_threshold of this ModifyTLSConfigRequest.


        :param alarm_threshold: The alarm_threshold of this ModifyTLSConfigRequest.  # noqa: E501
        :type: int
        """

        self._alarm_threshold = alarm_threshold

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


        :return: The capacity_alert of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: bool
        """
        return self._capacity_alert

    @capacity_alert.setter
    def capacity_alert(self, capacity_alert):
        """Sets the capacity_alert of this ModifyTLSConfigRequest.


        :param capacity_alert: The capacity_alert of this ModifyTLSConfigRequest.  # noqa: E501
        :type: bool
        """

        self._capacity_alert = capacity_alert

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


        :return: The capacity_alert_interval of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: int
        """
        return self._capacity_alert_interval

    @capacity_alert_interval.setter
    def capacity_alert_interval(self, capacity_alert_interval):
        """Sets the capacity_alert_interval of this ModifyTLSConfigRequest.


        :param capacity_alert_interval: The capacity_alert_interval of this ModifyTLSConfigRequest.  # noqa: E501
        :type: int
        """

        self._capacity_alert_interval = capacity_alert_interval

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


        :return: The domain_list of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._domain_list

    @domain_list.setter
    def domain_list(self, domain_list):
        """Sets the domain_list of this ModifyTLSConfigRequest.


        :param domain_list: The domain_list of this ModifyTLSConfigRequest.  # noqa: E501
        :type: list[str]
        """

        self._domain_list = domain_list

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


        :return: The field_list of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: FieldListForModifyTLSConfigInput
        """
        return self._field_list

    @field_list.setter
    def field_list(self, field_list):
        """Sets the field_list of this ModifyTLSConfigRequest.


        :param field_list: The field_list of this ModifyTLSConfigRequest.  # noqa: E501
        :type: FieldListForModifyTLSConfigInput
        """

        self._field_list = field_list

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


        :return: The field_select_all of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: bool
        """
        return self._field_select_all

    @field_select_all.setter
    def field_select_all(self, field_select_all):
        """Sets the field_select_all of this ModifyTLSConfigRequest.


        :param field_select_all: The field_select_all of this ModifyTLSConfigRequest.  # noqa: E501
        :type: bool
        """

        self._field_select_all = field_select_all

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


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

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


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

        self._project_name = project_name

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


        :return: The tls_storage_time of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: int
        """
        return self._tls_storage_time

    @tls_storage_time.setter
    def tls_storage_time(self, tls_storage_time):
        """Sets the tls_storage_time of this ModifyTLSConfigRequest.


        :param tls_storage_time: The tls_storage_time of this ModifyTLSConfigRequest.  # noqa: E501
        :type: int
        """

        self._tls_storage_time = tls_storage_time

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


        :return: The waf_action_list of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: WafActionListForModifyTLSConfigInput
        """
        return self._waf_action_list

    @waf_action_list.setter
    def waf_action_list(self, waf_action_list):
        """Sets the waf_action_list of this ModifyTLSConfigRequest.


        :param waf_action_list: The waf_action_list of this ModifyTLSConfigRequest.  # noqa: E501
        :type: WafActionListForModifyTLSConfigInput
        """

        self._waf_action_list = waf_action_list

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


        :return: The waf_action_select_all of this ModifyTLSConfigRequest.  # noqa: E501
        :rtype: bool
        """
        return self._waf_action_select_all

    @waf_action_select_all.setter
    def waf_action_select_all(self, waf_action_select_all):
        """Sets the waf_action_select_all of this ModifyTLSConfigRequest.


        :param waf_action_select_all: The waf_action_select_all of this ModifyTLSConfigRequest.  # noqa: E501
        :type: bool
        """

        self._waf_action_select_all = waf_action_select_all

    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(ModifyTLSConfigRequest, 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, ModifyTLSConfigRequest):
            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, ModifyTLSConfigRequest):
            return True

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