# coding: utf-8

"""
    Healthbot APIs

    API interface for Healthbot application  # noqa: E501

    OpenAPI spec version: 1.0.0
    Contact: healthbot-hackers@juniper.net
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from jnpr.healthbot.swagger.models.ca_profile_schema import CaProfileSchema  # noqa: F401,E501
from jnpr.healthbot.swagger.models.local_certificate_schema import LocalCertificateSchema  # noqa: F401,E501
from jnpr.healthbot.swagger.models.ssh_key_profile_schema import SshKeyProfileSchema  # noqa: F401,E501


class ProfileSchemaSecurity(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 = {
        'ca_profile': 'list[CaProfileSchema]',
        'local_certificate': 'list[LocalCertificateSchema]',
        'ssh_key_profile': 'list[SshKeyProfileSchema]'
    }

    attribute_map = {
        'ca_profile': 'ca-profile',
        'local_certificate': 'local-certificate',
        'ssh_key_profile': 'ssh-key-profile'
    }

    def __init__(self, ca_profile=None, local_certificate=None, ssh_key_profile=None):  # noqa: E501
        """ProfileSchemaSecurity - a model defined in Swagger"""  # noqa: E501

        self._ca_profile = None
        self._local_certificate = None
        self._ssh_key_profile = None
        self.discriminator = None

        if ca_profile is not None:
            self.ca_profile = ca_profile
        if local_certificate is not None:
            self.local_certificate = local_certificate
        if ssh_key_profile is not None:
            self.ssh_key_profile = ssh_key_profile

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


        :return: The ca_profile of this ProfileSchemaSecurity.  # noqa: E501
        :rtype: list[CaProfileSchema]
        """
        return self._ca_profile

    @ca_profile.setter
    def ca_profile(self, ca_profile):
        """Sets the ca_profile of this ProfileSchemaSecurity.


        :param ca_profile: The ca_profile of this ProfileSchemaSecurity.  # noqa: E501
        :type: list[CaProfileSchema]
        """

        self._ca_profile = ca_profile

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


        :return: The local_certificate of this ProfileSchemaSecurity.  # noqa: E501
        :rtype: list[LocalCertificateSchema]
        """
        return self._local_certificate

    @local_certificate.setter
    def local_certificate(self, local_certificate):
        """Sets the local_certificate of this ProfileSchemaSecurity.


        :param local_certificate: The local_certificate of this ProfileSchemaSecurity.  # noqa: E501
        :type: list[LocalCertificateSchema]
        """

        self._local_certificate = local_certificate

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


        :return: The ssh_key_profile of this ProfileSchemaSecurity.  # noqa: E501
        :rtype: list[SshKeyProfileSchema]
        """
        return self._ssh_key_profile

    @ssh_key_profile.setter
    def ssh_key_profile(self, ssh_key_profile):
        """Sets the ssh_key_profile of this ProfileSchemaSecurity.


        :param ssh_key_profile: The ssh_key_profile of this ProfileSchemaSecurity.  # noqa: E501
        :type: list[SshKeyProfileSchema]
        """

        self._ssh_key_profile = ssh_key_profile

    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

        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, ProfileSchemaSecurity):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
