Package com.oracle.bmc.queue.model
Class UpdateConsumerGroupDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.queue.model.UpdateConsumerGroupDetails.Builder
-
- Enclosing class:
- UpdateConsumerGroupDetails
public static class UpdateConsumerGroupDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateConsumerGroupDetailsbuild()UpdateConsumerGroupDetails.Buildercopy(UpdateConsumerGroupDetails model)UpdateConsumerGroupDetails.BuilderdeadLetterQueueDeliveryCount(Integer deadLetterQueueDeliveryCount)The number of times a message can be delivered to a consumer before being moved to the dead letter queue.UpdateConsumerGroupDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.UpdateConsumerGroupDetails.BuilderdisplayName(String displayName)The OCID of the consumer group.UpdateConsumerGroupDetails.Builderfilter(String filter)The filter used by the consumer group.UpdateConsumerGroupDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.UpdateConsumerGroupDetails.BuilderisEnabled(Boolean isEnabled)Used to enable or disable the consumer group.
-
-
-
Method Detail
-
displayName
public UpdateConsumerGroupDetails.Builder displayName(String displayName)
The OCID of the consumer group.- Parameters:
displayName- the value to set- Returns:
- this builder
-
filter
public UpdateConsumerGroupDetails.Builder filter(String filter)
The filter used by the consumer group.Only messages matching the filter will be available by consumers of the group.
- Parameters:
filter- the value to set- Returns:
- this builder
-
isEnabled
public UpdateConsumerGroupDetails.Builder isEnabled(Boolean isEnabled)
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.
- Parameters:
isEnabled- the value to set- Returns:
- this builder
-
deadLetterQueueDeliveryCount
public UpdateConsumerGroupDetails.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. 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).
- Parameters:
deadLetterQueueDeliveryCount- the value to set- Returns:
- this builder
-
freeformTags
public UpdateConsumerGroupDetails.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 UpdateConsumerGroupDetails.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
-
build
public UpdateConsumerGroupDetails build()
-
copy
public UpdateConsumerGroupDetails.Builder copy(UpdateConsumerGroupDetails model)
-
-