# coding: utf-8

"""
    Welcome to the Atera API

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

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


import pprint
import re  # noqa: F401

import six

from atera_client.configuration import Configuration


class CreateSNMPDTOV3(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 = {
        "username": "str",
        "authentication_alg": "str",
        "privacy_alg": "str",
        "authentication_password": "str",
        "privacy_password": "str",
        "security_level": "str",
        "hostname": "str",
        "port": "int",
        "device_type": "str",
        "name": "str",
        "customer_id": "int",
        "folder_id": "int",
        "monitoring_agent_id": "int",
        "monitored": "bool",
    }

    attribute_map = {
        "username": "Username",
        "authentication_alg": "AuthenticationAlg",
        "privacy_alg": "PrivacyAlg",
        "authentication_password": "AuthenticationPassword",
        "privacy_password": "PrivacyPassword",
        "security_level": "_SecurityLevel",
        "hostname": "Hostname",
        "port": "Port",
        "device_type": "DeviceType",
        "name": "Name",
        "customer_id": "CustomerID",
        "folder_id": "FolderID",
        "monitoring_agent_id": "MonitoringAgentID",
        "monitored": "Monitored",
    }

    def __init__(
        self,
        username=None,
        authentication_alg=None,
        privacy_alg=None,
        authentication_password=None,
        privacy_password=None,
        security_level=None,
        hostname=None,
        port=None,
        device_type=None,
        name=None,
        customer_id=None,
        folder_id=None,
        monitoring_agent_id=None,
        monitored=None,
        _configuration=None,
    ):  # noqa: E501
        """CreateSNMPDTOV3 - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._username = None
        self._authentication_alg = None
        self._privacy_alg = None
        self._authentication_password = None
        self._privacy_password = None
        self._security_level = None
        self._hostname = None
        self._port = None
        self._device_type = None
        self._name = None
        self._customer_id = None
        self._folder_id = None
        self._monitoring_agent_id = None
        self._monitored = None
        self.discriminator = None

        if username is not None:
            self.username = username
        if authentication_alg is not None:
            self.authentication_alg = authentication_alg
        if privacy_alg is not None:
            self.privacy_alg = privacy_alg
        if authentication_password is not None:
            self.authentication_password = authentication_password
        if privacy_password is not None:
            self.privacy_password = privacy_password
        if security_level is not None:
            self.security_level = security_level
        if hostname is not None:
            self.hostname = hostname
        if port is not None:
            self.port = port
        if device_type is not None:
            self.device_type = device_type
        if name is not None:
            self.name = name
        if customer_id is not None:
            self.customer_id = customer_id
        if folder_id is not None:
            self.folder_id = folder_id
        if monitoring_agent_id is not None:
            self.monitoring_agent_id = monitoring_agent_id
        if monitored is not None:
            self.monitored = monitored

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


        :return: The username of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """Sets the username of this CreateSNMPDTOV3.


        :param username: The username of this CreateSNMPDTOV3.  # noqa: E501
        :type: str
        """

        self._username = username

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


        :return: The authentication_alg of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._authentication_alg

    @authentication_alg.setter
    def authentication_alg(self, authentication_alg):
        """Sets the authentication_alg of this CreateSNMPDTOV3.


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

        self._authentication_alg = authentication_alg

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


        :return: The privacy_alg of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._privacy_alg

    @privacy_alg.setter
    def privacy_alg(self, privacy_alg):
        """Sets the privacy_alg of this CreateSNMPDTOV3.


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

        self._privacy_alg = privacy_alg

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


        :return: The authentication_password of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._authentication_password

    @authentication_password.setter
    def authentication_password(self, authentication_password):
        """Sets the authentication_password of this CreateSNMPDTOV3.


        :param authentication_password: The authentication_password of this CreateSNMPDTOV3.  # noqa: E501
        :type: str
        """

        self._authentication_password = authentication_password

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


        :return: The privacy_password of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._privacy_password

    @privacy_password.setter
    def privacy_password(self, privacy_password):
        """Sets the privacy_password of this CreateSNMPDTOV3.


        :param privacy_password: The privacy_password of this CreateSNMPDTOV3.  # noqa: E501
        :type: str
        """

        self._privacy_password = privacy_password

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


        :return: The security_level of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._security_level

    @security_level.setter
    def security_level(self, security_level):
        """Sets the security_level of this CreateSNMPDTOV3.


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

        self._security_level = security_level

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


        :return: The hostname of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._hostname

    @hostname.setter
    def hostname(self, hostname):
        """Sets the hostname of this CreateSNMPDTOV3.


        :param hostname: The hostname of this CreateSNMPDTOV3.  # noqa: E501
        :type: str
        """

        self._hostname = hostname

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


        :return: The port of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: int
        """
        return self._port

    @port.setter
    def port(self, port):
        """Sets the port of this CreateSNMPDTOV3.


        :param port: The port of this CreateSNMPDTOV3.  # noqa: E501
        :type: int
        """

        self._port = port

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


        :return: The device_type of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._device_type

    @device_type.setter
    def device_type(self, device_type):
        """Sets the device_type of this CreateSNMPDTOV3.


        :param device_type: The device_type of this CreateSNMPDTOV3.  # noqa: E501
        :type: str
        """
        allowed_values = [
            "Undefined",
            "Router",
            "Printer",
            "Switch",
            "Print_server",
            "UPS",
            "CheckPoint",
            "Other",
            "Linux_device",
            "NAS",
            "File_server",
            "Storage",
            "Access_point",
            "NetworkBridge_Extender",
            "Hub",
            "Firewall",
            "Gateway",
            "Layer_3_Switch",
            "WAN_Accelerator",
            "Wireless_LAN_Controller",
            "Access_Server",
            "IP_Phone",
            "SAN_Switch",
            "Load_Balancer",
            "Web_Caching",
            "Management_Controller",
            "Management",
            "Tape_Library",
        ]  # noqa: E501
        if self._configuration.client_side_validation and device_type not in allowed_values:
            raise ValueError(
                "Invalid value for `device_type` ({0}), must be one of {1}".format(  # noqa: E501
                    device_type, allowed_values
                )
            )

        self._device_type = device_type

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


        :return: The name of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this CreateSNMPDTOV3.


        :param name: The name of this CreateSNMPDTOV3.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The customer_id of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: int
        """
        return self._customer_id

    @customer_id.setter
    def customer_id(self, customer_id):
        """Sets the customer_id of this CreateSNMPDTOV3.


        :param customer_id: The customer_id of this CreateSNMPDTOV3.  # noqa: E501
        :type: int
        """

        self._customer_id = customer_id

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


        :return: The folder_id of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: int
        """
        return self._folder_id

    @folder_id.setter
    def folder_id(self, folder_id):
        """Sets the folder_id of this CreateSNMPDTOV3.


        :param folder_id: The folder_id of this CreateSNMPDTOV3.  # noqa: E501
        :type: int
        """

        self._folder_id = folder_id

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


        :return: The monitoring_agent_id of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: int
        """
        return self._monitoring_agent_id

    @monitoring_agent_id.setter
    def monitoring_agent_id(self, monitoring_agent_id):
        """Sets the monitoring_agent_id of this CreateSNMPDTOV3.


        :param monitoring_agent_id: The monitoring_agent_id of this CreateSNMPDTOV3.  # noqa: E501
        :type: int
        """

        self._monitoring_agent_id = monitoring_agent_id

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


        :return: The monitored of this CreateSNMPDTOV3.  # noqa: E501
        :rtype: bool
        """
        return self._monitored

    @monitored.setter
    def monitored(self, monitored):
        """Sets the monitored of this CreateSNMPDTOV3.


        :param monitored: The monitored of this CreateSNMPDTOV3.  # noqa: E501
        :type: bool
        """

        self._monitored = monitored

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

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