SBTopicInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. servicebus. fluent. models. SBTopicInner
- com.
- com.
- com.
public final class SBTopicInner
extends Resource
Description of topic resource.
Constructor Summary
Constructor | Description |
---|---|
SBTopicInner() |
Creates an instance of SBTopic |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
accessedAt()
Get the accessed |
Duration |
autoDeleteOnIdle()
Get the auto |
Message |
countDetails()
Get the count |
Offset |
createdAt()
Get the created |
Duration |
defaultMessageTimeToLive()
Get the default |
Duration |
duplicateDetectionHistoryTimeWindow()
Get the duplicate |
Boolean |
enableBatchedOperations()
Get the enable |
Boolean |
enableExpress()
Get the enable |
Boolean |
enablePartitioning()
Get the enable |
static
SBTopic |
fromJson(JsonReader jsonReader)
Reads an instance of SBTopic |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
location()
Get the location property: The geo-location where the resource lives. |
Long |
maxMessageSizeInKilobytes()
Get the max |
Integer |
maxSizeInMegabytes()
Get the max |
String |
name()
Get the name property: The name of the resource. |
Boolean |
requiresDuplicateDetection()
Get the requires |
Long |
sizeInBytes()
Get the size |
Entity |
status()
Get the status property: Enumerates the possible values for the status of a messaging entity. |
Integer |
subscriptionCount()
Get the subscription |
Boolean |
supportOrdering()
Get the support |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
Offset |
updatedAt()
Get the updated |
void |
validate()
Validates the instance. |
SBTopic |
withAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the auto |
SBTopic |
withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
Set the default |
SBTopic |
withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow)
Set the duplicate |
SBTopic |
withEnableBatchedOperations(Boolean enableBatchedOperations)
Set the enable |
SBTopic |
withEnableExpress(Boolean enableExpress)
Set the enable |
SBTopic |
withEnablePartitioning(Boolean enablePartitioning)
Set the enable |
SBTopic |
withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes)
Set the max |
SBTopic |
withMaxSizeInMegabytes(Integer maxSizeInMegabytes)
Set the max |
SBTopic |
withRequiresDuplicateDetection(Boolean requiresDuplicateDetection)
Set the requires |
SBTopic |
withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of a messaging entity. |
SBTopic |
withSupportOrdering(Boolean supportOrdering)
Set the support |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
SBTopicInner
public SBTopicInner()
Creates an instance of SBTopicInner class.
Method Details
accessedAt
public OffsetDateTime accessedAt()
Get the accessedAt property: Last time the message was sent, or a request was received, for this topic.
Returns:
autoDeleteOnIdle
public Duration autoDeleteOnIdle()
Get the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
Returns:
countDetails
public MessageCountDetails countDetails()
Get the countDetails property: Message count details.
Returns:
createdAt
public OffsetDateTime createdAt()
Get the createdAt property: Exact time the message was created.
Returns:
defaultMessageTimeToLive
public Duration 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:
duplicateDetectionHistoryTimeWindow
public Duration duplicateDetectionHistoryTimeWindow()
Get the duplicateDetectionHistoryTimeWindow property: ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.
Returns:
enableBatchedOperations
public Boolean enableBatchedOperations()
Get the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Returns:
enableExpress
public Boolean 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:
enablePartitioning
public Boolean enablePartitioning()
Get the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.
Returns:
fromJson
public static SBTopicInner fromJson(JsonReader jsonReader)
Reads an instance of SBTopicInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SBTopicInner.id()Returns:
location
public String location()
Get the location property: The geo-location where the resource lives.
Overrides:
SBTopicInner.location()Returns:
maxMessageSizeInKilobytes
public Long 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:
maxSizeInMegabytes
public Integer 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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SBTopicInner.name()Returns:
requiresDuplicateDetection
public Boolean requiresDuplicateDetection()
Get the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.
Returns:
sizeInBytes
public Long sizeInBytes()
Get the sizeInBytes property: Size of the topic, in bytes.
Returns:
status
public EntityStatus status()
Get the status property: Enumerates the possible values for the status of a messaging entity.
Returns:
subscriptionCount
public Integer subscriptionCount()
Get the subscriptionCount property: Number of subscriptions.
Returns:
supportOrdering
public Boolean supportOrdering()
Get the supportOrdering property: Value that indicates whether the topic supports ordering.
Returns:
systemData
public SystemData systemData()
Get the systemData property: The system meta data relating to this resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SBTopicInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SBTopicInner.type()Returns:
updatedAt
public OffsetDateTime updatedAt()
Get the updatedAt property: The exact time the message was updated.
Returns:
validate
public void validate()
Validates the instance.
withAutoDeleteOnIdle
public SBTopicInner withAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the autoDeleteOnIdle property: ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
Parameters:
Returns:
withDefaultMessageTimeToLive
public SBTopicInner withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
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:
Returns:
withDuplicateDetectionHistoryTimeWindow
public SBTopicInner 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:
Returns:
withEnableBatchedOperations
public SBTopicInner withEnableBatchedOperations(Boolean enableBatchedOperations)
Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Parameters:
Returns:
withEnableExpress
public SBTopicInner withEnableExpress(Boolean enableExpress)
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:
Returns:
withEnablePartitioning
public SBTopicInner withEnablePartitioning(Boolean enablePartitioning)
Set the enablePartitioning property: Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.
Parameters:
Returns:
withMaxMessageSizeInKilobytes
public SBTopicInner withMaxMessageSizeInKilobytes(Long maxMessageSizeInKilobytes)
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:
Returns:
withMaxSizeInMegabytes
public SBTopicInner 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. Default is 1024.
Parameters:
Returns:
withRequiresDuplicateDetection
public SBTopicInner withRequiresDuplicateDetection(Boolean requiresDuplicateDetection)
Set the requiresDuplicateDetection property: Value indicating if this topic requires duplicate detection.
Parameters:
Returns:
withStatus
public SBTopicInner withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of a messaging entity.
Parameters:
Returns:
withSupportOrdering
public SBTopicInner withSupportOrdering(Boolean supportOrdering)
Set the supportOrdering property: Value that indicates whether the topic supports ordering.
Parameters:
Returns:
Applies to
Azure SDK for Java