Class SBQueueProperties
java.lang.Object
com.azure.resourcemanager.servicebus.fluent.models.SBQueueProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SBQueueProperties>
public final class SBQueueProperties
extends Object
implements com.azure.json.JsonSerializable<SBQueueProperties>
The Queue Properties definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessedAt property: Last time a message was sent, or the last time there was a receive request to this queue.Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically deleted.Get the countDetails property: Message Count Details.Get the createdAt property: The exact time the message was created.Get the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter support when a message expires.Get the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value.Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history.Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.Get the enableExpress property: A value that indicates whether Express Entities are enabled.Get the enablePartitioning property: A value that indicates whether the queue is to be partitioned across multiple message brokers.Get the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.Get the forwardTo property: Queue/Topic name to forward the messages.static SBQueuePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SBQueueProperties from the JsonReader.Get the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers.Get the maxDeliveryCount property: The maximum delivery count.Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the queue.Get the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue.Get the messageCount property: The number of messages in the queue.Get the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.Get the requiresSession property: A value that indicates whether the queue supports the concept of sessions.Get the sizeInBytes property: The size of the queue, in bytes.status()Get the status property: Enumerates the possible values for the status of a messaging entity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the updatedAt property: The exact time the message was updated.voidvalidate()Validates the instance.withAutoDeleteOnIdle(Duration autoDeleteOnIdle) Set the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically deleted.withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) Set the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter support when a message expires.withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) Set the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value.withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) Set the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history.withEnableBatchedOperations(Boolean enableBatchedOperations) Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.withEnableExpress(Boolean enableExpress) Set the enableExpress property: A value that indicates whether Express Entities are enabled.withEnablePartitioning(Boolean enablePartitioning) Set the enablePartitioning property: A value that indicates whether the queue is to be partitioned across multiple message brokers.withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo) Set the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.withForwardTo(String forwardTo) Set the forwardTo property: Queue/Topic name to forward the messages.withLockDuration(Duration lockDuration) Set the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers.withMaxDeliveryCount(Integer maxDeliveryCount) Set the maxDeliveryCount property: The maximum delivery count.withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes) Set the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the queue.withMaxSizeInMegabytes(Integer maxSizeInMegabytes) Set the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue.withRequiresDuplicateDetection(Boolean requiresDuplicateDetection) Set the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.withRequiresSession(Boolean requiresSession) Set the requiresSession property: A value that indicates whether the queue supports the concept of sessions.withStatus(EntityStatus status) Set the status property: Enumerates the possible values for the status of a messaging entity.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SBQueueProperties
public SBQueueProperties()Creates an instance of SBQueueProperties class.
-
-
Method Details
-
countDetails
Get the countDetails property: Message Count Details.- Returns:
- the countDetails value.
-
createdAt
Get the createdAt property: The exact time the message was created.- Returns:
- the createdAt value.
-
updatedAt
Get the updatedAt property: The exact time the message was updated.- Returns:
- the updatedAt value.
-
accessedAt
Get the accessedAt property: Last time a message was sent, or the last time there was a receive request to this queue.- Returns:
- the accessedAt value.
-
sizeInBytes
Get the sizeInBytes property: The size of the queue, in bytes.- Returns:
- the sizeInBytes value.
-
messageCount
Get the messageCount property: The number of messages in the queue.- Returns:
- the messageCount value.
-
lockDuration
Get the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.- Returns:
- the lockDuration value.
-
withLockDuration
Set the lockDuration property: ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.- Parameters:
lockDuration- the lockDuration value to set.- Returns:
- the SBQueueProperties object itself.
-
maxSizeInMegabytes
Get the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.- Returns:
- the maxSizeInMegabytes value.
-
withMaxSizeInMegabytes
Set the maxSizeInMegabytes property: The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.- Parameters:
maxSizeInMegabytes- the maxSizeInMegabytes value to set.- Returns:
- the SBQueueProperties object itself.
-
maxMessageSizeInKilobytes
Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.- Returns:
- the maxMessageSizeInKilobytes value.
-
withMaxMessageSizeInKilobytes
Set the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the queue. This property is only used in Premium today and default is 1024.- Parameters:
maxMessageSizeInKilobytes- the maxMessageSizeInKilobytes value to set.- Returns:
- the SBQueueProperties object itself.
-
requiresDuplicateDetection
Get the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.- Returns:
- the requiresDuplicateDetection value.
-
withRequiresDuplicateDetection
Set the requiresDuplicateDetection property: A value indicating if this queue requires duplicate detection.- Parameters:
requiresDuplicateDetection- the requiresDuplicateDetection value to set.- Returns:
- the SBQueueProperties object itself.
-
requiresSession
Get the requiresSession property: A value that indicates whether the queue supports the concept of sessions.- Returns:
- the requiresSession value.
-
withRequiresSession
Set the requiresSession property: A value that indicates whether the queue supports the concept of sessions.- Parameters:
requiresSession- the requiresSession value to set.- Returns:
- the SBQueueProperties object itself.
-
defaultMessageTimeToLive
Get the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.- Returns:
- the defaultMessageTimeToLive value.
-
withDefaultMessageTimeToLive
Set the defaultMessageTimeToLive property: ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.- Parameters:
defaultMessageTimeToLive- the defaultMessageTimeToLive value to set.- Returns:
- the SBQueueProperties object itself.
-
deadLetteringOnMessageExpiration
Get the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter support when a message expires.- Returns:
- the deadLetteringOnMessageExpiration value.
-
withDeadLetteringOnMessageExpiration
public SBQueueProperties withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) Set the deadLetteringOnMessageExpiration property: A value that indicates whether this queue has dead letter support when a message expires.- Parameters:
deadLetteringOnMessageExpiration- the deadLetteringOnMessageExpiration value to set.- Returns:
- the SBQueueProperties object itself.
-
duplicateDetectionHistoryTimeWindow
Get the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.- Returns:
- the duplicateDetectionHistoryTimeWindow value.
-
withDuplicateDetectionHistoryTimeWindow
public SBQueueProperties withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) Set the duplicateDetectionHistoryTimeWindow property: ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.- Parameters:
duplicateDetectionHistoryTimeWindow- the duplicateDetectionHistoryTimeWindow value to set.- Returns:
- the SBQueueProperties object itself.
-
maxDeliveryCount
Get the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.- Returns:
- the maxDeliveryCount value.
-
withMaxDeliveryCount
Set the maxDeliveryCount property: The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.- Parameters:
maxDeliveryCount- the maxDeliveryCount value to set.- Returns:
- the SBQueueProperties object itself.
-
status
Get the status property: Enumerates the possible values for the status of a messaging entity.- Returns:
- the status value.
-
withStatus
Set the status property: Enumerates the possible values for the status of a messaging entity.- Parameters:
status- the status value to set.- Returns:
- the SBQueueProperties object itself.
-
enableBatchedOperations
Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.- Returns:
- the enableBatchedOperations value.
-
withEnableBatchedOperations
Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.- Parameters:
enableBatchedOperations- the enableBatchedOperations value to set.- Returns:
- the SBQueueProperties object itself.
-
autoDeleteOnIdle
Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.- Returns:
- the autoDeleteOnIdle value.
-
withAutoDeleteOnIdle
Set the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.- Parameters:
autoDeleteOnIdle- the autoDeleteOnIdle value to set.- Returns:
- the SBQueueProperties object itself.
-
enablePartitioning
Get the enablePartitioning property: A value that indicates whether the queue is to be partitioned across multiple message brokers.- Returns:
- the enablePartitioning value.
-
withEnablePartitioning
Set the enablePartitioning property: A value that indicates whether the queue is to be partitioned across multiple message brokers.- Parameters:
enablePartitioning- the enablePartitioning value to set.- Returns:
- the SBQueueProperties object itself.
-
enableExpress
Get the enableExpress property: A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.- Returns:
- the enableExpress value.
-
withEnableExpress
Set the enableExpress property: A value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.- Parameters:
enableExpress- the enableExpress value to set.- Returns:
- the SBQueueProperties object itself.
-
forwardTo
Get the forwardTo property: Queue/Topic name to forward the messages.- Returns:
- the forwardTo value.
-
withForwardTo
Set the forwardTo property: Queue/Topic name to forward the messages.- Parameters:
forwardTo- the forwardTo value to set.- Returns:
- the SBQueueProperties object itself.
-
forwardDeadLetteredMessagesTo
Get the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.- Returns:
- the forwardDeadLetteredMessagesTo value.
-
withForwardDeadLetteredMessagesTo
Set the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.- Parameters:
forwardDeadLetteredMessagesTo- the forwardDeadLetteredMessagesTo value to set.- Returns:
- the SBQueueProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SBQueueProperties>- Throws:
IOException
-
fromJson
Reads an instance of SBQueueProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SBQueueProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the SBQueueProperties.
-