AWS SDK for C++  1.9.155
AWS SDK for C++
Public Member Functions | List of all members
Aws::AppMesh::Model::GrpcRetryPolicy Class Reference

#include <GrpcRetryPolicy.h>

Public Member Functions

 GrpcRetryPolicy ()
 
 GrpcRetryPolicy (Aws::Utils::Json::JsonView jsonValue)
 
GrpcRetryPolicyoperator= (Aws::Utils::Json::JsonView jsonValue)
 
Aws::Utils::Json::JsonValue Jsonize () const
 
const Aws::Vector< GrpcRetryPolicyEvent > & GetGrpcRetryEvents () const
 
bool GrpcRetryEventsHasBeenSet () const
 
void SetGrpcRetryEvents (const Aws::Vector< GrpcRetryPolicyEvent > &value)
 
void SetGrpcRetryEvents (Aws::Vector< GrpcRetryPolicyEvent > &&value)
 
GrpcRetryPolicyWithGrpcRetryEvents (const Aws::Vector< GrpcRetryPolicyEvent > &value)
 
GrpcRetryPolicyWithGrpcRetryEvents (Aws::Vector< GrpcRetryPolicyEvent > &&value)
 
GrpcRetryPolicyAddGrpcRetryEvents (const GrpcRetryPolicyEvent &value)
 
GrpcRetryPolicyAddGrpcRetryEvents (GrpcRetryPolicyEvent &&value)
 
const Aws::Vector< Aws::String > & GetHttpRetryEvents () const
 
bool HttpRetryEventsHasBeenSet () const
 
void SetHttpRetryEvents (const Aws::Vector< Aws::String > &value)
 
void SetHttpRetryEvents (Aws::Vector< Aws::String > &&value)
 
GrpcRetryPolicyWithHttpRetryEvents (const Aws::Vector< Aws::String > &value)
 
GrpcRetryPolicyWithHttpRetryEvents (Aws::Vector< Aws::String > &&value)
 
GrpcRetryPolicyAddHttpRetryEvents (const Aws::String &value)
 
GrpcRetryPolicyAddHttpRetryEvents (Aws::String &&value)
 
GrpcRetryPolicyAddHttpRetryEvents (const char *value)
 
long long GetMaxRetries () const
 
bool MaxRetriesHasBeenSet () const
 
void SetMaxRetries (long long value)
 
GrpcRetryPolicyWithMaxRetries (long long value)
 
const DurationGetPerRetryTimeout () const
 
bool PerRetryTimeoutHasBeenSet () const
 
void SetPerRetryTimeout (const Duration &value)
 
void SetPerRetryTimeout (Duration &&value)
 
GrpcRetryPolicyWithPerRetryTimeout (const Duration &value)
 
GrpcRetryPolicyWithPerRetryTimeout (Duration &&value)
 
const Aws::Vector< TcpRetryPolicyEvent > & GetTcpRetryEvents () const
 
bool TcpRetryEventsHasBeenSet () const
 
void SetTcpRetryEvents (const Aws::Vector< TcpRetryPolicyEvent > &value)
 
void SetTcpRetryEvents (Aws::Vector< TcpRetryPolicyEvent > &&value)
 
GrpcRetryPolicyWithTcpRetryEvents (const Aws::Vector< TcpRetryPolicyEvent > &value)
 
GrpcRetryPolicyWithTcpRetryEvents (Aws::Vector< TcpRetryPolicyEvent > &&value)
 
GrpcRetryPolicyAddTcpRetryEvents (const TcpRetryPolicyEvent &value)
 
GrpcRetryPolicyAddTcpRetryEvents (TcpRetryPolicyEvent &&value)
 

Detailed Description

An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents, a value for maxRetries, and a value for perRetryTimeout. Both server-error and gateway-error under httpRetryEvents include the Envoy reset policy. For more information on the reset policy, see the Envoy documentation.

See Also:

AWS API Reference

Definition at line 42 of file GrpcRetryPolicy.h.

Constructor & Destructor Documentation

◆ GrpcRetryPolicy() [1/2]

Aws::AppMesh::Model::GrpcRetryPolicy::GrpcRetryPolicy ( )

◆ GrpcRetryPolicy() [2/2]

Aws::AppMesh::Model::GrpcRetryPolicy::GrpcRetryPolicy ( Aws::Utils::Json::JsonView  jsonValue)

Member Function Documentation

