# coding: utf-8
# Copyright (c) 2016, 2024, 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: 20200131


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 SightingImpactedResourceSummary(object):
    """
    Summary of resources impacted by a sighting.
    """

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

        :param id:
            The value to assign to the id property of this SightingImpactedResourceSummary.
        :type id: str

        :param resource_id:
            The value to assign to the resource_id property of this SightingImpactedResourceSummary.
        :type resource_id: str

        :param sighting_id:
            The value to assign to the sighting_id property of this SightingImpactedResourceSummary.
        :type sighting_id: str

        :param problem_id:
            The value to assign to the problem_id property of this SightingImpactedResourceSummary.
        :type problem_id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this SightingImpactedResourceSummary.
        :type compartment_id: str

        :param resource_name:
            The value to assign to the resource_name property of this SightingImpactedResourceSummary.
        :type resource_name: str

        :param resource_type:
            The value to assign to the resource_type property of this SightingImpactedResourceSummary.
        :type resource_type: str

        :param region:
            The value to assign to the region property of this SightingImpactedResourceSummary.
        :type region: str

        :param time_identified:
            The value to assign to the time_identified property of this SightingImpactedResourceSummary.
        :type time_identified: datetime

        :param time_first_detected:
            The value to assign to the time_first_detected property of this SightingImpactedResourceSummary.
        :type time_first_detected: datetime

        :param time_last_detected:
            The value to assign to the time_last_detected property of this SightingImpactedResourceSummary.
        :type time_last_detected: datetime

        :param time_first_occurred:
            The value to assign to the time_first_occurred property of this SightingImpactedResourceSummary.
        :type time_first_occurred: datetime

        :param time_last_occurred:
            The value to assign to the time_last_occurred property of this SightingImpactedResourceSummary.
        :type time_last_occurred: datetime

        """
        self.swagger_types = {
            'id': 'str',
            'resource_id': 'str',
            'sighting_id': 'str',
            'problem_id': 'str',
            'compartment_id': 'str',
            'resource_name': 'str',
            'resource_type': 'str',
            'region': 'str',
            'time_identified': 'datetime',
            'time_first_detected': 'datetime',
            'time_last_detected': 'datetime',
            'time_first_occurred': 'datetime',
            'time_last_occurred': 'datetime'
        }

        self.attribute_map = {
            'id': 'id',
            'resource_id': 'resourceId',
            'sighting_id': 'sightingId',
            'problem_id': 'problemId',
            'compartment_id': 'compartmentId',
            'resource_name': 'resourceName',
            'resource_type': 'resourceType',
            'region': 'region',
            'time_identified': 'timeIdentified',
            'time_first_detected': 'timeFirstDetected',
            'time_last_detected': 'timeLastDetected',
            'time_first_occurred': 'timeFirstOccurred',
            'time_last_occurred': 'timeLastOccurred'
        }

        self._id = None
        self._resource_id = None
        self._sighting_id = None
        self._problem_id = None
        self._compartment_id = None
        self._resource_name = None
        self._resource_type = None
        self._region = None
        self._time_identified = None
        self._time_first_detected = None
        self._time_last_detected = None
        self._time_first_occurred = None
        self._time_last_occurred = None

    @property
    def id(self):
        """
        **[Required]** Gets the id of this SightingImpactedResourceSummary.
        Unique identifier for an impacted resource


        :return: The id of this SightingImpactedResourceSummary.
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """
        Sets the id of this SightingImpactedResourceSummary.
        Unique identifier for an impacted resource


        :param id: The id of this SightingImpactedResourceSummary.
        :type: str
        """
        self._id = id

    @property
    def resource_id(self):
        """
        **[Required]** Gets the resource_id of this SightingImpactedResourceSummary.
        Impacted resource ID


        :return: The resource_id of this SightingImpactedResourceSummary.
        :rtype: str
        """
        return self._resource_id

    @resource_id.setter
    def resource_id(self, resource_id):
        """
        Sets the resource_id of this SightingImpactedResourceSummary.
        Impacted resource ID


        :param resource_id: The resource_id of this SightingImpactedResourceSummary.
        :type: str
        """
        self._resource_id = resource_id

    @property
    def sighting_id(self):
        """
        **[Required]** Gets the sighting_id of this SightingImpactedResourceSummary.
        Sighting ID for impacted resource


        :return: The sighting_id of this SightingImpactedResourceSummary.
        :rtype: str
        """
        return self._sighting_id

    @sighting_id.setter
    def sighting_id(self, sighting_id):
        """
        Sets the sighting_id of this SightingImpactedResourceSummary.
        Sighting ID for impacted resource


        :param sighting_id: The sighting_id of this SightingImpactedResourceSummary.
        :type: str
        """
        self._sighting_id = sighting_id

    @property
    def problem_id(self):
        """
        Gets the problem_id of this SightingImpactedResourceSummary.
        Problem ID for impacted resource


        :return: The problem_id of this SightingImpactedResourceSummary.
        :rtype: str
        """
        return self._problem_id

    @problem_id.setter
    def problem_id(self, problem_id):
        """
        Sets the problem_id of this SightingImpactedResourceSummary.
        Problem ID for impacted resource


        :param problem_id: The problem_id of this SightingImpactedResourceSummary.
        :type: str
        """
        self._problem_id = problem_id

    @property
    def compartment_id(self):
        """
        **[Required]** Gets the compartment_id of this SightingImpactedResourceSummary.
        Compartment ID for impacted resource


        :return: The compartment_id of this SightingImpactedResourceSummary.
        :rtype: str
        """
        return self._compartment_id

    @compartment_id.setter
    def compartment_id(self, compartment_id):
        """
        Sets the compartment_id of this SightingImpactedResourceSummary.
        Compartment ID for impacted resource


        :param compartment_id: The compartment_id of this SightingImpactedResourceSummary.
        :type: str
        """
        self._compartment_id = compartment_id

    @property
    def resource_name(self):
        """
        **[Required]** Gets the resource_name of this SightingImpactedResourceSummary.
        Resource name


        :return: The resource_name of this SightingImpactedResourceSummary.
        :rtype: str
        """
        return self._resource_name

    @resource_name.setter
    def resource_name(self, resource_name):
        """
        Sets the resource_name of this SightingImpactedResourceSummary.
        Resource name


        :param resource_name: The resource_name of this SightingImpactedResourceSummary.
        :type: str
        """
        self._resource_name = resource_name

    @property
    def resource_type(self):
        """
        **[Required]** Gets the resource_type of this SightingImpactedResourceSummary.
        Resource type


        :return: The resource_type of this SightingImpactedResourceSummary.
        :rtype: str
        """
        return self._resource_type

    @resource_type.setter
    def resource_type(self, resource_type):
        """
        Sets the resource_type of this SightingImpactedResourceSummary.
        Resource type


        :param resource_type: The resource_type of this SightingImpactedResourceSummary.
        :type: str
        """
        self._resource_type = resource_type

    @property
    def region(self):
        """
        **[Required]** Gets the region of this SightingImpactedResourceSummary.
        Region for impacted resource


        :return: The region of this SightingImpactedResourceSummary.
        :rtype: str
        """
        return self._region

    @region.setter
    def region(self, region):
        """
        Sets the region of this SightingImpactedResourceSummary.
        Region for impacted resource


        :param region: The region of this SightingImpactedResourceSummary.
        :type: str
        """
        self._region = region

    @property
    def time_identified(self):
        """
        **[Required]** Gets the time_identified of this SightingImpactedResourceSummary.
        Date and time when the impacted resource is identified for given sighting


        :return: The time_identified of this SightingImpactedResourceSummary.
        :rtype: datetime
        """
        return self._time_identified

    @time_identified.setter
    def time_identified(self, time_identified):
        """
        Sets the time_identified of this SightingImpactedResourceSummary.
        Date and time when the impacted resource is identified for given sighting


        :param time_identified: The time_identified of this SightingImpactedResourceSummary.
        :type: datetime
        """
        self._time_identified = time_identified

    @property
    def time_first_detected(self):
        """
        Gets the time_first_detected of this SightingImpactedResourceSummary.
        Time the activities were first detected.


        :return: The time_first_detected of this SightingImpactedResourceSummary.
        :rtype: datetime
        """
        return self._time_first_detected

    @time_first_detected.setter
    def time_first_detected(self, time_first_detected):
        """
        Sets the time_first_detected of this SightingImpactedResourceSummary.
        Time the activities were first detected.


        :param time_first_detected: The time_first_detected of this SightingImpactedResourceSummary.
        :type: datetime
        """
        self._time_first_detected = time_first_detected

    @property
    def time_last_detected(self):
        """
        Gets the time_last_detected of this SightingImpactedResourceSummary.
        Time the activities were last detected. Same as timeIdentified.


        :return: The time_last_detected of this SightingImpactedResourceSummary.
        :rtype: datetime
        """
        return self._time_last_detected

    @time_last_detected.setter
    def time_last_detected(self, time_last_detected):
        """
        Sets the time_last_detected of this SightingImpactedResourceSummary.
        Time the activities were last detected. Same as timeIdentified.


        :param time_last_detected: The time_last_detected of this SightingImpactedResourceSummary.
        :type: datetime
        """
        self._time_last_detected = time_last_detected

    @property
    def time_first_occurred(self):
        """
        Gets the time_first_occurred of this SightingImpactedResourceSummary.
        Time the activities were first performed.


        :return: The time_first_occurred of this SightingImpactedResourceSummary.
        :rtype: datetime
        """
        return self._time_first_occurred

    @time_first_occurred.setter
    def time_first_occurred(self, time_first_occurred):
        """
        Sets the time_first_occurred of this SightingImpactedResourceSummary.
        Time the activities were first performed.


        :param time_first_occurred: The time_first_occurred of this SightingImpactedResourceSummary.
        :type: datetime
        """
        self._time_first_occurred = time_first_occurred

    @property
    def time_last_occurred(self):
        """
        Gets the time_last_occurred of this SightingImpactedResourceSummary.
        Time the activities were last performed.


        :return: The time_last_occurred of this SightingImpactedResourceSummary.
        :rtype: datetime
        """
        return self._time_last_occurred

    @time_last_occurred.setter
    def time_last_occurred(self, time_last_occurred):
        """
        Sets the time_last_occurred of this SightingImpactedResourceSummary.
        Time the activities were last performed.


        :param time_last_occurred: The time_last_occurred of this SightingImpactedResourceSummary.
        :type: datetime
        """
        self._time_last_occurred = time_last_occurred

    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
