6#include "amqp_value.hpp"
8#include <azure/core/nullable.hpp>
13namespace Azure {
namespace Core {
namespace Amqp {
namespace Models {
65 Nullable<std::vector<uint8_t>>
UserId;
72 Nullable<AmqpValue>
To;
198 std::ostream& operator<<(std::ostream& stream,
MessageProperties const& properties);
Represents the immutable properties of an AMQP message.
Definition amqp_properties.hpp:24
MessageProperties & operator=(MessageProperties const &other)=default
Copy Assignment operator.
static MessageProperties Deserialize(uint8_t const *data, size_t size)
Deserialize a MessageProperties object from a vector of bytes.
Definition amqp_properties.cpp:298
MessageProperties(MessageProperties const &other)=default
Copy Constructor.
Nullable< std::vector< uint8_t > > UserId
User ID.
Definition amqp_properties.hpp:65
~MessageProperties()=default
Destructor.
Nullable< std::string > Subject
The subject of the message.
Definition amqp_properties.hpp:78
Nullable< AmqpValue > To
The to field identifies the node that is the intended destination of the message.
Definition amqp_properties.hpp:72
Nullable< std::string > ContentType
The content-type field describes the payload type.
Definition amqp_properties.hpp:106
MessageProperties(MessageProperties &&other)=default
Move Constructor.
bool ShouldSerialize() const noexcept
Should this MessageProperties object be serialized.
Definition amqp_properties.cpp:280
Nullable< std::chrono::system_clock::time_point > AbsoluteExpiryTime
The absolute expiry time of the message.
Definition amqp_properties.hpp:140
Nullable< std::string > ContentEncoding
MIME Content Encoding.
Definition amqp_properties.hpp:134
bool operator==(MessageProperties const &that) const noexcept
Compare two message properties objects.
Definition amqp_properties.cpp:264
Nullable< std::string > GroupId
The group this message belongs to.
Definition amqp_properties.hpp:149
Nullable< std::string > ReplyToGroupId
The group the reply message belongs to.
Definition amqp_properties.hpp:162
Nullable< AmqpValue > ReplyTo
The address of the node to send replies to.
Definition amqp_properties.hpp:87
Nullable< AmqpValue > CorrelationId
This is a client-specific id that can be used to mark or identify messages between clients.
Definition amqp_properties.hpp:83
Nullable< AmqpValue > MessageId
The message-id, if set, uniquely identifies a message within the message system. The message producer...
Definition amqp_properties.hpp:58
static std::vector< uint8_t > Serialize(MessageProperties const &properties)
Serialize a MessageProperties object into a vector of bytes.
Definition amqp_properties.cpp:289
Nullable< uint32_t > GroupSequence
The sequence-number of this message within its group .
Definition amqp_properties.hpp:155
MessageProperties()=default
Default constructor.
Nullable< std::chrono::system_clock::time_point > CreationTime
the time when this message was created.
Definition amqp_properties.hpp:143
MessageProperties & operator=(MessageProperties &&other)=default
Move Assignment operator.