Class SBTopicProperties
java.lang.Object
com.azure.resourcemanager.servicebus.fluent.models.SBTopicProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SBTopicProperties>
public final class SBTopicProperties
extends Object
implements com.azure.json.JsonSerializable<SBTopicProperties>
The Topic Properties definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessedAt property: Last time the message was sent, or a request was received, for this topic.Get the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically deleted.Get the countDetails property: Message count details.Get the createdAt property: Exact time the message was created.Get the defaultMessageTimeToLive property: ISO 8601 Default message timespan to live value.Get the duplicateDetectionHistoryTimeWindow property: ISO8601 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: Value that indicates whether Express Entities are enabled.Get the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.static SBTopicPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SBTopicProperties from the JsonReader.Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the topic.Get the maxSizeInMegabytes property: Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic.Get the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.Get the sizeInBytes property: Size of the topic, in bytes.status()Get the status property: Enumerates the possible values for the status of a messaging entity.Get the subscriptionCount property: Number of subscriptions.Get the supportOrdering property: Value that indicates whether the topic supports ordering.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 8601 timespan idle interval after which the topic is automatically deleted.withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) Set the defaultMessageTimeToLive property: ISO 8601 Default message timespan to live value.withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) Set the duplicateDetectionHistoryTimeWindow property: ISO8601 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: Value that indicates whether Express Entities are enabled.withEnablePartitioning(Boolean enablePartitioning) Set the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes) Set the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the topic.withMaxSizeInMegabytes(Integer maxSizeInMegabytes) Set the maxSizeInMegabytes property: Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic.withRequiresDuplicateDetection(Boolean requiresDuplicateDetection) Set the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.withStatus(EntityStatus status) Set the status property: Enumerates the possible values for the status of a messaging entity.withSupportOrdering(Boolean supportOrdering) Set the supportOrdering property: Value that indicates whether the topic supports ordering.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
-
SBTopicProperties
public SBTopicProperties()Creates an instance of SBTopicProperties class.
-
-
Method Details
-
sizeInBytes
Get the sizeInBytes property: Size of the topic, in bytes.- Returns:
- the sizeInBytes value.
-
createdAt
Get the createdAt property: 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 the message was sent, or a request was received, for this topic.- Returns:
- the accessedAt value.
-
subscriptionCount
Get the subscriptionCount property: Number of subscriptions.- Returns:
- the subscriptionCount value.
-
countDetails
Get the countDetails property: Message count details.- Returns:
- the countDetails value.
-
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 SBTopicProperties object itself.
-
maxSizeInMegabytes
Get the maxSizeInMegabytes property: Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024.- Returns:
- the maxSizeInMegabytes value.
-
withMaxSizeInMegabytes
Set the maxSizeInMegabytes property: Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024.- Parameters:
maxSizeInMegabytes- the maxSizeInMegabytes value to set.- Returns:
- the SBTopicProperties object itself.
-
maxMessageSizeInKilobytes
Get the maxMessageSizeInKilobytes property: Maximum size (in KB) of the message payload that can be accepted by the topic. 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 topic. This property is only used in Premium today and default is 1024.- Parameters:
maxMessageSizeInKilobytes- the maxMessageSizeInKilobytes value to set.- Returns:
- the SBTopicProperties object itself.
-
requiresDuplicateDetection
Get the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.- Returns:
- the requiresDuplicateDetection value.
-
withRequiresDuplicateDetection
Set the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.- Parameters:
requiresDuplicateDetection- the requiresDuplicateDetection value to set.- Returns:
- the SBTopicProperties object itself.
-
duplicateDetectionHistoryTimeWindow
Get the duplicateDetectionHistoryTimeWindow property: ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.- Returns:
- the duplicateDetectionHistoryTimeWindow value.
-
withDuplicateDetectionHistoryTimeWindow
public SBTopicProperties withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow) Set the duplicateDetectionHistoryTimeWindow property: ISO8601 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 SBTopicProperties 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 SBTopicProperties 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 SBTopicProperties object itself.
-
supportOrdering
Get the supportOrdering property: Value that indicates whether the topic supports ordering.- Returns:
- the supportOrdering value.
-
withSupportOrdering
Set the supportOrdering property: Value that indicates whether the topic supports ordering.- Parameters:
supportOrdering- the supportOrdering value to set.- Returns:
- the SBTopicProperties object itself.
-
autoDeleteOnIdle
Get the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.- Returns:
- the autoDeleteOnIdle value.
-
withAutoDeleteOnIdle
Set the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.- Parameters:
autoDeleteOnIdle- the autoDeleteOnIdle value to set.- Returns:
- the SBTopicProperties object itself.
-
enablePartitioning
Get the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.- Returns:
- the enablePartitioning value.
-
withEnablePartitioning
Set the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.- Parameters:
enablePartitioning- the enablePartitioning value to set.- Returns:
- the SBTopicProperties object itself.
-
enableExpress
Get the enableExpress property: Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage.- Returns:
- the enableExpress value.
-
withEnableExpress
Set the enableExpress property: Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage.- Parameters:
enableExpress- the enableExpress value to set.- Returns:
- the SBTopicProperties 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<SBTopicProperties>- Throws:
IOException
-
fromJson
Reads an instance of SBTopicProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SBTopicProperties 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 SBTopicProperties.
-