# coding: utf-8

"""
    CartoVista REST API

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

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

import pprint
import re  # noqa: F401

import six

class CreateGroupParameter(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 = {
        'identifier': 'str',
        'name': 'str',
        'description': 'str',
        'folder_id': 'str',
        'user_ids': 'list[str]',
        'provider': 'SecurityProvider',
        'provider_name': 'str',
        'role': 'PermissionDTO',
        'send_import_email': 'bool'
    }

    attribute_map = {
        'identifier': 'identifier',
        'name': 'name',
        'description': 'description',
        'folder_id': 'folderId',
        'user_ids': 'userIds',
        'provider': 'provider',
        'provider_name': 'providerName',
        'role': 'role',
        'send_import_email': 'sendImportEmail'
    }

    def __init__(self, identifier=None, name=None, description=None, folder_id=None, user_ids=None, provider=None, provider_name=None, role=None, send_import_email=None):  # noqa: E501
        """CreateGroupParameter - a model defined in Swagger"""  # noqa: E501
        self._identifier = None
        self._name = None
        self._description = None
        self._folder_id = None
        self._user_ids = None
        self._provider = None
        self._provider_name = None
        self._role = None
        self._send_import_email = None
        self.discriminator = None
        if identifier is not None:
            self.identifier = identifier
        if name is not None:
            self.name = name
        if description is not None:
            self.description = description
        if folder_id is not None:
            self.folder_id = folder_id
        if user_ids is not None:
            self.user_ids = user_ids
        if provider is not None:
            self.provider = provider
        if provider_name is not None:
            self.provider_name = provider_name
        if role is not None:
            self.role = role
        if send_import_email is not None:
            self.send_import_email = send_import_email

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


        :return: The identifier of this CreateGroupParameter.  # noqa: E501
        :rtype: str
        """
        return self._identifier

    @identifier.setter
    def identifier(self, identifier):
        """Sets the identifier of this CreateGroupParameter.


        :param identifier: The identifier of this CreateGroupParameter.  # noqa: E501
        :type: str
        """

        self._identifier = identifier

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


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

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


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

        self._name = name

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


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

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


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

        self._description = description

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


        :return: The folder_id of this CreateGroupParameter.  # noqa: E501
        :rtype: str
        """
        return self._folder_id

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


        :param folder_id: The folder_id of this CreateGroupParameter.  # noqa: E501
        :type: str
        """

        self._folder_id = folder_id

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


        :return: The user_ids of this CreateGroupParameter.  # noqa: E501
        :rtype: list[str]
        """
        return self._user_ids

    @user_ids.setter
    def user_ids(self, user_ids):
        """Sets the user_ids of this CreateGroupParameter.


        :param user_ids: The user_ids of this CreateGroupParameter.  # noqa: E501
        :type: list[str]
        """

        self._user_ids = user_ids

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


        :return: The provider of this CreateGroupParameter.  # noqa: E501
        :rtype: SecurityProvider
        """
        return self._provider

    @provider.setter
    def provider(self, provider):
        """Sets the provider of this CreateGroupParameter.


        :param provider: The provider of this CreateGroupParameter.  # noqa: E501
        :type: SecurityProvider
        """

        self._provider = provider

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


        :return: The provider_name of this CreateGroupParameter.  # noqa: E501
        :rtype: str
        """
        return self._provider_name

    @provider_name.setter
    def provider_name(self, provider_name):
        """Sets the provider_name of this CreateGroupParameter.


        :param provider_name: The provider_name of this CreateGroupParameter.  # noqa: E501
        :type: str
        """

        self._provider_name = provider_name

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


        :return: The role of this CreateGroupParameter.  # noqa: E501
        :rtype: PermissionDTO
        """
        return self._role

    @role.setter
    def role(self, role):
        """Sets the role of this CreateGroupParameter.


        :param role: The role of this CreateGroupParameter.  # noqa: E501
        :type: PermissionDTO
        """

        self._role = role

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


        :return: The send_import_email of this CreateGroupParameter.  # noqa: E501
        :rtype: bool
        """
        return self._send_import_email

    @send_import_email.setter
    def send_import_email(self, send_import_email):
        """Sets the send_import_email of this CreateGroupParameter.


        :param send_import_email: The send_import_email of this CreateGroupParameter.  # noqa: E501
        :type: bool
        """

        self._send_import_email = send_import_email

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

        return self.__dict__ == other.__dict__

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