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 UpdateTargetRecipeDetectorRuleDetails(object):
12    """
13    The details to be updated in TargetDetectorRecipeDetectorRule
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new UpdateTargetRecipeDetectorRuleDetails object with values from keyword arguments.
19        The following keyword arguments are supported (corresponding to the getters/setters of this class):
20
21        :param detector_rule_id:
22            The value to assign to the detector_rule_id property of this UpdateTargetRecipeDetectorRuleDetails.
23        :type detector_rule_id: str
24
25        :param details:
26            The value to assign to the details property of this UpdateTargetRecipeDetectorRuleDetails.
27        :type details: oci.cloud_guard.models.UpdateTargetDetectorRuleDetails
28
29        """
30        self.swagger_types = {
31            'detector_rule_id': 'str',
32            'details': 'UpdateTargetDetectorRuleDetails'
33        }
34
35        self.attribute_map = {
36            'detector_rule_id': 'detectorRuleId',
37            'details': 'details'
38        }
39
40        self._detector_rule_id = None
41        self._details = None
42
43    @property
44    def detector_rule_id(self):
45        """
46        **[Required]** Gets the detector_rule_id of this UpdateTargetRecipeDetectorRuleDetails.
47        Identifier for DetectorRule.
48
49
50        :return: The detector_rule_id of this UpdateTargetRecipeDetectorRuleDetails.
51        :rtype: str
52        """
53        return self._detector_rule_id
54
55    @detector_rule_id.setter
56    def detector_rule_id(self, detector_rule_id):
57        """
58        Sets the detector_rule_id of this UpdateTargetRecipeDetectorRuleDetails.
59        Identifier for DetectorRule.
60
61
62        :param detector_rule_id: The detector_rule_id of this UpdateTargetRecipeDetectorRuleDetails.
63        :type: str
64        """
65        self._detector_rule_id = detector_rule_id
66
67    @property
68    def details(self):
69        """
70        **[Required]** Gets the details of this UpdateTargetRecipeDetectorRuleDetails.
71
72        :return: The details of this UpdateTargetRecipeDetectorRuleDetails.
73        :rtype: oci.cloud_guard.models.UpdateTargetDetectorRuleDetails
74        """
75        return self._details
76
77    @details.setter
78    def details(self, details):
79        """
80        Sets the details of this UpdateTargetRecipeDetectorRuleDetails.
81
82        :param details: The details of this UpdateTargetRecipeDetectorRuleDetails.
83        :type: oci.cloud_guard.models.UpdateTargetDetectorRuleDetails
84        """
85        self._details = details
86
87    def __repr__(self):
88        return formatted_flat_dict(self)
89
90    def __eq__(self, other):
91        if other is None:
92            return False
93
94        return self.__dict__ == other.__dict__
95
96    def __ne__(self, other):
97        return not self == other
98