# coding: utf-8
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class UpdateEntityDetails(object):
    """
    Properties used in Entity Update operations.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new UpdateEntityDetails object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param display_name:
            The value to assign to the display_name property of this UpdateEntityDetails.
        :type display_name: str

        :param description:
            The value to assign to the description property of this UpdateEntityDetails.
        :type description: str

        :param time_external:
            The value to assign to the time_external property of this UpdateEntityDetails.
        :type time_external: datetime

        :param is_logical:
            The value to assign to the is_logical property of this UpdateEntityDetails.
        :type is_logical: bool

        :param is_partition:
            The value to assign to the is_partition property of this UpdateEntityDetails.
        :type is_partition: bool

        :param folder_key:
            The value to assign to the folder_key property of this UpdateEntityDetails.
        :type folder_key: str

        :param harvest_status:
            The value to assign to the harvest_status property of this UpdateEntityDetails.
        :type harvest_status: str

        :param last_job_key:
            The value to assign to the last_job_key property of this UpdateEntityDetails.
        :type last_job_key: str

        :param properties:
            The value to assign to the properties property of this UpdateEntityDetails.
        :type properties: dict(str, dict(str, str))

        """
        self.swagger_types = {
            'display_name': 'str',
            'description': 'str',
            'time_external': 'datetime',
            'is_logical': 'bool',
            'is_partition': 'bool',
            'folder_key': 'str',
            'harvest_status': 'str',
            'last_job_key': 'str',
            'properties': 'dict(str, dict(str, str))'
        }

        self.attribute_map = {
            'display_name': 'displayName',
            'description': 'description',
            'time_external': 'timeExternal',
            'is_logical': 'isLogical',
            'is_partition': 'isPartition',
            'folder_key': 'folderKey',
            'harvest_status': 'harvestStatus',
            'last_job_key': 'lastJobKey',
            'properties': 'properties'
        }

        self._display_name = None
        self._description = None
        self._time_external = None
        self._is_logical = None
        self._is_partition = None
        self._folder_key = None
        self._harvest_status = None
        self._last_job_key = None
        self._properties = None

    @property
    def display_name(self):
        """
        Gets the display_name of this UpdateEntityDetails.
        The display name of a user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.


        :return: The display_name of this UpdateEntityDetails.
        :rtype: str
        """
        return self._display_name

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this UpdateEntityDetails.
        The display name of a user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.


        :param display_name: The display_name of this UpdateEntityDetails.
        :type: str
        """
        self._display_name = display_name

    @property
    def description(self):
        """
        Gets the description of this UpdateEntityDetails.
        Detailed description of an Entity.


        :return: The description of this UpdateEntityDetails.
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """
        Sets the description of this UpdateEntityDetails.
        Detailed description of an Entity.


        :param description: The description of this UpdateEntityDetails.
        :type: str
        """
        self._description = description

    @property
    def time_external(self):
        """
        Gets the time_external of this UpdateEntityDetails.
        Last modified timestamp of the object in the external system


        :return: The time_external of this UpdateEntityDetails.
        :rtype: datetime
        """
        return self._time_external

    @time_external.setter
    def time_external(self, time_external):
        """
        Sets the time_external of this UpdateEntityDetails.
        Last modified timestamp of the object in the external system


        :param time_external: The time_external of this UpdateEntityDetails.
        :type: datetime
        """
        self._time_external = time_external

    @property
    def is_logical(self):
        """
        Gets the is_logical of this UpdateEntityDetails.
        Property to indicate if the object is a physical materialized object or virtual . For example: view


        :return: The is_logical of this UpdateEntityDetails.
        :rtype: bool
        """
        return self._is_logical

    @is_logical.setter
    def is_logical(self, is_logical):
        """
        Sets the is_logical of this UpdateEntityDetails.
        Property to indicate if the object is a physical materialized object or virtual . For example: view


        :param is_logical: The is_logical of this UpdateEntityDetails.
        :type: bool
        """
        self._is_logical = is_logical

    @property
    def is_partition(self):
        """
        Gets the is_partition of this UpdateEntityDetails.
        Property to indicate if the object is a sub object of a parent physical object.


        :return: The is_partition of this UpdateEntityDetails.
        :rtype: bool
        """
        return self._is_partition

    @is_partition.setter
    def is_partition(self, is_partition):
        """
        Sets the is_partition of this UpdateEntityDetails.
        Property to indicate if the object is a sub object of a parent physical object.


        :param is_partition: The is_partition of this UpdateEntityDetails.
        :type: bool
        """
        self._is_partition = is_partition

    @property
    def folder_key(self):
        """
        Gets the folder_key of this UpdateEntityDetails.
        Key of the associated folder.


        :return: The folder_key of this UpdateEntityDetails.
        :rtype: str
        """
        return self._folder_key

    @folder_key.setter
    def folder_key(self, folder_key):
        """
        Sets the folder_key of this UpdateEntityDetails.
        Key of the associated folder.


        :param folder_key: The folder_key of this UpdateEntityDetails.
        :type: str
        """
        self._folder_key = folder_key

    @property
    def harvest_status(self):
        """
        Gets the harvest_status of this UpdateEntityDetails.
        Status of the object as updated by the harvest process. When an entity object is created, it's harvest status
        will indicate if the entity's metadata has been fully harvested or not. The harvest process can perform
        shallow harvesting to allow users to browse the metadata and can on-demand deep harvest on any object
        This requires a harvest status indicator for catalog objects.


        :return: The harvest_status of this UpdateEntityDetails.
        :rtype: str
        """
        return self._harvest_status

    @harvest_status.setter
    def harvest_status(self, harvest_status):
        """
        Sets the harvest_status of this UpdateEntityDetails.
        Status of the object as updated by the harvest process. When an entity object is created, it's harvest status
        will indicate if the entity's metadata has been fully harvested or not. The harvest process can perform
        shallow harvesting to allow users to browse the metadata and can on-demand deep harvest on any object
        This requires a harvest status indicator for catalog objects.


        :param harvest_status: The harvest_status of this UpdateEntityDetails.
        :type: str
        """
        self._harvest_status = harvest_status

    @property
    def last_job_key(self):
        """
        Gets the last_job_key of this UpdateEntityDetails.
        Key of the last harvest process to update this object


        :return: The last_job_key of this UpdateEntityDetails.
        :rtype: str
        """
        return self._last_job_key

    @last_job_key.setter
    def last_job_key(self, last_job_key):
        """
        Sets the last_job_key of this UpdateEntityDetails.
        Key of the last harvest process to update this object


        :param last_job_key: The last_job_key of this UpdateEntityDetails.
        :type: str
        """
        self._last_job_key = last_job_key

    @property
    def properties(self):
        """
        Gets the properties of this UpdateEntityDetails.
        A map of maps which contains the properties which are specific to the entity type. Each entity type
        definition defines it's set of required and optional properties. The map keys are category names and the
        values are maps of property name to property value. Every property is contained inside of a category. Most
        entities have required properties within the \"default\" category. To determine the set of required and
        optional properties for an entity type, a query can be done on '/types?type=dataEntity' which returns a
        collection of all entity types. The appropriate entity type, which includes definitions of all of
        it's properties, can be identified from this collection.
        Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}`


        :return: The properties of this UpdateEntityDetails.
        :rtype: dict(str, dict(str, str))
        """
        return self._properties

    @properties.setter
    def properties(self, properties):
        """
        Sets the properties of this UpdateEntityDetails.
        A map of maps which contains the properties which are specific to the entity type. Each entity type
        definition defines it's set of required and optional properties. The map keys are category names and the
        values are maps of property name to property value. Every property is contained inside of a category. Most
        entities have required properties within the \"default\" category. To determine the set of required and
        optional properties for an entity type, a query can be done on '/types?type=dataEntity' which returns a
        collection of all entity types. The appropriate entity type, which includes definitions of all of
        it's properties, can be identified from this collection.
        Example: `{\"properties\": { \"default\": { \"key1\": \"value1\"}}}`


        :param properties: The properties of this UpdateEntityDetails.
        :type: dict(str, dict(str, str))
        """
        self._properties = properties

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
