AWS IoT Device SDK C++ v2 1.44.1
AWS IoT Device SDK C++ v2
Loading...
Searching...
No Matches
Aws::Greengrass::MessageContext Class Reference

#include <GreengrassCoreIpcModel.h>

Inheritance diagram for Aws::Greengrass::MessageContext:
Aws::Eventstreamrpc::AbstractShapeBase

Public Member Functions

 MessageContext () noexcept
 MessageContext (const MessageContext &)=default
void SetTopic (const Aws::Crt::String &topic) noexcept
Aws::Crt::Optional< Aws::Crt::StringGetTopic () const noexcept
void SerializeToJsonObject (Aws::Crt::JsonObject &payloadObject) const noexcept override
bool operator< (const MessageContext &) const noexcept
Public Member Functions inherited from Aws::Eventstreamrpc::AbstractShapeBase
 AbstractShapeBase () noexcept
virtual ~AbstractShapeBase () noexcept=default

Static Public Member Functions

static void s_loadFromJsonView (MessageContext &, const Aws::Crt::JsonView &) noexcept
static Aws::Crt::ScopedResource< AbstractShapeBases_allocateFromPayload (Aws::Crt::StringView, Aws::Crt::Allocator *) noexcept
static void s_customDeleter (MessageContext *) noexcept
Static Public Member Functions inherited from Aws::Eventstreamrpc::AbstractShapeBase
static void s_customDeleter (AbstractShapeBase *shape) noexcept

Static Public Attributes

static const char * MODEL_NAME = "aws.greengrass#MessageContext"

Protected Member Functions

Aws::Crt::String GetModelName () const noexcept override

Additional Inherited Members

Protected Attributes inherited from Aws::Eventstreamrpc::AbstractShapeBase
Crt::Allocatorm_allocator

Detailed Description

Contextual information about the message. NOTE The context is ignored if used in PublishMessage.

Constructor & Destructor Documentation

◆ MessageContext() [1/2]

Aws::Greengrass::MessageContext::MessageContext ( )
inlinenoexcept

◆ MessageContext() [2/2]

Aws::Greengrass::MessageContext::MessageContext ( const MessageContext & )
default

Member Function Documentation

◆ GetModelName()

Aws::Crt::String Aws::Greengrass::MessageContext::GetModelName ( ) const
overrideprotectedvirtualnoexcept

◆ GetTopic()

Aws::Crt::Optional< Aws::Crt::String > Aws::Greengrass::MessageContext::GetTopic ( ) const
inlinenoexcept

The topic where the message was published.

◆ operator<()

bool Aws::Greengrass::MessageContext::operator< ( const MessageContext & ) const
noexcept

◆ s_allocateFromPayload()

Aws::Crt::ScopedResource< AbstractShapeBase > Aws::Greengrass::MessageContext::s_allocateFromPayload ( Aws::Crt::StringView stringView,
Aws::Crt::Allocator * allocator )
staticnoexcept

◆ s_customDeleter()

void Aws::Greengrass::MessageContext::s_customDeleter ( MessageContext * shape)
staticnoexcept

◆ s_loadFromJsonView()

void Aws::Greengrass::MessageContext::s_loadFromJsonView ( MessageContext & messageContext,
const Aws::Crt::JsonView & jsonView )
staticnoexcept

◆ SerializeToJsonObject()

void Aws::Greengrass::MessageContext::SerializeToJsonObject ( Aws::Crt::JsonObject & payloadObject) const
overridevirtualnoexcept

◆ SetTopic()

void Aws::Greengrass::MessageContext::SetTopic ( const Aws::Crt::String & topic)
inlinenoexcept

The topic where the message was published.

Member Data Documentation

◆ MODEL_NAME

const char * Aws::Greengrass::MessageContext::MODEL_NAME = "aws.greengrass#MessageContext"
static

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