File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/queue/models/update_consumer_group_details.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, 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: 20210201 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 UpdateConsumerGroupDetails(object): """ The information to be updated. """ def __init__(self, **kwargs): """ Initializes a new UpdateConsumerGroupDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param display_name: The value to assign to the display_name property of this UpdateConsumerGroupDetails. :type display_name: str :param filter: The value to assign to the filter property of this UpdateConsumerGroupDetails. :type filter: str :param is_enabled: The value to assign to the is_enabled property of this UpdateConsumerGroupDetails. :type is_enabled: bool :param dead_letter_queue_delivery_count: The value to assign to the dead_letter_queue_delivery_count property of this UpdateConsumerGroupDetails. :type dead_letter_queue_delivery_count: int :param freeform_tags: The value to assign to the freeform_tags property of this UpdateConsumerGroupDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this UpdateConsumerGroupDetails. :type defined_tags: dict(str, dict(str, object)) """ self.swagger_types = { 'display_name': 'str', 'filter': 'str', 'is_enabled': 'bool', 'dead_letter_queue_delivery_count': 'int', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } self.attribute_map = { 'display_name': 'displayName', 'filter': 'filter', 'is_enabled': 'isEnabled', 'dead_letter_queue_delivery_count': 'deadLetterQueueDeliveryCount', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } self._display_name = None self._filter = None self._is_enabled = None self._dead_letter_queue_delivery_count = None self._freeform_tags = None self._defined_tags = None @property def display_name(self): """ Gets the display_name of this UpdateConsumerGroupDetails. The `OCID`__ of the consumer group. __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The display_name of this UpdateConsumerGroupDetails. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this UpdateConsumerGroupDetails. The `OCID`__ of the consumer group. __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param display_name: The display_name of this UpdateConsumerGroupDetails. :type: str """ self._display_name = display_name @property def filter(self): """ Gets the filter of this UpdateConsumerGroupDetails. The filter used by the consumer group. Only messages matching the filter will be available by consumers of the group. :return: The filter of this UpdateConsumerGroupDetails. :rtype: str """ return self._filter @filter.setter def filter(self, filter): """ Sets the filter of this UpdateConsumerGroupDetails. The filter used by the consumer group. Only messages matching the filter will be available by consumers of the group. :param filter: The filter of this UpdateConsumerGroupDetails. :type: str """ self._filter = filter @property def is_enabled(self): """ Gets the is_enabled of this UpdateConsumerGroupDetails. Used to enable or disable the consumer group. An enabled consumer group will have a lifecycle state of ACTIVE, while a disabled will have its state as INACTIVE. :return: The is_enabled of this UpdateConsumerGroupDetails. :rtype: bool """ return self._is_enabled @is_enabled.setter def is_enabled(self, is_enabled): """ Sets the is_enabled of this UpdateConsumerGroupDetails. Used to enable or disable the consumer group. An enabled consumer group will have a lifecycle state of ACTIVE, while a disabled will have its state as INACTIVE. :param is_enabled: The is_enabled of this UpdateConsumerGroupDetails. :type: bool """ self._is_enabled = is_enabled @property def dead_letter_queue_delivery_count(self): """ Gets the dead_letter_queue_delivery_count of this UpdateConsumerGroupDetails. The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used. Changing that value to a lower threshold does not retroactively move in-flight messages in the dead letter queue. A value of -1 unsets the delivery count for the consumer group (i.e. it will now be using the value set at the queue level). :return: The dead_letter_queue_delivery_count of this UpdateConsumerGroupDetails. :rtype: int """ return self._dead_letter_queue_delivery_count @dead_letter_queue_delivery_count.setter def dead_letter_queue_delivery_count(self, dead_letter_queue_delivery_count): """ Sets the dead_letter_queue_delivery_count of this UpdateConsumerGroupDetails. The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used. Changing that value to a lower threshold does not retroactively move in-flight messages in the dead letter queue. A value of -1 unsets the delivery count for the consumer group (i.e. it will now be using the value set at the queue level). :param dead_letter_queue_delivery_count: The dead_letter_queue_delivery_count of this UpdateConsumerGroupDetails. :type: int """ self._dead_letter_queue_delivery_count = dead_letter_queue_delivery_count @property def freeform_tags(self): """ Gets the freeform_tags of this UpdateConsumerGroupDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :return: The freeform_tags of this UpdateConsumerGroupDetails. :rtype: dict(str, str) """ return self._freeform_tags @freeform_tags.setter def freeform_tags(self, freeform_tags): """ Sets the freeform_tags of this UpdateConsumerGroupDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :param freeform_tags: The freeform_tags of this UpdateConsumerGroupDetails. :type: dict(str, str) """ self._freeform_tags = freeform_tags @property def defined_tags(self): """ Gets the defined_tags of this UpdateConsumerGroupDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :return: The defined_tags of this UpdateConsumerGroupDetails. :rtype: dict(str, dict(str, object)) """ return self._defined_tags @defined_tags.setter def defined_tags(self, defined_tags): """ Sets the defined_tags of this UpdateConsumerGroupDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :param defined_tags: The defined_tags of this UpdateConsumerGroupDetails. :type: dict(str, dict(str, object)) """ self._defined_tags = defined_tags 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
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings