Class SBSubscriptionInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.servicebus.fluent.models.SBSubscriptionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class SBSubscriptionInner
extends com.azure.core.management.Resource
Description of subscription resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accessedAt property: Last time there was a receive request to this subscription.Get the autoDeleteOnIdle property: ISO 8061 timeSpan idle interval after which the topic is automatically deleted.Get the clientAffineProperties property: Properties specific to client affine subscriptions.Get the countDetails property: Message count details.Get the createdAt property: Exact time the message was created.Get the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.Get the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter support when a message expires.Get the defaultMessageTimeToLive property: ISO 8061 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 forwardDeadLetteredMessagesTo property: Queue/Topic name to forward the Dead Letter message.Get the forwardTo property: Queue/Topic name to forward the messages.static SBSubscriptionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SBSubscriptionInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.location()Get the location property: The geo-location where the resource lives.Get the lockDuration property: ISO 8061 lock duration timespan for the subscription.Get the maxDeliveryCount property: Number of maximum deliveries.Get the messageCount property: Number of messages.name()Get the name property: The name of the resource.Get the requiresSession property: Value indicating if a subscription supports the concept of sessions.status()Get the status property: Enumerates the possible values for the status of a messaging entity.com.azure.core.management.SystemDataGet the systemData property: The system meta data relating to this resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.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 topic is automatically deleted.withClientAffineProperties(SBClientAffineProperties clientAffineProperties) Set the clientAffineProperties property: Properties specific to client affine subscriptions.withDeadLetteringOnFilterEvaluationExceptions(Boolean deadLetteringOnFilterEvaluationExceptions) Set the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.withDeadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageExpiration) Set the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter support when a message expires.withDefaultMessageTimeToLive(Duration defaultMessageTimeToLive) Set the defaultMessageTimeToLive property: ISO 8061 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.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.withIsClientAffine(Boolean isClientAffine) Set the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.withLockDuration(Duration lockDuration) Set the lockDuration property: ISO 8061 lock duration timespan for the subscription.withMaxDeliveryCount(Integer maxDeliveryCount) Set the maxDeliveryCount property: Number of maximum deliveries.withRequiresSession(Boolean requiresSession) Set the requiresSession property: Value indicating if a subscription 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 com.azure.core.management.Resource
tags, withLocation, withTagsMethods 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
-
SBSubscriptionInner
public SBSubscriptionInner()Creates an instance of SBSubscriptionInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: The system meta data relating to this resource.- Returns:
- the systemData value.
-
location
Get the location property: The geo-location where the resource lives.- Overrides:
locationin classcom.azure.core.management.Resource- Returns:
- the location value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
messageCount
Get the messageCount property: Number of messages.- Returns:
- the messageCount value.
-
createdAt
Get the createdAt property: Exact time the message was created.- Returns:
- the createdAt value.
-
accessedAt
Get the accessedAt property: Last time there was a receive request to this subscription.- Returns:
- the accessedAt value.
-
updatedAt
Get the updatedAt property: The exact time the message was updated.- Returns:
- the updatedAt value.
-
countDetails
Get the countDetails property: Message count details.- Returns:
- the countDetails value.
-
lockDuration
Get the lockDuration property: ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.- Returns:
- the lockDuration value.
-
withLockDuration
Set the lockDuration property: ISO 8061 lock duration timespan for the subscription. The default value is 1 minute.- Parameters:
lockDuration- the lockDuration value to set.- Returns:
- the SBSubscriptionInner object itself.
-
requiresSession
Get the requiresSession property: Value indicating if a subscription supports the concept of sessions.- Returns:
- the requiresSession value.
-
withRequiresSession
Set the requiresSession property: Value indicating if a subscription supports the concept of sessions.- Parameters:
requiresSession- the requiresSession value to set.- Returns:
- the SBSubscriptionInner object itself.
-
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:
- the defaultMessageTimeToLive value.
-
withDefaultMessageTimeToLive
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:
defaultMessageTimeToLive- the defaultMessageTimeToLive value to set.- Returns:
- the SBSubscriptionInner object itself.
-
deadLetteringOnFilterEvaluationExceptions
Get the deadLetteringOnFilterEvaluationExceptions property: Value that indicates whether a subscription has dead letter support on filter evaluation exceptions.- Returns:
- the deadLetteringOnFilterEvaluationExceptions value.
-
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:
deadLetteringOnFilterEvaluationExceptions- the deadLetteringOnFilterEvaluationExceptions value to set.- Returns:
- the SBSubscriptionInner object itself.
-
deadLetteringOnMessageExpiration
Get the deadLetteringOnMessageExpiration property: Value that indicates whether a subscription has dead letter support when a message expires.- Returns:
- the deadLetteringOnMessageExpiration value.
-
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:
deadLetteringOnMessageExpiration- the deadLetteringOnMessageExpiration value to set.- Returns:
- the SBSubscriptionInner 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 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:
duplicateDetectionHistoryTimeWindow- the duplicateDetectionHistoryTimeWindow value to set.- Returns:
- the SBSubscriptionInner object itself.
-
maxDeliveryCount
Get the maxDeliveryCount property: Number of maximum deliveries.- Returns:
- the maxDeliveryCount value.
-
withMaxDeliveryCount
Set the maxDeliveryCount property: Number of maximum deliveries.- Parameters:
maxDeliveryCount- the maxDeliveryCount value to set.- Returns:
- the SBSubscriptionInner 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 SBSubscriptionInner 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 SBSubscriptionInner object itself.
-
autoDeleteOnIdle
Get the autoDeleteOnIdle property: ISO 8061 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 8061 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 SBSubscriptionInner 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 SBSubscriptionInner 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 SBSubscriptionInner object itself.
-
isClientAffine
Get the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.- Returns:
- the isClientAffine value.
-
withIsClientAffine
Set the isClientAffine property: Value that indicates whether the subscription has an affinity to the client id.- Parameters:
isClientAffine- the isClientAffine value to set.- Returns:
- the SBSubscriptionInner object itself.
-
clientAffineProperties
Get the clientAffineProperties property: Properties specific to client affine subscriptions.- Returns:
- the clientAffineProperties value.
-
withClientAffineProperties
public SBSubscriptionInner withClientAffineProperties(SBClientAffineProperties clientAffineProperties) Set the clientAffineProperties property: Properties specific to client affine subscriptions.- Parameters:
clientAffineProperties- the clientAffineProperties value to set.- Returns:
- the SBSubscriptionInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of SBSubscriptionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SBSubscriptionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SBSubscriptionInner.
-