SBSubscriptionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. servicebus. fluent. models. SBSubscriptionInner
- com.
- com.
- com.
public final class SBSubscriptionInner
extends Resource
Description of subscription resource.
Constructor Summary
Constructor | Description |
---|---|
SBSubscriptionInner() |
Creates an instance of SBSubscription |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
accessedAt()
Get the accessed |
Duration |
autoDeleteOnIdle()
Get the auto |
SBClient |
clientAffineProperties()
Get the client |
Message |
countDetails()
Get the count |
Offset |
createdAt()
Get the created |
Boolean |
deadLetteringOnFilterEvaluationExceptions()
Get the dead |
Boolean |
deadLetteringOnMessageExpiration()
Get the dead |
Duration |
defaultMessageTimeToLive()
Get the default |
Duration |
duplicateDetectionHistoryTimeWindow()
Get the duplicate |
Boolean |
enableBatchedOperations()
Get the enable |
String |
forwardDeadLetteredMessagesTo()
Get the forward |
String |
forwardTo()
Get the forward |
static
SBSubscription |
fromJson(JsonReader jsonReader)
Reads an instance of SBSubscription |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Boolean |
isClientAffine()
Get the is |
String |
location()
Get the location property: The geo-location where the resource lives. |
Duration |
lockDuration()
Get the lock |
Integer |
maxDeliveryCount()
Get the max |
Long |
messageCount()
Get the message |
String |
name()
Get the name property: The name of the resource. |
Boolean |
requiresSession()
Get the requires |
Entity |
status()
Get the status property: Enumerates the possible values for the status of a messaging entity. |
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. |
SBSubscription |
withAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the auto |
SBSubscription |
withClientAffineProperties(SBClientAffineProperties clientAffineProperties)
Set the client |
SBSubscription |
withDeadLetteringOnFilterEvaluationExceptions(Boolean deadLetteringOnFilterEvaluationExceptions)
Set the dead |
SBSubscription |
withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration)
Set the dead |
SBSubscription |
withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
Set the default |
SBSubscription |
withDuplicateDetectionHistoryTimeWindow(Duration duplicateDetectionHistoryTimeWindow)
Set the duplicate |
SBSubscription |
withEnableBatchedOperations(Boolean enableBatchedOperations)
Set the enable |
SBSubscription |
withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Set the forward |
SBSubscription |
withForwardTo(String forwardTo)
Set the forward |
SBSubscription |
withIsClientAffine(Boolean isClientAffine)
Set the is |
SBSubscription |
withLockDuration(Duration lockDuration)
Set the lock |
SBSubscription |
withMaxDeliveryCount(Integer maxDeliveryCount)
Set the max |
SBSubscription |
withRequiresSession(Boolean requiresSession)
Set the requires |
SBSubscription |
withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of a messaging entity. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
SBSubscriptionInner
public SBSubscriptionInner()
Creates an instance of SBSubscriptionInner class.
Method Details
accessedAt
public OffsetDateTime accessedAt()
Get the accessedAt property: Last time there was a receive request to this subscription.
Returns:
autoDeleteOnIdle
public Duration autoDeleteOnIdle()
Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
Returns:
clientAffineProperties
public SBClientAffineProperties clientAffineProperties()
Get the clientAffineProperties property: Properties specific to client affine subscriptions.
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:
deadLetteringOnFilterEvaluationExceptions
public Boolean deadLetteringOnFilterEvaluationExceptions()
Get the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.
Returns:
deadLetteringOnMessageExpiration
public Boolean deadLetteringOnMessageExpiration()
Get the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter support when a message expires.
Returns:
defaultMessageTimeToLive
public Duration defaultMessageTimeToLive()
Get the defaultMessageTimeToLive property: ISO 8061 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: ISO 8601 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:
forwardDeadLetteredMessagesTo
public String forwardDeadLetteredMessagesTo()
Get the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
Returns:
forwardTo
public String forwardTo()
Get the forwardTo property: Queue/Topic name to forward the messages.
Returns:
fromJson
public static SBSubscriptionInner fromJson(JsonReader jsonReader)
Reads an instance of SBSubscriptionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SBSubscriptionInner.id()Returns:
isClientAffine
public Boolean isClientAffine()
Get the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.
Returns:
location
public String location()
Get the location property: The geo-location where the resource lives.
Overrides:
SBSubscriptionInner.location()Returns:
lockDuration
public Duration lockDuration()
Get the lockDuration property: ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.
Returns:
maxDeliveryCount
public Integer maxDeliveryCount()
Get the maxDeliveryCount property: Number of maximum deliveries.
Returns:
messageCount
public Long messageCount()
Get the messageCount property: Number of messages.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SBSubscriptionInner.name()Returns:
requiresSession
public Boolean requiresSession()
Get the requiresSession property: Value indicating if a subscription supports the concept of sessions.
Returns:
status
public EntityStatus status()
Get the status property: Enumerates the possible values for the status of a messaging entity.
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:
SBSubscriptionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SBSubscriptionInner.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 SBSubscriptionInner withAutoDeleteOnIdle(Duration autoDeleteOnIdle)
Set the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.
Parameters:
Returns:
withClientAffineProperties
public SBSubscriptionInner withClientAffineProperties(SBClientAffineProperties clientAffineProperties)
Set the clientAffineProperties property: Properties specific to client affine subscriptions.
Parameters:
Returns:
withDeadLetteringOnFilterEvaluationExceptions
public SBSubscriptionInner withDeadLetteringOnFilterEvaluationExceptions(Boolean deadLetteringOnFilterEvaluationExceptions)
Set the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.
Parameters:
Returns:
withDeadLetteringOnMessageExpiration
public SBSubscriptionInner withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration)
Set the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter support when a message expires.
Parameters:
Returns:
withDefaultMessageTimeToLive
public SBSubscriptionInner withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive)
Set the defaultMessageTimeToLive property: ISO 8061 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 SBSubscriptionInner 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:
Returns:
withEnableBatchedOperations
public SBSubscriptionInner withEnableBatchedOperations(Boolean enableBatchedOperations)
Set the enableBatchedOperations property: Value that indicates whether server-side batched operations are enabled.
Parameters:
Returns:
withForwardDeadLetteredMessagesTo
public SBSubscriptionInner withForwardDeadLetteredMessagesTo(String forwardDeadLetteredMessagesTo)
Set the forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.
Parameters:
Returns:
withForwardTo
public SBSubscriptionInner withForwardTo(String forwardTo)
Set the forwardTo property: Queue/Topic name to forward the messages.
Parameters:
Returns:
withIsClientAffine
public SBSubscriptionInner withIsClientAffine(Boolean isClientAffine)
Set the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.
Parameters:
Returns:
withLockDuration
public SBSubscriptionInner withLockDuration(Duration lockDuration)
Set the lockDuration property: ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.
Parameters:
Returns:
withMaxDeliveryCount
public SBSubscriptionInner withMaxDeliveryCount(Integer maxDeliveryCount)
Set the maxDeliveryCount property: Number of maximum deliveries.
Parameters:
Returns:
withRequiresSession
public SBSubscriptionInner withRequiresSession(Boolean requiresSession)
Set the requiresSession property: Value indicating if a subscription supports the concept of sessions.
Parameters:
Returns:
withStatus
public SBSubscriptionInner withStatus(EntityStatus status)
Set the status property: Enumerates the possible values for the status of a messaging entity.
Parameters:
Returns:
Applies to
Azure SDK for Java