1# coding: utf-8
2# Copyright (c) 2016, 2021, Oracle and/or its affiliates.  All rights reserved.
3# 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.
4
5
6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
7from oci.decorators import init_model_state_from_kwargs
8
9
10@init_model_state_from_kwargs
11class LogIncludedSearchSummary(object):
12    """
13    A summary of what the OCI included search does.
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new LogIncludedSearchSummary object with values from keyword arguments.
19        The following keyword arguments are supported (corresponding to the getters/setters of this class):
20
21        :param id:
22            The value to assign to the id property of this LogIncludedSearchSummary.
23        :type id: str
24
25        :param display_name:
26            The value to assign to the display_name property of this LogIncludedSearchSummary.
27        :type display_name: str
28
29        :param time_created:
30            The value to assign to the time_created property of this LogIncludedSearchSummary.
31        :type time_created: datetime
32
33        :param time_last_modified:
34            The value to assign to the time_last_modified property of this LogIncludedSearchSummary.
35        :type time_last_modified: datetime
36
37        """
38        self.swagger_types = {
39            'id': 'str',
40            'display_name': 'str',
41            'time_created': 'datetime',
42            'time_last_modified': 'datetime'
43        }
44
45        self.attribute_map = {
46            'id': 'id',
47            'display_name': 'displayName',
48            'time_created': 'timeCreated',
49            'time_last_modified': 'timeLastModified'
50        }
51
52        self._id = None
53        self._display_name = None
54        self._time_created = None
55        self._time_last_modified = None
56
57    @property
58    def id(self):
59        """
60        **[Required]** Gets the id of this LogIncludedSearchSummary.
61        The OCID of the resource.
62
63
64        :return: The id of this LogIncludedSearchSummary.
65        :rtype: str
66        """
67        return self._id
68
69    @id.setter
70    def id(self, id):
71        """
72        Sets the id of this LogIncludedSearchSummary.
73        The OCID of the resource.
74
75
76        :param id: The id of this LogIncludedSearchSummary.
77        :type: str
78        """
79        self._id = id
80
81    @property
82    def display_name(self):
83        """
84        **[Required]** Gets the display_name of this LogIncludedSearchSummary.
85        The user-friendly display name. This must be unique within the enclosing resource,
86        and it's changeable. Avoid entering confidential information.
87
88
89        :return: The display_name of this LogIncludedSearchSummary.
90        :rtype: str
91        """
92        return self._display_name
93
94    @display_name.setter
95    def display_name(self, display_name):
96        """
97        Sets the display_name of this LogIncludedSearchSummary.
98        The user-friendly display name. This must be unique within the enclosing resource,
99        and it's changeable. Avoid entering confidential information.
100
101
102        :param display_name: The display_name of this LogIncludedSearchSummary.
103        :type: str
104        """
105        self._display_name = display_name
106
107    @property
108    def time_created(self):
109        """
110        Gets the time_created of this LogIncludedSearchSummary.
111        Time the resource was created.
112
113
114        :return: The time_created of this LogIncludedSearchSummary.
115        :rtype: datetime
116        """
117        return self._time_created
118
119    @time_created.setter
120    def time_created(self, time_created):
121        """
122        Sets the time_created of this LogIncludedSearchSummary.
123        Time the resource was created.
124
125
126        :param time_created: The time_created of this LogIncludedSearchSummary.
127        :type: datetime
128        """
129        self._time_created = time_created
130
131    @property
132    def time_last_modified(self):
133        """
134        Gets the time_last_modified of this LogIncludedSearchSummary.
135        Time the resource was last modified.
136
137
138        :return: The time_last_modified of this LogIncludedSearchSummary.
139        :rtype: datetime
140        """
141        return self._time_last_modified
142
143    @time_last_modified.setter
144    def time_last_modified(self, time_last_modified):
145        """
146        Sets the time_last_modified of this LogIncludedSearchSummary.
147        Time the resource was last modified.
148
149
150        :param time_last_modified: The time_last_modified of this LogIncludedSearchSummary.
151        :type: datetime
152        """
153        self._time_last_modified = time_last_modified
154
155    def __repr__(self):
156        return formatted_flat_dict(self)
157
158    def __eq__(self, other):
159        if other is None:
160            return False
161
162        return self.__dict__ == other.__dict__
163
164    def __ne__(self, other):
165        return not self == other
166