Package com.oracle.bmc.queue.model
Class ConsumerGroup.Builder
- java.lang.Object
-
- com.oracle.bmc.queue.model.ConsumerGroup.Builder
-
- Enclosing class:
- ConsumerGroup
public static class ConsumerGroup.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsumerGroupbuild()ConsumerGroup.Buildercopy(ConsumerGroup model)ConsumerGroup.BuilderdeadLetterQueueDeliveryCount(Integer deadLetterQueueDeliveryCount)The number of times a message can be delivered to a consumer before being moved to the dead letter queue.ConsumerGroup.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ConsumerGroup.BuilderdisplayName(String displayName)A user-friendly name for the consumer group.ConsumerGroup.Builderfilter(String filter)The filter used by the consumer group.ConsumerGroup.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ConsumerGroup.Builderid(String id)A unique identifier for the consumer group that is immutable on creation.ConsumerGroup.BuilderlifecycleDetails(String lifecycleDetails)Any additional details about the current state of the consumer group.ConsumerGroup.BuilderlifecycleState(ConsumerGroup.LifecycleState lifecycleState)The current state of the consumer group.ConsumerGroup.BuilderqueueId(String queueId)The OCID of the associated queue.ConsumerGroup.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.ConsumerGroup.BuildertimeCreated(Date timeCreated)The time that the consumer group was created, expressed in RFC 3339 timestamp format.ConsumerGroup.BuildertimeUpdated(Date timeUpdated)The time that the consumer group was updated, expressed in RFC 3339 timestamp format.
-
-
-
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
-
lifecycleState
public ConsumerGroup.Builder lifecycleState(ConsumerGroup.LifecycleState lifecycleState)
The current state of the consumer group.- Parameters:
lifecycleState- 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
-
build
public ConsumerGroup build()
-
copy
public ConsumerGroup.Builder copy(ConsumerGroup model)
-
-