# coding: utf-8

"""
    gtm

    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 GetPolicyResponse(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_only': 'bool',
        'perf_mode': 'str',
        'routing_mode': 'str',
        'source_flow': 'SourceFlowForGetPolicyOutput',
        'statistics': 'StatisticsForGetPolicyOutput',
        'targets': 'TargetsForGetPolicyOutput'
    }

    attribute_map = {
        'alarm_only': 'AlarmOnly',
        'perf_mode': 'PerfMode',
        'routing_mode': 'RoutingMode',
        'source_flow': 'SourceFlow',
        'statistics': 'Statistics',
        'targets': 'Targets'
    }

    def __init__(self, alarm_only=None, perf_mode=None, routing_mode=None, source_flow=None, statistics=None, targets=None, _configuration=None):  # noqa: E501
        """GetPolicyResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._alarm_only = None
        self._perf_mode = None
        self._routing_mode = None
        self._source_flow = None
        self._statistics = None
        self._targets = None
        self.discriminator = None

        if alarm_only is not None:
            self.alarm_only = alarm_only
        if perf_mode is not None:
            self.perf_mode = perf_mode
        if routing_mode is not None:
            self.routing_mode = routing_mode
        if source_flow is not None:
            self.source_flow = source_flow
        if statistics is not None:
            self.statistics = statistics
        if targets is not None:
            self.targets = targets

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


        :return: The alarm_only of this GetPolicyResponse.  # noqa: E501
        :rtype: bool
        """
        return self._alarm_only

    @alarm_only.setter
    def alarm_only(self, alarm_only):
        """Sets the alarm_only of this GetPolicyResponse.


        :param alarm_only: The alarm_only of this GetPolicyResponse.  # noqa: E501
        :type: bool
        """

        self._alarm_only = alarm_only

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


        :return: The perf_mode of this GetPolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._perf_mode

    @perf_mode.setter
    def perf_mode(self, perf_mode):
        """Sets the perf_mode of this GetPolicyResponse.


        :param perf_mode: The perf_mode of this GetPolicyResponse.  # noqa: E501
        :type: str
        """

        self._perf_mode = perf_mode

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


        :return: The routing_mode of this GetPolicyResponse.  # noqa: E501
        :rtype: str
        """
        return self._routing_mode

    @routing_mode.setter
    def routing_mode(self, routing_mode):
        """Sets the routing_mode of this GetPolicyResponse.


        :param routing_mode: The routing_mode of this GetPolicyResponse.  # noqa: E501
        :type: str
        """

        self._routing_mode = routing_mode

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


        :return: The source_flow of this GetPolicyResponse.  # noqa: E501
        :rtype: SourceFlowForGetPolicyOutput
        """
        return self._source_flow

    @source_flow.setter
    def source_flow(self, source_flow):
        """Sets the source_flow of this GetPolicyResponse.


        :param source_flow: The source_flow of this GetPolicyResponse.  # noqa: E501
        :type: SourceFlowForGetPolicyOutput
        """

        self._source_flow = source_flow

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


        :return: The statistics of this GetPolicyResponse.  # noqa: E501
        :rtype: StatisticsForGetPolicyOutput
        """
        return self._statistics

    @statistics.setter
    def statistics(self, statistics):
        """Sets the statistics of this GetPolicyResponse.


        :param statistics: The statistics of this GetPolicyResponse.  # noqa: E501
        :type: StatisticsForGetPolicyOutput
        """

        self._statistics = statistics

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


        :return: The targets of this GetPolicyResponse.  # noqa: E501
        :rtype: TargetsForGetPolicyOutput
        """
        return self._targets

    @targets.setter
    def targets(self, targets):
        """Sets the targets of this GetPolicyResponse.


        :param targets: The targets of this GetPolicyResponse.  # noqa: E501
        :type: TargetsForGetPolicyOutput
        """

        self._targets = targets

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

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