# coding: utf-8

"""
    https://api.partner.microsoft.com/v1.0/ingestion

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

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

import pprint
import re  # noqa: F401

import six
from swagger_client.models.microsoft_ingestion_api_models_variants_base_variant import MicrosoftIngestionApiModelsVariantsBaseVariant  # noqa: F401,E501

class MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant(MicrosoftIngestionApiModelsVariantsBaseVariant):
    """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 = {
        'resource_type': 'str',
        'test_drive_type': 'str',
        'state': 'str'
    }
    if hasattr(MicrosoftIngestionApiModelsVariantsBaseVariant, "swagger_types"):
        swagger_types.update(MicrosoftIngestionApiModelsVariantsBaseVariant.swagger_types)

    attribute_map = {
        'resource_type': 'resourceType',
        'test_drive_type': 'testDriveType',
        'state': 'state'
    }
    if hasattr(MicrosoftIngestionApiModelsVariantsBaseVariant, "attribute_map"):
        attribute_map.update(MicrosoftIngestionApiModelsVariantsBaseVariant.attribute_map)

    def __init__(self, resource_type=None, test_drive_type=None, state=None, *args, **kwargs):  # noqa: E501
        """MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant - a model defined in Swagger"""  # noqa: E501
        self._resource_type = None
        self._test_drive_type = None
        self._state = None
        self.discriminator = None
        if resource_type is not None:
            self.resource_type = resource_type
        if test_drive_type is not None:
            self.test_drive_type = test_drive_type
        if state is not None:
            self.state = state
        MicrosoftIngestionApiModelsVariantsBaseVariant.__init__(self, *args, **kwargs)

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


        :return: The resource_type of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.  # noqa: E501
        :rtype: str
        """
        return self._resource_type

    @resource_type.setter
    def resource_type(self, resource_type):
        """Sets the resource_type of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.


        :param resource_type: The resource_type of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.  # noqa: E501
        :type: str
        """
        allowed_values = ["AzureTestDriveVariant"]  # noqa: E501
        if resource_type not in allowed_values:
            raise ValueError(
                "Invalid value for `resource_type` ({0}), must be one of {1}"  # noqa: E501
                .format(resource_type, allowed_values)
            )

        self._resource_type = resource_type

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


        :return: The test_drive_type of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.  # noqa: E501
        :rtype: str
        """
        return self._test_drive_type

    @test_drive_type.setter
    def test_drive_type(self, test_drive_type):
        """Sets the test_drive_type of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.


        :param test_drive_type: The test_drive_type of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.  # noqa: E501
        :type: str
        """

        self._test_drive_type = test_drive_type

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


        :return: The state of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.  # noqa: E501
        :rtype: str
        """
        return self._state

    @state.setter
    def state(self, state):
        """Sets the state of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.


        :param state: The state of this MicrosoftIngestionApiModelsVariantsAzureTestDriveVariant.  # noqa: E501
        :type: str
        """
        allowed_values = ["Inactive", "Active"]  # noqa: E501
        if state not in allowed_values:
            raise ValueError(
                "Invalid value for `state` ({0}), must be one of {1}"  # noqa: E501
                .format(state, allowed_values)
            )

        self._state = state

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

        return self.__dict__ == other.__dict__

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