# coding: utf-8

"""
    seccenter20240508

    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 ListVarmorPoliciesRequest(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 = {
        'cluster_id': 'str',
        'cluster_name': 'str',
        'enforcer': 'str',
        'namespace': 'str',
        'page_number': 'int',
        'page_size': 'int',
        'policy_mode': 'str',
        'policy_name': 'str',
        'policy_type': 'str',
        'region': 'str',
        'sort_by': 'str',
        'sort_order': 'str',
        'status': 'list[str]',
        'target_workload': 'str'
    }

    attribute_map = {
        'cluster_id': 'ClusterID',
        'cluster_name': 'ClusterName',
        'enforcer': 'Enforcer',
        'namespace': 'Namespace',
        'page_number': 'PageNumber',
        'page_size': 'PageSize',
        'policy_mode': 'PolicyMode',
        'policy_name': 'PolicyName',
        'policy_type': 'PolicyType',
        'region': 'Region',
        'sort_by': 'SortBy',
        'sort_order': 'SortOrder',
        'status': 'Status',
        'target_workload': 'TargetWorkload'
    }

    def __init__(self, cluster_id=None, cluster_name=None, enforcer=None, namespace=None, page_number=None, page_size=None, policy_mode=None, policy_name=None, policy_type=None, region=None, sort_by=None, sort_order=None, status=None, target_workload=None, _configuration=None):  # noqa: E501
        """ListVarmorPoliciesRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._cluster_id = None
        self._cluster_name = None
        self._enforcer = None
        self._namespace = None
        self._page_number = None
        self._page_size = None
        self._policy_mode = None
        self._policy_name = None
        self._policy_type = None
        self._region = None
        self._sort_by = None
        self._sort_order = None
        self._status = None
        self._target_workload = None
        self.discriminator = None

        if cluster_id is not None:
            self.cluster_id = cluster_id
        if cluster_name is not None:
            self.cluster_name = cluster_name
        if enforcer is not None:
            self.enforcer = enforcer
        if namespace is not None:
            self.namespace = namespace
        self.page_number = page_number
        self.page_size = page_size
        if policy_mode is not None:
            self.policy_mode = policy_mode
        if policy_name is not None:
            self.policy_name = policy_name
        if policy_type is not None:
            self.policy_type = policy_type
        if region is not None:
            self.region = region
        if sort_by is not None:
            self.sort_by = sort_by
        if sort_order is not None:
            self.sort_order = sort_order
        if status is not None:
            self.status = status
        if target_workload is not None:
            self.target_workload = target_workload

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


        :return: The cluster_id of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._cluster_id

    @cluster_id.setter
    def cluster_id(self, cluster_id):
        """Sets the cluster_id of this ListVarmorPoliciesRequest.


        :param cluster_id: The cluster_id of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._cluster_id = cluster_id

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


        :return: The cluster_name of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._cluster_name

    @cluster_name.setter
    def cluster_name(self, cluster_name):
        """Sets the cluster_name of this ListVarmorPoliciesRequest.


        :param cluster_name: The cluster_name of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._cluster_name = cluster_name

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


        :return: The enforcer of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._enforcer

    @enforcer.setter
    def enforcer(self, enforcer):
        """Sets the enforcer of this ListVarmorPoliciesRequest.


        :param enforcer: The enforcer of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._enforcer = enforcer

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


        :return: The namespace of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._namespace

    @namespace.setter
    def namespace(self, namespace):
        """Sets the namespace of this ListVarmorPoliciesRequest.


        :param namespace: The namespace of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._namespace = namespace

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


        :return: The page_number of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: int
        """
        return self._page_number

    @page_number.setter
    def page_number(self, page_number):
        """Sets the page_number of this ListVarmorPoliciesRequest.


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

        self._page_number = page_number

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


        :return: The page_size of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: int
        """
        return self._page_size

    @page_size.setter
    def page_size(self, page_size):
        """Sets the page_size of this ListVarmorPoliciesRequest.


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

        self._page_size = page_size

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


        :return: The policy_mode of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._policy_mode

    @policy_mode.setter
    def policy_mode(self, policy_mode):
        """Sets the policy_mode of this ListVarmorPoliciesRequest.


        :param policy_mode: The policy_mode of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._policy_mode = policy_mode

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


        :return: The policy_name of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._policy_name

    @policy_name.setter
    def policy_name(self, policy_name):
        """Sets the policy_name of this ListVarmorPoliciesRequest.


        :param policy_name: The policy_name of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._policy_name = policy_name

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


        :return: The policy_type of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._policy_type

    @policy_type.setter
    def policy_type(self, policy_type):
        """Sets the policy_type of this ListVarmorPoliciesRequest.


        :param policy_type: The policy_type of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._policy_type = policy_type

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


        :return: The region of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._region

    @region.setter
    def region(self, region):
        """Sets the region of this ListVarmorPoliciesRequest.


        :param region: The region of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._region = region

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


        :return: The sort_by of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._sort_by

    @sort_by.setter
    def sort_by(self, sort_by):
        """Sets the sort_by of this ListVarmorPoliciesRequest.


        :param sort_by: The sort_by of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._sort_by = sort_by

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


        :return: The sort_order of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._sort_order

    @sort_order.setter
    def sort_order(self, sort_order):
        """Sets the sort_order of this ListVarmorPoliciesRequest.


        :param sort_order: The sort_order of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._sort_order = sort_order

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


        :return: The status of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this ListVarmorPoliciesRequest.


        :param status: The status of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: list[str]
        """

        self._status = status

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


        :return: The target_workload of this ListVarmorPoliciesRequest.  # noqa: E501
        :rtype: str
        """
        return self._target_workload

    @target_workload.setter
    def target_workload(self, target_workload):
        """Sets the target_workload of this ListVarmorPoliciesRequest.


        :param target_workload: The target_workload of this ListVarmorPoliciesRequest.  # noqa: E501
        :type: str
        """

        self._target_workload = target_workload

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

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