AWS SDK for C++  1.7.207
AWS SDK for C++
Public Member Functions | List of all members
Aws::Utils::Outcome< R, E > Class Template Reference

#include <ACMClient.h>

Public Member Functions

 Outcome ()
 
 Outcome (const R &r)
 
 Outcome (const E &e)
 
 Outcome (R &&r)
 
 Outcome (E &&e)
 
 Outcome (const Outcome &o)
 
Outcomeoperator= (const Outcome &o)
 
 Outcome (Outcome &&o)
 
Outcomeoperator= (Outcome &&o)
 
const R & GetResult () const
 
R & GetResult ()
 
R && GetResultWithOwnership ()
 
const E & GetError () const
 
bool IsSuccess () const
 

Detailed Description

template<typename R, typename E>
class Aws::Utils::Outcome< R, E >

Template class representing the outcome of making a request. It will contain either a successful result or the failure error. The caller must check whether the outcome of the request was a success before attempting to access the result or the error.

Definition at line 48 of file ACMClient.h.

Constructor & Destructor Documentation

◆ Outcome() [1/7]

template<typename R , typename E >
Aws::Utils::Outcome< R, E >::Outcome ( )
inline

Definition at line 38 of file Outcome.h.

◆ Outcome() [2/7]

template<typename R , typename E >
Aws::Utils::Outcome< R, E >::Outcome ( const R &  r)
inline

Definition at line 41 of file Outcome.h.

◆ Outcome() [3/7]

template<typename R , typename E >
Aws::Utils::Outcome< R, E >::Outcome ( const E &  e)
inline

Definition at line 44 of file Outcome.h.

◆ Outcome() [4/7]

template<typename R , typename E >
Aws::Utils::Outcome< R, E >::Outcome ( R &&  r)
inline

Definition at line 47 of file Outcome.h.

◆ Outcome() [5/7]

template<typename R , typename E >
Aws::Utils::Outcome< R, E >::Outcome ( E &&  e)
inline

Definition at line 50 of file Outcome.h.

◆ Outcome() [6/7]

template<typename R , typename E >
Aws::Utils::Outcome< R, E >::Outcome ( const Outcome< R, E > &  o)
inline

Definition at line 53 of file Outcome.h.

◆ Outcome() [7/7]

template<typename R , typename E >
Aws::Utils::Outcome< R, E >::Outcome ( Outcome< R, E > &&  o)
inline

Definition at line 72 of file Outcome.h.

Member Function Documentation

◆ GetError()

template<typename R , typename E >
const E& Aws::Utils::Outcome< R, E >::GetError ( ) const
inline

Definition at line 110 of file Outcome.h.

◆ GetResult() [1/2]

template<typename R , typename E >
const R& Aws::Utils::Outcome< R, E >::GetResult ( ) const
inline

Definition at line 91 of file Outcome.h.

◆ GetResult() [2/2]

template<typename R , typename E >
R& Aws::Utils::Outcome< R, E >::GetResult ( )
inline

Definition at line 96 of file Outcome.h.

◆ GetResultWithOwnership()

template<typename R , typename E >
R&& Aws::Utils::Outcome< R, E >::GetResultWithOwnership ( )
inline

casts the underlying result to an r-value so that caller can take ownership of underlying resources. this is necessary when streams are involved.

Definition at line 105 of file Outcome.h.

◆ IsSuccess()

template<typename R , typename E >
bool Aws::Utils::Outcome< R, E >::IsSuccess ( ) const
inline

Definition at line 115 of file Outcome.h.

◆ operator=() [1/2]

template<typename R , typename E >
Outcome& Aws::Utils::Outcome< R, E >::operator= ( const Outcome< R, E > &  o)
inline

Definition at line 60 of file Outcome.h.

◆ operator=() [2/2]

template<typename R , typename E >
Outcome& Aws::Utils::Outcome< R, E >::operator= ( Outcome< R, E > &&  o)
inline

Definition at line 79 of file Outcome.h.


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