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 CandidateResponderRule(object):
12    """
13    Candidate Responder Rule list in Detector rule
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new CandidateResponderRule 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 CandidateResponderRule.
23        :type id: str
24
25        :param display_name:
26            The value to assign to the display_name property of this CandidateResponderRule.
27        :type display_name: str
28
29        :param is_preferred:
30            The value to assign to the is_preferred property of this CandidateResponderRule.
31        :type is_preferred: bool
32
33        """
34        self.swagger_types = {
35            'id': 'str',
36            'display_name': 'str',
37            'is_preferred': 'bool'
38        }
39
40        self.attribute_map = {
41            'id': 'id',
42            'display_name': 'displayName',
43            'is_preferred': 'isPreferred'
44        }
45
46        self._id = None
47        self._display_name = None
48        self._is_preferred = None
49
50    @property
51    def id(self):
52        """
53        Gets the id of this CandidateResponderRule.
54        The unique identifier of the Responder rule
55
56
57        :return: The id of this CandidateResponderRule.
58        :rtype: str
59        """
60        return self._id
61
62    @id.setter
63    def id(self, id):
64        """
65        Sets the id of this CandidateResponderRule.
66        The unique identifier of the Responder rule
67
68
69        :param id: The id of this CandidateResponderRule.
70        :type: str
71        """
72        self._id = id
73
74    @property
75    def display_name(self):
76        """
77        Gets the display_name of this CandidateResponderRule.
78        The display name of the Responder rule
79
80
81        :return: The display_name of this CandidateResponderRule.
82        :rtype: str
83        """
84        return self._display_name
85
86    @display_name.setter
87    def display_name(self, display_name):
88        """
89        Sets the display_name of this CandidateResponderRule.
90        The display name of the Responder rule
91
92
93        :param display_name: The display_name of this CandidateResponderRule.
94        :type: str
95        """
96        self._display_name = display_name
97
98    @property
99    def is_preferred(self):
100        """
101        Gets the is_preferred of this CandidateResponderRule.
102        Preferred state
103
104
105        :return: The is_preferred of this CandidateResponderRule.
106        :rtype: bool
107        """
108        return self._is_preferred
109
110    @is_preferred.setter
111    def is_preferred(self, is_preferred):
112        """
113        Sets the is_preferred of this CandidateResponderRule.
114        Preferred state
115
116
117        :param is_preferred: The is_preferred of this CandidateResponderRule.
118        :type: bool
119        """
120        self._is_preferred = is_preferred
121
122    def __repr__(self):
123        return formatted_flat_dict(self)
124
125    def __eq__(self, other):
126        if other is None:
127            return False
128
129        return self.__dict__ == other.__dict__
130
131    def __ne__(self, other):
132        return not self == other
133