@Generated(value="software.amazon.awssdk:codegen") public final class GrpcRetryPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GrpcRetryPolicy.Builder,GrpcRetryPolicy>
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
.
Modifier and Type | Class and Description |
---|---|
static interface |
GrpcRetryPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static GrpcRetryPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
List<GrpcRetryPolicyEvent> |
grpcRetryEvents()
Specify at least one of the valid values.
|
List<String> |
grpcRetryEventsAsStrings()
Specify at least one of the valid values.
|
boolean |
hasGrpcRetryEvents()
Returns true if the GrpcRetryEvents property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasHttpRetryEvents()
Returns true if the HttpRetryEvents property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasTcpRetryEvents()
Returns true if the TcpRetryEvents property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
List<String> |
httpRetryEvents()
Specify at least one of the following values.
|
Long |
maxRetries()
The maximum number of retry attempts.
|
Duration |
perRetryTimeout()
The timeout for each retry attempt.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GrpcRetryPolicy.Builder> |
serializableBuilderClass() |
List<TcpRetryPolicyEvent> |
tcpRetryEvents()
Specify a valid value.
|
List<String> |
tcpRetryEventsAsStrings()
Specify a valid value.
|
GrpcRetryPolicy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final List<GrpcRetryPolicyEvent> grpcRetryEvents()
Specify at least one of the valid values.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasGrpcRetryEvents()
to see if a value was sent in this field.
public final boolean hasGrpcRetryEvents()
public final List<String> grpcRetryEventsAsStrings()
Specify at least one of the valid values.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasGrpcRetryEvents()
to see if a value was sent in this field.
public final boolean hasHttpRetryEvents()
public final List<String> httpRetryEvents()
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
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasHttpRetryEvents()
to see if a value was sent in this field.
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
public final Long maxRetries()
The maximum number of retry attempts.
public final Duration perRetryTimeout()
The timeout for each retry attempt.
public final List<TcpRetryPolicyEvent> tcpRetryEvents()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTcpRetryEvents()
to see if a value was sent in this field.
public final boolean hasTcpRetryEvents()
public final List<String> tcpRetryEventsAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTcpRetryEvents()
to see if a value was sent in this field.
public GrpcRetryPolicy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GrpcRetryPolicy.Builder,GrpcRetryPolicy>
public static GrpcRetryPolicy.Builder builder()
public static Class<? extends GrpcRetryPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()