# coding: utf-8

"""
    na

    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 CreatePathAnalysisRequest(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 = {
        'description': 'str',
        'path_name': 'str',
        'protocol': 'str',
        'save': 'bool',
        'source_ip': 'str',
        'source_id': 'str',
        'source_type': 'str',
        'target_ip': 'str',
        'target_id': 'str',
        'target_port': 'int',
        'target_type': 'str'
    }

    attribute_map = {
        'description': 'Description',
        'path_name': 'PathName',
        'protocol': 'Protocol',
        'save': 'Save',
        'source_ip': 'SourceIP',
        'source_id': 'SourceId',
        'source_type': 'SourceType',
        'target_ip': 'TargetIP',
        'target_id': 'TargetId',
        'target_port': 'TargetPort',
        'target_type': 'TargetType'
    }

    def __init__(self, description=None, path_name=None, protocol=None, save=None, source_ip=None, source_id=None, source_type=None, target_ip=None, target_id=None, target_port=None, target_type=None, _configuration=None):  # noqa: E501
        """CreatePathAnalysisRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._description = None
        self._path_name = None
        self._protocol = None
        self._save = None
        self._source_ip = None
        self._source_id = None
        self._source_type = None
        self._target_ip = None
        self._target_id = None
        self._target_port = None
        self._target_type = None
        self.discriminator = None

        if description is not None:
            self.description = description
        self.path_name = path_name
        self.protocol = protocol
        if save is not None:
            self.save = save
        if source_ip is not None:
            self.source_ip = source_ip
        self.source_id = source_id
        self.source_type = source_type
        if target_ip is not None:
            self.target_ip = target_ip
        self.target_id = target_id
        if target_port is not None:
            self.target_port = target_port
        self.target_type = target_type

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


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

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


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

        self._description = description

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


        :return: The path_name of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: str
        """
        return self._path_name

    @path_name.setter
    def path_name(self, path_name):
        """Sets the path_name of this CreatePathAnalysisRequest.


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

        self._path_name = path_name

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


        :return: The protocol of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: str
        """
        return self._protocol

    @protocol.setter
    def protocol(self, protocol):
        """Sets the protocol of this CreatePathAnalysisRequest.


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

        self._protocol = protocol

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


        :return: The save of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: bool
        """
        return self._save

    @save.setter
    def save(self, save):
        """Sets the save of this CreatePathAnalysisRequest.


        :param save: The save of this CreatePathAnalysisRequest.  # noqa: E501
        :type: bool
        """

        self._save = save

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


        :return: The source_ip of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: str
        """
        return self._source_ip

    @source_ip.setter
    def source_ip(self, source_ip):
        """Sets the source_ip of this CreatePathAnalysisRequest.


        :param source_ip: The source_ip of this CreatePathAnalysisRequest.  # noqa: E501
        :type: str
        """

        self._source_ip = source_ip

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


        :return: The source_id of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: str
        """
        return self._source_id

    @source_id.setter
    def source_id(self, source_id):
        """Sets the source_id of this CreatePathAnalysisRequest.


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

        self._source_id = source_id

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


        :return: The source_type of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: str
        """
        return self._source_type

    @source_type.setter
    def source_type(self, source_type):
        """Sets the source_type of this CreatePathAnalysisRequest.


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

        self._source_type = source_type

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


        :return: The target_ip of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: str
        """
        return self._target_ip

    @target_ip.setter
    def target_ip(self, target_ip):
        """Sets the target_ip of this CreatePathAnalysisRequest.


        :param target_ip: The target_ip of this CreatePathAnalysisRequest.  # noqa: E501
        :type: str
        """

        self._target_ip = target_ip

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


        :return: The target_id of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: str
        """
        return self._target_id

    @target_id.setter
    def target_id(self, target_id):
        """Sets the target_id of this CreatePathAnalysisRequest.


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

        self._target_id = target_id

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


        :return: The target_port of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: int
        """
        return self._target_port

    @target_port.setter
    def target_port(self, target_port):
        """Sets the target_port of this CreatePathAnalysisRequest.


        :param target_port: The target_port of this CreatePathAnalysisRequest.  # noqa: E501
        :type: int
        """

        self._target_port = target_port

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


        :return: The target_type of this CreatePathAnalysisRequest.  # noqa: E501
        :rtype: str
        """
        return self._target_type

    @target_type.setter
    def target_type(self, target_type):
        """Sets the target_type of this CreatePathAnalysisRequest.


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

        self._target_type = target_type

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

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