◆ AddGrpcRetryEvents() [1/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::AddGrpcRetryEvents ( const GrpcRetryPolicyEvent value)
inline

Specify at least one of the valid values.

Definition at line 84 of file GrpcRetryPolicy.h.

◆ AddGrpcRetryEvents() [2/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::AddGrpcRetryEvents ( GrpcRetryPolicyEvent &&  value)
inline

Specify at least one of the valid values.

Definition at line 89 of file GrpcRetryPolicy.h.

◆ AddHttpRetryEvents() [1/3]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::AddHttpRetryEvents ( Aws::String &&  value)
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 170 of file GrpcRetryPolicy.h.

◆ AddHttpRetryEvents() [2/3]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::AddHttpRetryEvents ( const Aws::String value)
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 160 of file GrpcRetryPolicy.h.

◆ AddHttpRetryEvents() [3/3]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::AddHttpRetryEvents ( const char *  value)
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 180 of file GrpcRetryPolicy.h.

◆ AddTcpRetryEvents() [1/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::AddTcpRetryEvents ( const TcpRetryPolicyEvent value)
inline

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Definition at line 282 of file GrpcRetryPolicy.h.

◆ AddTcpRetryEvents() [2/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::AddTcpRetryEvents ( TcpRetryPolicyEvent &&  value)
inline

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Definition at line 289 of file GrpcRetryPolicy.h.

◆ GetGrpcRetryEvents()

const Aws::Vector<GrpcRetryPolicyEvent>& Aws::AppMesh::Model::GrpcRetryPolicy::GetGrpcRetryEvents ( ) const
inline

Specify at least one of the valid values.

Definition at line 54 of file GrpcRetryPolicy.h.

◆ GetHttpRetryEvents()

const Aws::Vector<Aws::String>& Aws::AppMesh::Model::GrpcRetryPolicy::GetHttpRetryEvents ( ) const
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 100 of file GrpcRetryPolicy.h.

◆ GetMaxRetries()

long long Aws::AppMesh::Model::GrpcRetryPolicy::GetMaxRetries ( ) const
inline

The maximum number of retry attempts.

Definition at line 186 of file GrpcRetryPolicy.h.

◆ GetPerRetryTimeout()

const Duration& Aws::AppMesh::Model::GrpcRetryPolicy::GetPerRetryTimeout ( ) const
inline

The timeout for each retry attempt.

Definition at line 207 of file GrpcRetryPolicy.h.

◆ GetTcpRetryEvents()

const Aws::Vector<TcpRetryPolicyEvent>& Aws::AppMesh::Model::GrpcRetryPolicy::GetTcpRetryEvents ( ) const
inline

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Definition at line 240 of file GrpcRetryPolicy.h.

◆ GrpcRetryEventsHasBeenSet()

bool Aws::AppMesh::Model::GrpcRetryPolicy::GrpcRetryEventsHasBeenSet ( ) const
inline

Specify at least one of the valid values.

Definition at line 59 of file GrpcRetryPolicy.h.

◆ HttpRetryEventsHasBeenSet()

bool Aws::AppMesh::Model::GrpcRetryPolicy::HttpRetryEventsHasBeenSet ( ) const
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 110 of file GrpcRetryPolicy.h.

◆ Jsonize()

Aws::Utils::Json::JsonValue Aws::AppMesh::Model::GrpcRetryPolicy::Jsonize ( ) const

◆ MaxRetriesHasBeenSet()

bool Aws::AppMesh::Model::GrpcRetryPolicy::MaxRetriesHasBeenSet ( ) const
inline

The maximum number of retry attempts.

Definition at line 191 of file GrpcRetryPolicy.h.

◆ operator=()

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::operator= ( Aws::Utils::Json::JsonView  jsonValue)

◆ PerRetryTimeoutHasBeenSet()

bool Aws::AppMesh::Model::GrpcRetryPolicy::PerRetryTimeoutHasBeenSet ( ) const
inline

The timeout for each retry attempt.

Definition at line 212 of file GrpcRetryPolicy.h.

◆ SetGrpcRetryEvents() [1/2]

void Aws::AppMesh::Model::GrpcRetryPolicy::SetGrpcRetryEvents ( Aws::Vector< GrpcRetryPolicyEvent > &&  value)
inline

Specify at least one of the valid values.

Definition at line 69 of file GrpcRetryPolicy.h.

◆ SetGrpcRetryEvents() [2/2]

void Aws::AppMesh::Model::GrpcRetryPolicy::SetGrpcRetryEvents ( const Aws::Vector< GrpcRetryPolicyEvent > &  value)
inline

Specify at least one of the valid values.

Definition at line 64 of file GrpcRetryPolicy.h.

◆ SetHttpRetryEvents() [1/2]

void Aws::AppMesh::Model::GrpcRetryPolicy::SetHttpRetryEvents ( Aws::Vector< Aws::String > &&  value)
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 130 of file GrpcRetryPolicy.h.

◆ SetHttpRetryEvents() [2/2]

void Aws::AppMesh::Model::GrpcRetryPolicy::SetHttpRetryEvents ( const Aws::Vector< Aws::String > &  value)
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 120 of file GrpcRetryPolicy.h.

◆ SetMaxRetries()

void Aws::AppMesh::Model::GrpcRetryPolicy::SetMaxRetries ( long long  value)
inline

The maximum number of retry attempts.

Definition at line 196 of file GrpcRetryPolicy.h.

◆ SetPerRetryTimeout() [1/2]

void Aws::AppMesh::Model::GrpcRetryPolicy::SetPerRetryTimeout ( const Duration value)
inline

The timeout for each retry attempt.

Definition at line 217 of file GrpcRetryPolicy.h.

◆ SetPerRetryTimeout() [2/2]

void Aws::AppMesh::Model::GrpcRetryPolicy::SetPerRetryTimeout ( Duration &&  value)
inline

The timeout for each retry attempt.

Definition at line 222 of file GrpcRetryPolicy.h.

◆ SetTcpRetryEvents() [1/2]

void Aws::AppMesh::Model::GrpcRetryPolicy::SetTcpRetryEvents ( Aws::Vector< TcpRetryPolicyEvent > &&  value)
inline

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Definition at line 261 of file GrpcRetryPolicy.h.

◆ SetTcpRetryEvents() [2/2]

void Aws::AppMesh::Model::GrpcRetryPolicy::SetTcpRetryEvents ( const Aws::Vector< TcpRetryPolicyEvent > &  value)
inline

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Definition at line 254 of file GrpcRetryPolicy.h.

◆ TcpRetryEventsHasBeenSet()

bool Aws::AppMesh::Model::GrpcRetryPolicy::TcpRetryEventsHasBeenSet ( ) const
inline

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Definition at line 247 of file GrpcRetryPolicy.h.

◆ WithGrpcRetryEvents() [1/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithGrpcRetryEvents ( Aws::Vector< GrpcRetryPolicyEvent > &&  value)
inline

Specify at least one of the valid values.

Definition at line 79 of file GrpcRetryPolicy.h.

◆ WithGrpcRetryEvents() [2/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithGrpcRetryEvents ( const Aws::Vector< GrpcRetryPolicyEvent > &  value)
inline

Specify at least one of the valid values.

Definition at line 74 of file GrpcRetryPolicy.h.

◆ WithHttpRetryEvents() [1/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithHttpRetryEvents ( Aws::Vector< Aws::String > &&  value)
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 150 of file GrpcRetryPolicy.h.

◆ WithHttpRetryEvents() [2/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithHttpRetryEvents ( const Aws::Vector< Aws::String > &  value)
inline

Specify at least one of the following values.

  • server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511

  • gateway-error – HTTP status codes 502, 503, and 504

  • client-error – HTTP status code 409

  • stream-error – Retry on refused stream

Definition at line 140 of file GrpcRetryPolicy.h.

◆ WithMaxRetries()

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithMaxRetries ( long long  value)
inline

The maximum number of retry attempts.

Definition at line 201 of file GrpcRetryPolicy.h.

◆ WithPerRetryTimeout() [1/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithPerRetryTimeout ( const Duration value)
inline

The timeout for each retry attempt.

Definition at line 227 of file GrpcRetryPolicy.h.

◆ WithPerRetryTimeout() [2/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithPerRetryTimeout ( Duration &&  value)
inline

The timeout for each retry attempt.

Definition at line 232 of file GrpcRetryPolicy.h.

◆ WithTcpRetryEvents() [1/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithTcpRetryEvents ( Aws::Vector< TcpRetryPolicyEvent > &&  value)
inline

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Definition at line 275 of file GrpcRetryPolicy.h.

◆ WithTcpRetryEvents() [2/2]

GrpcRetryPolicy& Aws::AppMesh::Model::GrpcRetryPolicy::WithTcpRetryEvents ( const Aws::Vector< TcpRetryPolicyEvent > &  value)
inline

Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

Definition at line 268 of file GrpcRetryPolicy.h.


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