# coding: utf-8

"""
    cloudidentity

    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 DeleteAccountAssignmentRequest(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 = {
        'deprovision_strategy': 'str',
        'permission_set_id': 'str',
        'principal_id': 'str',
        'principal_type': 'str',
        'target_id': 'str'
    }

    attribute_map = {
        'deprovision_strategy': 'DeprovisionStrategy',
        'permission_set_id': 'PermissionSetId',
        'principal_id': 'PrincipalId',
        'principal_type': 'PrincipalType',
        'target_id': 'TargetId'
    }

    def __init__(self, deprovision_strategy=None, permission_set_id=None, principal_id=None, principal_type=None, target_id=None, _configuration=None):  # noqa: E501
        """DeleteAccountAssignmentRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._deprovision_strategy = None
        self._permission_set_id = None
        self._principal_id = None
        self._principal_type = None
        self._target_id = None
        self.discriminator = None

        if deprovision_strategy is not None:
            self.deprovision_strategy = deprovision_strategy
        self.permission_set_id = permission_set_id
        self.principal_id = principal_id
        self.principal_type = principal_type
        self.target_id = target_id

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


        :return: The deprovision_strategy of this DeleteAccountAssignmentRequest.  # noqa: E501
        :rtype: str
        """
        return self._deprovision_strategy

    @deprovision_strategy.setter
    def deprovision_strategy(self, deprovision_strategy):
        """Sets the deprovision_strategy of this DeleteAccountAssignmentRequest.


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

        self._deprovision_strategy = deprovision_strategy

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


        :return: The permission_set_id of this DeleteAccountAssignmentRequest.  # noqa: E501
        :rtype: str
        """
        return self._permission_set_id

    @permission_set_id.setter
    def permission_set_id(self, permission_set_id):
        """Sets the permission_set_id of this DeleteAccountAssignmentRequest.


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

        self._permission_set_id = permission_set_id

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


        :return: The principal_id of this DeleteAccountAssignmentRequest.  # noqa: E501
        :rtype: str
        """
        return self._principal_id

    @principal_id.setter
    def principal_id(self, principal_id):
        """Sets the principal_id of this DeleteAccountAssignmentRequest.


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

        self._principal_id = principal_id

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


        :return: The principal_type of this DeleteAccountAssignmentRequest.  # noqa: E501
        :rtype: str
        """
        return self._principal_type

    @principal_type.setter
    def principal_type(self, principal_type):
        """Sets the principal_type of this DeleteAccountAssignmentRequest.


        :param principal_type: The principal_type of this DeleteAccountAssignmentRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and principal_type is None:
            raise ValueError("Invalid value for `principal_type`, must not be `None`")  # noqa: E501
        allowed_values = ["User", "Group"]  # noqa: E501
        if (self._configuration.client_side_validation and
                principal_type not in allowed_values):
            raise ValueError(
                "Invalid value for `principal_type` ({0}), must be one of {1}"  # noqa: E501
                .format(principal_type, allowed_values)
            )

        self._principal_type = principal_type

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


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

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


        :param target_id: The target_id of this DeleteAccountAssignmentRequest.  # 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

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

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