Class ConsumerGroup.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public ConsumerGroup.Builder id​(String id)
        A unique identifier for the consumer group that is immutable on creation.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public ConsumerGroup.Builder displayName​(String displayName)
        A user-friendly name for the consumer group.

        It has to be unique within the same queue in a case-insensitive manner. It’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • timeCreated

        public ConsumerGroup.Builder timeCreated​(Date timeCreated)
        The time that the consumer group was created, expressed in RFC 3339 timestamp format.

        Example: 2018-04-20T00:00:07.405Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public ConsumerGroup.Builder timeUpdated​(Date timeUpdated)
        The time that the consumer group was updated, expressed in RFC 3339 timestamp format.

        Example: 2018-04-20T00:00:07.405Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public ConsumerGroup.Builder lifecycleDetails​(String lifecycleDetails)
        Any additional details about the current state of the consumer group.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • filter

        public ConsumerGroup.Builder filter​(String filter)
        The filter used by the consumer group.

        Only messages matching the filter will be available by consumers of the group. An empty value means that all messages will be available in the group.

        Parameters:
        filter - the value to set
        Returns:
        this builder
      • queueId

        public ConsumerGroup.Builder queueId​(String queueId)
        The OCID of the associated queue.
        Parameters:
        queueId - the value to set
        Returns:
        this builder
      • deadLetterQueueDeliveryCount

        public ConsumerGroup.Builder deadLetterQueueDeliveryCount​(Integer deadLetterQueueDeliveryCount)
        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. If the value isn’t set, it will be using the value defined at the queue level.

        Parameters:
        deadLetterQueueDeliveryCount - the value to set
        Returns:
        this builder
      • freeformTags

        public ConsumerGroup.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public ConsumerGroup.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • systemTags

        public ConsumerGroup.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder