aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Public Member Functions | List of all members
Aws::Iot::RequestResponse::IncomingPublishEvent Class Reference

#include <MqttRequestResponseClient.h>

Public Member Functions

 IncomingPublishEvent ()
 
IncomingPublishEventWithTopic (Aws::Crt::ByteCursor topic)
 
IncomingPublishEventWithPayload (Aws::Crt::ByteCursor payload)
 
IncomingPublishEventWithContentType (Aws::Crt::ByteCursor contentType)
 
IncomingPublishEventWithUserProperties (Aws::Crt::Vector< UserPropertyView > userProperties)
 
IncomingPublishEventWithMessageExpiryIntervalSeconds (uint32_t messageExpiryIntervalSeconds)
 
Aws::Crt::ByteCursor GetTopic () const
 
Aws::Crt::ByteCursor GetPayload () const
 
const Aws::Crt::Optional< Aws::Crt::ByteCursor > & GetContentType () const
 
const Aws::Crt::Optional< Aws::Crt::Vector< UserPropertyView > > & GetUserProperties () const
 
const Aws::Crt::Optional< uint32_t > & GetMessageExpiryIntervalSeconds () const
 

Detailed Description

An event that describes an incoming publish message received on a streaming operation.

Constructor & Destructor Documentation

Aws::Iot::RequestResponse::IncomingPublishEvent::IncomingPublishEvent ( )
inline

Default constructor

Member Function Documentation

const Aws::Crt::Optional<Aws::Crt::ByteCursor>& Aws::Iot::RequestResponse::IncomingPublishEvent::GetContentType ( ) const
inline

Gets the message content type associated with this event.

Returns
the message content type associated with this event
const Aws::Crt::Optional<uint32_t>& Aws::Iot::RequestResponse::IncomingPublishEvent::GetMessageExpiryIntervalSeconds ( ) const
inline
Aws::Crt::ByteCursor Aws::Iot::RequestResponse::IncomingPublishEvent::GetPayload ( ) const
inline

Gets the message payload associated with this event.

Returns
the message payload associated with this event
Aws::Crt::ByteCursor Aws::Iot::RequestResponse::IncomingPublishEvent::GetTopic ( ) const
inline

Gets the message response topic associated with this event.

Returns
the message response topic associated with this event
const Aws::Crt::Optional<Aws::Crt::Vector<UserPropertyView> >& Aws::Iot::RequestResponse::IncomingPublishEvent::GetUserProperties ( ) const
inline

Gets the message user properties associated with this event.

Returns
the message user properties associated with this event
IncomingPublishEvent& Aws::Iot::RequestResponse::IncomingPublishEvent::WithContentType ( Aws::Crt::ByteCursor  contentType)
inline

Sets the message content type associated with this event. The event does not own this content type.

Parameters
contentTypethe message content type associated with this event
Returns
reference to this
IncomingPublishEvent& Aws::Iot::RequestResponse::IncomingPublishEvent::WithMessageExpiryIntervalSeconds ( uint32_t  messageExpiryIntervalSeconds)
inline

Sets the message expiry interval seconds associated with this event.

Parameters
messageExpiryIntervalSecondsthe message expiry interval seconds associated with this event
Returns
reference to this
IncomingPublishEvent& Aws::Iot::RequestResponse::IncomingPublishEvent::WithPayload ( Aws::Crt::ByteCursor  payload)
inline

Sets the message payload associated with this event. The event does not own this payload.

Parameters
payloadthe message payload associated with this event
Returns
reference to this
IncomingPublishEvent& Aws::Iot::RequestResponse::IncomingPublishEvent::WithTopic ( Aws::Crt::ByteCursor  topic)
inline

Sets the message response topic associated with this event. The event does not own this topic.

Parameters
topicthe message response topic associated with this event
Returns
reference to this
IncomingPublishEvent& Aws::Iot::RequestResponse::IncomingPublishEvent::WithUserProperties ( Aws::Crt::Vector< UserPropertyView userProperties)
inline

Sets the message user properties associated with this event.

Parameters
userPropertiesthe message user properties associated with this event
Returns
reference to this

The documentation for this class was generated from the following file: