AWS IoT Device SDK C++ v2  1.39.0
AWS IoT Device SDK C++ v2
Public Member Functions | List of all members
Aws::Greengrass::UpdateStateOperation Class Reference

#include <GreengrassCoreIpcModel.h>

Inheritance diagram for Aws::Greengrass::UpdateStateOperation:
Aws::Eventstreamrpc::ClientOperation Aws::Eventstreamrpc::ClientContinuationHandler

Public Member Functions

 UpdateStateOperation (ClientConnection &connection, const std::shared_ptr< OperationModelContext > &operationContext, Aws::Crt::Allocator *allocator=Aws::Crt::g_allocator) noexcept
 
std::future< RpcErrorActivate (const UpdateStateRequest &request, OnMessageFlushCallback onMessageFlushCallback=nullptr) noexcept
 
std::future< UpdateStateResultGetResult () noexcept
 
- Public Member Functions inherited from Aws::Eventstreamrpc::ClientOperation
 ClientOperation (ClientConnection &connection, std::shared_ptr< StreamResponseHandler > streamHandler, const std::shared_ptr< OperationModelContext > &operationModelContext, Crt::Allocator *allocator) noexcept
 
 ~ClientOperation () noexcept override
 
 ClientOperation (const ClientOperation &clientOperation) noexcept=delete
 
 ClientOperation (ClientOperation &&clientOperation) noexcept=delete
 
bool operator= (const ClientOperation &clientOperation) noexcept=delete
 
bool operator= (ClientOperation &&clientOperation) noexcept=delete
 
std::future< RpcErrorClose (OnMessageFlushCallback onMessageFlushCallback=nullptr) noexcept
 
void WithLaunchMode (std::launch mode) noexcept
 
- Public Member Functions inherited from Aws::Eventstreamrpc::ClientContinuationHandler
virtual ~ClientContinuationHandler () noexcept=default
 

Additional Inherited Members

- Protected Member Functions inherited from Aws::Eventstreamrpc::ClientOperation
std::future< RpcErrorActivate (const AbstractShapeBase *shape, OnMessageFlushCallback &&onMessageFlushCallback, std::function< void(EventstreamResultVariantType &&)> &&onResultCallback) noexcept
 
std::future< RpcErrorSendStreamMessage (const AbstractShapeBase *shape, OnMessageFlushCallback &&onMessageFlushCallback) noexcept
 
virtual Crt::String GetModelName () const noexcept
 

Constructor & Destructor Documentation

◆ UpdateStateOperation()

Aws::Greengrass::UpdateStateOperation::UpdateStateOperation ( ClientConnection connection,
const std::shared_ptr< OperationModelContext > &  operationContext,
Aws::Crt::Allocator allocator = Aws::Crt::g_allocator 
)
noexcept

Member Function Documentation

◆ Activate()

std::future< RpcError > Aws::Greengrass::UpdateStateOperation::Activate ( const UpdateStateRequest request,
OnMessageFlushCallback  onMessageFlushCallback = nullptr 
)
noexcept

Used to activate a stream for the UpdateStateOperation

Parameters
requestThe request used for the UpdateStateOperation
onMessageFlushCallbackAn optional callback that is invoked when the request is flushed.
Returns
An RpcError that can be used to check whether the stream was activated.

◆ GetResult()

std::future< UpdateStateResult > Aws::Greengrass::UpdateStateOperation::GetResult ( )
noexcept

Retrieve the result from activating the stream.


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