Class CorrelationFilter
java.lang.Object
com.azure.resourcemanager.servicebus.models.CorrelationFilter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CorrelationFilter>
public final class CorrelationFilter
extends Object
implements com.azure.json.JsonSerializable<CorrelationFilter>
Represents the correlation filter expression.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the contentType property: Content type of the message.Get the correlationId property: Identifier of the correlation.static CorrelationFilterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CorrelationFilter from the JsonReader.label()Get the label property: Application specific label.Get the messageId property: Identifier of the message.Get the properties property: dictionary object for custom filters.replyTo()Get the replyTo property: Address of the queue to reply to.Get the replyToSessionId property: Session identifier to reply to.Get the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.Get the sessionId property: Session identifier.to()Get the to property: Address to send to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withContentType(String contentType) Set the contentType property: Content type of the message.withCorrelationId(String correlationId) Set the correlationId property: Identifier of the correlation.Set the label property: Application specific label.withMessageId(String messageId) Set the messageId property: Identifier of the message.withProperties(Map<String, String> properties) Set the properties property: dictionary object for custom filters.withReplyTo(String replyTo) Set the replyTo property: Address of the queue to reply to.withReplyToSessionId(String replyToSessionId) Set the replyToSessionId property: Session identifier to reply to.withRequiresPreprocessing(Boolean requiresPreprocessing) Set the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.withSessionId(String sessionId) Set the sessionId property: Session identifier.Set the to property: Address to send to.Methods inherited from class 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
-
CorrelationFilter
public CorrelationFilter()Creates an instance of CorrelationFilter class.
-
-
Method Details
-
properties
-
withProperties
Set the properties property: dictionary object for custom filters.- Parameters:
properties- the properties value to set.- Returns:
- the CorrelationFilter object itself.
-
correlationId
Get the correlationId property: Identifier of the correlation.- Returns:
- the correlationId value.
-
withCorrelationId
Set the correlationId property: Identifier of the correlation.- Parameters:
correlationId- the correlationId value to set.- Returns:
- the CorrelationFilter object itself.
-
messageId
Get the messageId property: Identifier of the message.- Returns:
- the messageId value.
-
withMessageId
Set the messageId property: Identifier of the message.- Parameters:
messageId- the messageId value to set.- Returns:
- the CorrelationFilter object itself.
-
to
-
withTo
Set the to property: Address to send to.- Parameters:
to- the to value to set.- Returns:
- the CorrelationFilter object itself.
-
replyTo
Get the replyTo property: Address of the queue to reply to.- Returns:
- the replyTo value.
-
withReplyTo
Set the replyTo property: Address of the queue to reply to.- Parameters:
replyTo- the replyTo value to set.- Returns:
- the CorrelationFilter object itself.
-
label
-
withLabel
Set the label property: Application specific label.- Parameters:
label- the label value to set.- Returns:
- the CorrelationFilter object itself.
-
sessionId
Get the sessionId property: Session identifier.- Returns:
- the sessionId value.
-
withSessionId
Set the sessionId property: Session identifier.- Parameters:
sessionId- the sessionId value to set.- Returns:
- the CorrelationFilter object itself.
-
replyToSessionId
Get the replyToSessionId property: Session identifier to reply to.- Returns:
- the replyToSessionId value.
-
withReplyToSessionId
Set the replyToSessionId property: Session identifier to reply to.- Parameters:
replyToSessionId- the replyToSessionId value to set.- Returns:
- the CorrelationFilter object itself.
-
contentType
Get the contentType property: Content type of the message.- Returns:
- the contentType value.
-
withContentType
Set the contentType property: Content type of the message.- Parameters:
contentType- the contentType value to set.- Returns:
- the CorrelationFilter object itself.
-
requiresPreprocessing
Get the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.- Returns:
- the requiresPreprocessing value.
-
withRequiresPreprocessing
Set the requiresPreprocessing property: Value that indicates whether the rule action requires preprocessing.- Parameters:
requiresPreprocessing- the requiresPreprocessing value to set.- Returns:
- the CorrelationFilter 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<CorrelationFilter>- Throws:
IOException
-
fromJson
Reads an instance of CorrelationFilter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CorrelationFilter 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 CorrelationFilter.
-