Package com.azure.core.amqp.models
Class AmqpMessageProperties
- java.lang.Object
-
- com.azure.core.amqp.models.AmqpMessageProperties
-
public class AmqpMessageProperties extends Object
The representation of message properties as defined by AMQP protocol.- See Also:
- Amqp Message Format.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimegetAbsoluteExpiryTime()GetsabsoluteExpiryTimefrom amqp message properties.StringgetContentEncoding()Gets AbsoluteExpiryTime from amqp message properties.StringgetContentType()GetscontentTypefrom amqp message properties.AmqpMessageIdgetCorrelationId()GetscorrelationIdfrom amqp message properties.OffsetDateTimegetCreationTime()GetscreationTimefrom amqp message properties.StringgetGroupId()GetsgroupIdfrom amqp message properties.LonggetGroupSequence()GetsgroupSequencefrom amqp message properties.AmqpMessageIdgetMessageId()GetsmessageIdfrom amqp message properties.AmqpAddressgetReplyTo()GetsreplyTofrom amqp message properties.StringgetReplyToGroupId()GetsreplyToGroupIdfrom amqp message properties.StringgetSubject()Getssubjectfrom amqp message properties.AmqpAddressgetTo()Getstofrom amqp message properties.byte[]getUserId()GetsuserIdfrom amqp message properties.AmqpMessagePropertiessetAbsoluteExpiryTime(OffsetDateTime absoluteExpiryTime)Sets the givenabsoluteExpiryTimevalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetContentEncoding(String contentEncoding)Sets the givencontentEncodingvalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetContentType(String contentType)Sets the givencontentTypevalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetCorrelationId(AmqpMessageId correlationId)Sets the givencorrelationIdvalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetCreationTime(OffsetDateTime creationTime)Sets the givencreationTimevalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetGroupId(String groupId)Sets the givengroupIdvalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetGroupSequence(Long groupSequence)Sets the givengroupSequencevalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetMessageId(AmqpMessageId messageId)Sets the givenmessageIdvalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetReplyTo(AmqpAddress replyTo)Sets the givenreplyTovalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetReplyToGroupId(String replyToGroupId)Sets the givenreplyToGroupIdvalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetSubject(String subject)Sets the givensubjectvalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetTo(AmqpAddress to)Sets the giventovalue onAmqpMessagePropertiesobject.AmqpMessagePropertiessetUserId(byte[] userId)Sets the givenuserIdvalue onAmqpMessagePropertiesobject.
-
-
-
Method Detail
-
getAbsoluteExpiryTime
public OffsetDateTime getAbsoluteExpiryTime()
GetsabsoluteExpiryTimefrom amqp message properties.- Returns:
- the
absoluteExpiryTimevalue.
-
setAbsoluteExpiryTime
public AmqpMessageProperties setAbsoluteExpiryTime(OffsetDateTime absoluteExpiryTime)
Sets the givenabsoluteExpiryTimevalue onAmqpMessagePropertiesobject.- Parameters:
absoluteExpiryTime- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getContentEncoding
public String getContentEncoding()
Gets AbsoluteExpiryTime from amqp message properties.- Returns:
- the
absoluteExpiryTimevalue.
-
setContentEncoding
public AmqpMessageProperties setContentEncoding(String contentEncoding)
Sets the givencontentEncodingvalue onAmqpMessagePropertiesobject.- Parameters:
contentEncoding- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getContentType
public String getContentType()
GetscontentTypefrom amqp message properties.- Returns:
- the
contentTypevalue.
-
setContentType
public AmqpMessageProperties setContentType(String contentType)
Sets the givencontentTypevalue onAmqpMessagePropertiesobject.- Parameters:
contentType- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getCorrelationId
public AmqpMessageId getCorrelationId()
GetscorrelationIdfrom amqp message properties.- Returns:
- the
correlationIdvalue.
-
setCorrelationId
public AmqpMessageProperties setCorrelationId(AmqpMessageId correlationId)
Sets the givencorrelationIdvalue onAmqpMessagePropertiesobject.- Parameters:
correlationId- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getCreationTime
public OffsetDateTime getCreationTime()
GetscreationTimefrom amqp message properties.- Returns:
- the
creationTimevalue.
-
setCreationTime
public AmqpMessageProperties setCreationTime(OffsetDateTime creationTime)
Sets the givencreationTimevalue onAmqpMessagePropertiesobject.- Parameters:
creationTime- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getGroupId
public String getGroupId()
GetsgroupIdfrom amqp message properties.- Returns:
- the
groupIdvalue.
-
setGroupId
public AmqpMessageProperties setGroupId(String groupId)
Sets the givengroupIdvalue onAmqpMessagePropertiesobject.- Parameters:
groupId- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getGroupSequence
public Long getGroupSequence()
GetsgroupSequencefrom amqp message properties.- Returns:
- the
groupSequencevalue.
-
setGroupSequence
public AmqpMessageProperties setGroupSequence(Long groupSequence)
Sets the givengroupSequencevalue onAmqpMessagePropertiesobject.- Parameters:
groupSequence- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getMessageId
public AmqpMessageId getMessageId()
GetsmessageIdfrom amqp message properties.- Returns:
- the
messageIdvalue.
-
setMessageId
public AmqpMessageProperties setMessageId(AmqpMessageId messageId)
Sets the givenmessageIdvalue onAmqpMessagePropertiesobject.- Parameters:
messageId- to be set .- Returns:
- updated
AmqpMessagePropertiesobject.
-
getReplyTo
public AmqpAddress getReplyTo()
GetsreplyTofrom amqp message properties.- Returns:
- The
replyTovalue.
-
setReplyTo
public AmqpMessageProperties setReplyTo(AmqpAddress replyTo)
Sets the givenreplyTovalue onAmqpMessagePropertiesobject.- Parameters:
replyTo- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getReplyToGroupId
public String getReplyToGroupId()
GetsreplyToGroupIdfrom amqp message properties.- Returns:
- The
replyToGroupIdvalue.
-
setReplyToGroupId
public AmqpMessageProperties setReplyToGroupId(String replyToGroupId)
Sets the givenreplyToGroupIdvalue onAmqpMessagePropertiesobject.- Parameters:
replyToGroupId- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getSubject
public String getSubject()
Getssubjectfrom amqp message properties.- Returns:
- the
subjectvalue.
-
setSubject
public AmqpMessageProperties setSubject(String subject)
Sets the givensubjectvalue onAmqpMessagePropertiesobject.- Parameters:
subject- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getTo
public AmqpAddress getTo()
Getstofrom amqp message properties.- Returns:
- the
tovalue.
-
setTo
public AmqpMessageProperties setTo(AmqpAddress to)
Sets the giventovalue onAmqpMessagePropertiesobject.- Parameters:
to- to be set.- Returns:
- updated
AmqpMessagePropertiesobject.
-
getUserId
public byte[] getUserId()
GetsuserIdfrom amqp message properties.- Returns:
- the
userIdvalue.
-
setUserId
public AmqpMessageProperties setUserId(byte[] userId)
Sets the givenuserIdvalue onAmqpMessagePropertiesobject.- Parameters:
userId- to be set .- Returns:
- updated
AmqpMessagePropertiesobject.
-
-