# 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_common_entity_resource import MicrosoftIngestionApiModelsCommonEntityResource  # noqa: F401,E501

class MicrosoftIngestionApiModelsListingsListingAsset(MicrosoftIngestionApiModelsCommonEntityResource):
    """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',
        'file_name': 'str',
        'type': 'str',
        'file_sas_uri': 'str',
        'publisher_defined_sas_uri': 'str',
        'state': 'str',
        'description': 'str',
        'friendly_name': 'str'
    }
    if hasattr(MicrosoftIngestionApiModelsCommonEntityResource, "swagger_types"):
        swagger_types.update(MicrosoftIngestionApiModelsCommonEntityResource.swagger_types)

    attribute_map = {
        'resource_type': 'resourceType',
        'file_name': 'fileName',
        'type': 'type',
        'file_sas_uri': 'fileSasUri',
        'publisher_defined_sas_uri': 'publisherDefinedSasUri',
        'state': 'state',
        'description': 'description',
        'friendly_name': 'friendlyName'
    }
    if hasattr(MicrosoftIngestionApiModelsCommonEntityResource, "attribute_map"):
        attribute_map.update(MicrosoftIngestionApiModelsCommonEntityResource.attribute_map)

    def __init__(self, resource_type=None, file_name=None, type=None, file_sas_uri=None, publisher_defined_sas_uri=None, state=None, description=None, friendly_name=None, *args, **kwargs):  # noqa: E501
        """MicrosoftIngestionApiModelsListingsListingAsset - a model defined in Swagger"""  # noqa: E501
        self._resource_type = None
        self._file_name = None
        self._type = None
        self._file_sas_uri = None
        self._publisher_defined_sas_uri = None
        self._state = None
        self._description = None
        self._friendly_name = None
        self.discriminator = None
        if resource_type is not None:
            self.resource_type = resource_type
        if file_name is not None:
            self.file_name = file_name
        if type is not None:
            self.type = type
        if file_sas_uri is not None:
            self.file_sas_uri = file_sas_uri
        if publisher_defined_sas_uri is not None:
            self.publisher_defined_sas_uri = publisher_defined_sas_uri
        if state is not None:
            self.state = state
        if description is not None:
            self.description = description
        if friendly_name is not None:
            self.friendly_name = friendly_name
        MicrosoftIngestionApiModelsCommonEntityResource.__init__(self, *args, **kwargs)

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


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

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


        :param resource_type: The resource_type of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :type: str
        """
        allowed_values = ["ListingAsset"]  # 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 file_name(self):
        """Gets the file_name of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501


        :return: The file_name of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :rtype: str
        """
        return self._file_name

    @file_name.setter
    def file_name(self, file_name):
        """Sets the file_name of this MicrosoftIngestionApiModelsListingsListingAsset.


        :param file_name: The file_name of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :type: str
        """

        self._file_name = file_name

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


        :return: The type of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this MicrosoftIngestionApiModelsListingsListingAsset.


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

        self._type = type

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


        :return: The file_sas_uri of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :rtype: str
        """
        return self._file_sas_uri

    @file_sas_uri.setter
    def file_sas_uri(self, file_sas_uri):
        """Sets the file_sas_uri of this MicrosoftIngestionApiModelsListingsListingAsset.


        :param file_sas_uri: The file_sas_uri of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :type: str
        """

        self._file_sas_uri = file_sas_uri

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


        :return: The publisher_defined_sas_uri of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :rtype: str
        """
        return self._publisher_defined_sas_uri

    @publisher_defined_sas_uri.setter
    def publisher_defined_sas_uri(self, publisher_defined_sas_uri):
        """Sets the publisher_defined_sas_uri of this MicrosoftIngestionApiModelsListingsListingAsset.


        :param publisher_defined_sas_uri: The publisher_defined_sas_uri of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :type: str
        """

        self._publisher_defined_sas_uri = publisher_defined_sas_uri

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


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

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


        :param state: The state of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :type: str
        """
        allowed_values = ["PendingUpload", "Uploaded", "InProcessing", "Processed", "ProcessFailed"]  # 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

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


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

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


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

        self._description = description

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


        :return: The friendly_name of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :rtype: str
        """
        return self._friendly_name

    @friendly_name.setter
    def friendly_name(self, friendly_name):
        """Sets the friendly_name of this MicrosoftIngestionApiModelsListingsListingAsset.


        :param friendly_name: The friendly_name of this MicrosoftIngestionApiModelsListingsListingAsset.  # noqa: E501
        :type: str
        """

        self._friendly_name = friendly_name

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

        return self.__dict__ == other.__dict__

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