Class Queue.Builder
- java.lang.Object
- 
- com.oracle.bmc.queue.model.Queue.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Queuebuild()Queue.BuilderchannelConsumptionLimit(Integer channelConsumptionLimit)The percentage of allocated queue resources that can be consumed by a single channel.Queue.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the queue.Queue.Buildercopy(Queue model)Queue.BuildercustomEncryptionKeyId(String customEncryptionKeyId)The OCID of the custom encryption key to be used to encrypt messages content.Queue.BuilderdeadLetterQueueDeliveryCount(Integer deadLetterQueueDeliveryCount)The number of times a message can be delivered to a consumer before being moved to the dead letter queue.Queue.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Queue.BuilderdisplayName(String displayName)A user-friendly name for the queue.Queue.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Queue.Builderid(String id)A unique identifier for the queue that is immutable on creation.Queue.BuilderlifecycleDetails(String lifecycleDetails)Any additional details about the current state of the queue.Queue.BuilderlifecycleState(Queue.LifecycleState lifecycleState)The current state of the queue.Queue.BuildermessagesEndpoint(String messagesEndpoint)The endpoint to use to consume or publish messages in the queue.Queue.BuilderretentionInSeconds(Integer retentionInSeconds)The retention period of the messages in the queue, in seconds.Queue.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.Queue.BuildertimeCreated(Date timeCreated)The time that the queue was created, expressed in RFC 3339 timestamp format.Queue.BuildertimeoutInSeconds(Integer timeoutInSeconds)The default polling timeout of the messages in the queue, in seconds.Queue.BuildertimeUpdated(Date timeUpdated)The time that the queue was updated, expressed in RFC 3339 timestamp format.Queue.BuildervisibilityInSeconds(Integer visibilityInSeconds)The default visibility timeout of the messages consumed from the queue, in seconds.
 
- 
- 
- 
Method Detail- 
idpublic Queue.Builder id(String id) A unique identifier for the queue that is immutable on creation.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Queue.Builder displayName(String displayName) A user-friendly name for the queue.Does not have to be unique, and it’s changeable. Avoid entering confidential information. - Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic Queue.Builder compartmentId(String compartmentId) The OCID of the compartment containing the queue.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic Queue.Builder timeCreated(Date timeCreated) The time that the queue was created, expressed in RFC 3339 timestamp format.Example: 2018-04-20T00:00:07.405Z - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic Queue.Builder timeUpdated(Date timeUpdated) The time that the queue was updated, expressed in RFC 3339 timestamp format.Example: 2018-04-20T00:00:07.405Z - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic Queue.Builder lifecycleState(Queue.LifecycleState lifecycleState) The current state of the queue.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic Queue.Builder lifecycleDetails(String lifecycleDetails) Any additional details about the current state of the queue.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
messagesEndpointpublic Queue.Builder messagesEndpoint(String messagesEndpoint) The endpoint to use to consume or publish messages in the queue.- Parameters:
- messagesEndpoint- the value to set
- Returns:
- this builder
 
 - 
retentionInSecondspublic Queue.Builder retentionInSeconds(Integer retentionInSeconds) The retention period of the messages in the queue, in seconds.- Parameters:
- retentionInSeconds- the value to set
- Returns:
- this builder
 
 - 
visibilityInSecondspublic Queue.Builder visibilityInSeconds(Integer visibilityInSeconds) The default visibility timeout of the messages consumed from the queue, in seconds.- Parameters:
- visibilityInSeconds- the value to set
- Returns:
- this builder
 
 - 
timeoutInSecondspublic Queue.Builder timeoutInSeconds(Integer timeoutInSeconds) The default polling timeout of the messages in the queue, in seconds.- Parameters:
- timeoutInSeconds- the value to set
- Returns:
- this builder
 
 - 
deadLetterQueueDeliveryCountpublic Queue.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. - Parameters:
- deadLetterQueueDeliveryCount- the value to set
- Returns:
- this builder
 
 - 
customEncryptionKeyIdpublic Queue.Builder customEncryptionKeyId(String customEncryptionKeyId) The OCID of the custom encryption key to be used to encrypt messages content.- Parameters:
- customEncryptionKeyId- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic Queue.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
 
 - 
definedTagspublic Queue.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
 
 - 
systemTagspublic Queue.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
 
 - 
channelConsumptionLimitpublic Queue.Builder channelConsumptionLimit(Integer channelConsumptionLimit) The percentage of allocated queue resources that can be consumed by a single channel.For example, if a queue has a storage limit of 2Gb, and a single channel consumption limit is 0.1 (10%), that means data size of a single channel can’t exceed 200Mb. Consumption limit of 100% (default) means that a single channel can consume up-to all allocated queue’s resources. - Parameters:
- channelConsumptionLimit- the value to set
- Returns:
- this builder
 
 - 
buildpublic Queue build() 
 - 
copypublic Queue.Builder copy(Queue model) 
 
- 
 
-