AWS IoT Device SDK C++ v2  1.32.6
AWS IoT Device SDK C++ v2
Classes | Public Member Functions | List of all members
Aws::Eventstreamrpc::TaggedResult Class Reference

#include <EventStreamClient.h>

Public Member Functions

 TaggedResult () noexcept
 
 TaggedResult (Crt::ScopedResource< AbstractShapeBase > response) noexcept
 
 TaggedResult (Crt::ScopedResource< OperationError > error) noexcept
 
 TaggedResult (RpcError rpcError) noexcept
 
 TaggedResult (TaggedResult &&rhs) noexcept
 
TaggedResultoperator= (TaggedResult &&rhs) noexcept
 
 ~TaggedResult () noexcept
 
 operator bool () const noexcept
 
AbstractShapeBaseGetOperationResponse () const noexcept
 
OperationErrorGetOperationError () const noexcept
 
RpcError GetRpcError () const noexcept
 
ResultType GetResultType () const noexcept
 

Detailed Description

A wrapper for operation result.

Constructor & Destructor Documentation

◆ TaggedResult() [1/5]

Aws::Eventstreamrpc::TaggedResult::TaggedResult ( )
noexcept

◆ TaggedResult() [2/5]

Aws::Eventstreamrpc::TaggedResult::TaggedResult ( Crt::ScopedResource< AbstractShapeBase response)
explicitnoexcept

◆ TaggedResult() [3/5]

Aws::Eventstreamrpc::TaggedResult::TaggedResult ( Crt::ScopedResource< OperationError error)
explicitnoexcept

◆ TaggedResult() [4/5]

Aws::Eventstreamrpc::TaggedResult::TaggedResult ( RpcError  rpcError)
explicitnoexcept

◆ TaggedResult() [5/5]

Aws::Eventstreamrpc::TaggedResult::TaggedResult ( TaggedResult &&  rhs)
noexcept

◆ ~TaggedResult()

Aws::Eventstreamrpc::TaggedResult::~TaggedResult ( )
noexcept

Member Function Documentation

◆ GetOperationError()

OperationError * Aws::Eventstreamrpc::TaggedResult::GetOperationError ( ) const
noexcept

Get error for a failed operation.

Returns
A pointer to the error object in case of failure, nullptr otherwise.

◆ GetOperationResponse()

AbstractShapeBase * Aws::Eventstreamrpc::TaggedResult::GetOperationResponse ( ) const
noexcept

Get operation result.

Returns
A pointer to the resulting object in case of success, nullptr otherwise.

◆ GetResultType()

ResultType Aws::Eventstreamrpc::TaggedResult::GetResultType ( ) const
inlinenoexcept

Get the type of the result with which the operation has completed.

Returns
Result type.

◆ GetRpcError()

RpcError Aws::Eventstreamrpc::TaggedResult::GetRpcError ( ) const
noexcept

Get RPC-level error.

Returns
A pointer to the error object in case of RPC-level failure, nullptr otherwise.

◆ operator bool()

Aws::Eventstreamrpc::TaggedResult::operator bool ( ) const
noexcept
Returns
true if the response is associated with an expected response; false if the response is associated with an error.

◆ operator=()

TaggedResult & Aws::Eventstreamrpc::TaggedResult::operator= ( TaggedResult &&  rhs)
noexcept

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