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 FieldValue(object): 12 """ 13 Field value representing and entry in a list-of-values field. 14 """ 15 16 def __init__(self, **kwargs): 17 """ 18 Initializes a new FieldValue object with values from keyword arguments. 19 The following keyword arguments are supported (corresponding to the getters/setters of this class): 20 21 :param display_value: 22 The value to assign to the display_value property of this FieldValue. 23 :type display_value: str 24 25 :param internal_value: 26 The value to assign to the internal_value property of this FieldValue. 27 :type internal_value: object 28 29 :param is_deleted: 30 The value to assign to the is_deleted property of this FieldValue. 31 :type is_deleted: bool 32 33 """ 34 self.swagger_types = { 35 'display_value': 'str', 36 'internal_value': 'object', 37 'is_deleted': 'bool' 38 } 39 40 self.attribute_map = { 41 'display_value': 'displayValue', 42 'internal_value': 'internalValue', 43 'is_deleted': 'isDeleted' 44 } 45 46 self._display_value = None 47 self._internal_value = None 48 self._is_deleted = None 49 50 @property 51 def display_value(self): 52 """ 53 Gets the display_value of this FieldValue. 54 Display representation of the field value. 55 56 57 :return: The display_value of this FieldValue. 58 :rtype: str 59 """ 60 return self._display_value 61 62 @display_value.setter 63 def display_value(self, display_value): 64 """ 65 Sets the display_value of this FieldValue. 66 Display representation of the field value. 67 68 69 :param display_value: The display_value of this FieldValue. 70 :type: str 71 """ 72 self._display_value = display_value 73 74 @property 75 def internal_value(self): 76 """ 77 Gets the internal_value of this FieldValue. 78 Internal representation of the field value. 79 80 81 :return: The internal_value of this FieldValue. 82 :rtype: object 83 """ 84 return self._internal_value 85 86 @internal_value.setter 87 def internal_value(self, internal_value): 88 """ 89 Sets the internal_value of this FieldValue. 90 Internal representation of the field value. 91 92 93 :param internal_value: The internal_value of this FieldValue. 94 :type: object 95 """ 96 self._internal_value = internal_value 97 98 @property 99 def is_deleted(self): 100 """ 101 Gets the is_deleted of this FieldValue. 102 Denotes if this list-of-values value has been marked as deleted. 103 104 105 :return: The is_deleted of this FieldValue. 106 :rtype: bool 107 """ 108 return self._is_deleted 109 110 @is_deleted.setter 111 def is_deleted(self, is_deleted): 112 """ 113 Sets the is_deleted of this FieldValue. 114 Denotes if this list-of-values value has been marked as deleted. 115 116 117 :param is_deleted: The is_deleted of this FieldValue. 118 :type: bool 119 """ 120 self._is_deleted = is_deleted 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