AWS IoT Device SDK C++ v2  1.32.6
AWS IoT Device SDK C++ v2
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Aws::Greengrass::JsonMessage Class Reference

#include <GreengrassCoreIpcModel.h>

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

Public Member Functions

 JsonMessage () noexcept
 
 JsonMessage (const JsonMessage &)=default
 
void SetMessage (const Aws::Crt::JsonObject &message) noexcept
 
Aws::Crt::Optional< Aws::Crt::JsonObjectGetMessage () noexcept
 
void SetContext (const MessageContext &context) noexcept
 
Aws::Crt::Optional< MessageContextGetContext () noexcept
 
void SerializeToJsonObject (Aws::Crt::JsonObject &payloadObject) const noexcept override
 
bool operator< (const JsonMessage &) const noexcept
 
- Public Member Functions inherited from Aws::Eventstreamrpc::AbstractShapeBase
 AbstractShapeBase () noexcept
 
virtual ~AbstractShapeBase () noexcept=default
 

Static Public Member Functions

static void s_loadFromJsonView (JsonMessage &, const Aws::Crt::JsonView &) noexcept
 
static Aws::Crt::ScopedResource< AbstractShapeBases_allocateFromPayload (Aws::Crt::StringView, Aws::Crt::Allocator *) noexcept
 
static void s_customDeleter (JsonMessage *) 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#JsonMessage"
 

Protected Member Functions

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ JsonMessage() [1/2]

Aws::Greengrass::JsonMessage::JsonMessage ( )
inlinenoexcept

◆ JsonMessage() [2/2]

Aws::Greengrass::JsonMessage::JsonMessage ( const JsonMessage )
default

Member Function Documentation

◆ GetContext()

Aws::Crt::Optional<MessageContext> Aws::Greengrass::JsonMessage::GetContext ( )
inlinenoexcept

The context of the message, such as the topic where the message was published.

◆ GetMessage()

Aws::Crt::Optional<Aws::Crt::JsonObject> Aws::Greengrass::JsonMessage::GetMessage ( )
inlinenoexcept

The JSON message as an object.

◆ GetModelName()

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

◆ operator<()

bool Aws::Greengrass::JsonMessage::operator< ( const JsonMessage ) const
noexcept

◆ s_allocateFromPayload()

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

◆ s_customDeleter()

void Aws::Greengrass::JsonMessage::s_customDeleter ( JsonMessage shape)
staticnoexcept

◆ s_loadFromJsonView()

void Aws::Greengrass::JsonMessage::s_loadFromJsonView ( JsonMessage jsonMessage,
const Aws::Crt::JsonView jsonView 
)
staticnoexcept

◆ SerializeToJsonObject()

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

◆ SetContext()

void Aws::Greengrass::JsonMessage::SetContext ( const MessageContext context)
inlinenoexcept

The context of the message, such as the topic where the message was published.

◆ SetMessage()

void Aws::Greengrass::JsonMessage::SetMessage ( const Aws::Crt::JsonObject message)
inlinenoexcept

The JSON message as an object.

Member Data Documentation

◆ MODEL_NAME

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

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