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

#include <GreengrassCoreIpcModel.h>

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

Public Member Functions

 Metric () noexcept
 Metric (const Metric &)=default
void SetName (const Aws::Crt::String &name) noexcept
Aws::Crt::Optional< Aws::Crt::StringGetName () const noexcept
void SetUnit (MetricUnitType unit) noexcept
Aws::Crt::Optional< MetricUnitTypeGetUnit () const noexcept
void SetValue (const double &value) noexcept
Aws::Crt::Optional< double > GetValue () const noexcept
void SerializeToJsonObject (Aws::Crt::JsonObject &payloadObject) const noexcept override
bool operator< (const Metric &) const noexcept
Public Member Functions inherited from Aws::Eventstreamrpc::AbstractShapeBase
 AbstractShapeBase () noexcept
virtual ~AbstractShapeBase () noexcept=default

Static Public Member Functions

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

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

◆ Metric() [1/2]

Aws::Greengrass::Metric::Metric ( )
inlinenoexcept

◆ Metric() [2/2]

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

Member Function Documentation

◆ GetModelName()

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

◆ GetName()

Aws::Crt::Optional< Aws::Crt::String > Aws::Greengrass::Metric::GetName ( ) const
inlinenoexcept

◆ GetUnit()

Aws::Crt::Optional< MetricUnitType > Aws::Greengrass::Metric::GetUnit ( ) const
noexcept

◆ GetValue()

Aws::Crt::Optional< double > Aws::Greengrass::Metric::GetValue ( ) const
inlinenoexcept

◆ operator<()

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

◆ s_allocateFromPayload()

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

◆ s_customDeleter()

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

◆ s_loadFromJsonView()

void Aws::Greengrass::Metric::s_loadFromJsonView ( Metric & metric,
const Aws::Crt::JsonView & jsonView )
staticnoexcept

◆ SerializeToJsonObject()

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

◆ SetName()

void Aws::Greengrass::Metric::SetName ( const Aws::Crt::String & name)
inlinenoexcept

◆ SetUnit()

void Aws::Greengrass::Metric::SetUnit ( MetricUnitType unit)
noexcept

◆ SetValue()

void Aws::Greengrass::Metric::SetValue ( const double & value)
inlinenoexcept

Member Data Documentation

◆ MODEL_NAME

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

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