# coding: utf-8
# Copyright (c) 2016, 2026, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20210201


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 DataFileSummary(object):
    """
    Properties related to the file.
    """

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

        :param name:
            The value to assign to the name property of this DataFileSummary.
        :type name: str

        :param apm_type:
            The value to assign to the apm_type property of this DataFileSummary.
        :type apm_type: str

        :param size_in_bytes:
            The value to assign to the size_in_bytes property of this DataFileSummary.
        :type size_in_bytes: int

        :param md5:
            The value to assign to the md5 property of this DataFileSummary.
        :type md5: str

        :param time_last_modified:
            The value to assign to the time_last_modified property of this DataFileSummary.
        :type time_last_modified: datetime

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

        """
        self.swagger_types = {
            'name': 'str',
            'apm_type': 'str',
            'size_in_bytes': 'int',
            'md5': 'str',
            'time_last_modified': 'datetime',
            'metadata': 'dict(str, str)'
        }
        self.attribute_map = {
            'name': 'name',
            'apm_type': 'apmType',
            'size_in_bytes': 'sizeInBytes',
            'md5': 'md5',
            'time_last_modified': 'timeLastModified',
            'metadata': 'metadata'
        }
        self._name = None
        self._apm_type = None
        self._size_in_bytes = None
        self._md5 = None
        self._time_last_modified = None
        self._metadata = None

    @property
    def name(self):
        """
        **[Required]** Gets the name of this DataFileSummary.
        The name to use as identifier for the data file.


        :return: The name of this DataFileSummary.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this DataFileSummary.
        The name to use as identifier for the data file.


        :param name: The name of this DataFileSummary.
        :type: str
        """
        self._name = name

    @property
    def apm_type(self):
        """
        **[Required]** Gets the apm_type of this DataFileSummary.
        The type of the data file, indicating its intended use
        Example: `source_map`


        :return: The apm_type of this DataFileSummary.
        :rtype: str
        """
        return self._apm_type

    @apm_type.setter
    def apm_type(self, apm_type):
        """
        Sets the apm_type of this DataFileSummary.
        The type of the data file, indicating its intended use
        Example: `source_map`


        :param apm_type: The apm_type of this DataFileSummary.
        :type: str
        """
        self._apm_type = apm_type

    @property
    def size_in_bytes(self):
        """
        Gets the size_in_bytes of this DataFileSummary.
        Size of the object in bytes.


        :return: The size_in_bytes of this DataFileSummary.
        :rtype: int
        """
        return self._size_in_bytes

    @size_in_bytes.setter
    def size_in_bytes(self, size_in_bytes):
        """
        Sets the size_in_bytes of this DataFileSummary.
        Size of the object in bytes.


        :param size_in_bytes: The size_in_bytes of this DataFileSummary.
        :type: int
        """
        self._size_in_bytes = size_in_bytes

    @property
    def md5(self):
        """
        Gets the md5 of this DataFileSummary.
        Base64-encoded MD5 hash of the object data.


        :return: The md5 of this DataFileSummary.
        :rtype: str
        """
        return self._md5

    @md5.setter
    def md5(self, md5):
        """
        Sets the md5 of this DataFileSummary.
        Base64-encoded MD5 hash of the object data.


        :param md5: The md5 of this DataFileSummary.
        :type: str
        """
        self._md5 = md5

    @property
    def time_last_modified(self):
        """
        Gets the time_last_modified of this DataFileSummary.
        The last time the object was modified, as described in `RFC 2616`__.
        Expressed in `RFC 3339`__ timestamp format.
        Example: `2020-02-19T22:47:12.613Z`

        __ https://tools.ietf.org/html/rfc2616#section-14.29
        __ https://tools.ietf.org/html/rfc3339


        :return: The time_last_modified of this DataFileSummary.
        :rtype: datetime
        """
        return self._time_last_modified

    @time_last_modified.setter
    def time_last_modified(self, time_last_modified):
        """
        Sets the time_last_modified of this DataFileSummary.
        The last time the object was modified, as described in `RFC 2616`__.
        Expressed in `RFC 3339`__ timestamp format.
        Example: `2020-02-19T22:47:12.613Z`

        __ https://tools.ietf.org/html/rfc2616#section-14.29
        __ https://tools.ietf.org/html/rfc3339


        :param time_last_modified: The time_last_modified of this DataFileSummary.
        :type: datetime
        """
        self._time_last_modified = time_last_modified

    @property
    def metadata(self):
        """
        Gets the metadata of this DataFileSummary.
        Metadata properties related to the data file.


        :return: The metadata of this DataFileSummary.
        :rtype: dict(str, str)
        """
        return self._metadata

    @metadata.setter
    def metadata(self, metadata):
        """
        Sets the metadata of this DataFileSummary.
        Metadata properties related to the data file.


        :param metadata: The metadata of this DataFileSummary.
        :type: dict(str, str)
        """
        self._metadata = metadata

    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
