Class RetryableTrait.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.AbstractTraitBuilder<RetryableTrait,RetryableTrait.Builder>
-
- software.amazon.smithy.model.traits.RetryableTrait.Builder
-
- All Implemented Interfaces:
SmithyBuilder<RetryableTrait>
- Enclosing class:
- RetryableTrait
public static final class RetryableTrait.Builder extends AbstractTraitBuilder<RetryableTrait,RetryableTrait.Builder>
Builds aRetryableTraittrait.
-
-
Method Summary
Modifier and Type Method Description RetryableTraitbuild()Creates an immutable object that is created from the properties that have been set on the builder.RetryableTrait.Builderthrottling(boolean throttling)Indicates if the retry is considered a throttle.-
Methods inherited from class software.amazon.smithy.model.traits.AbstractTraitBuilder
getSourceLocation, sourceLocation
-
-
-
-
Method Detail
-
build
public RetryableTrait build()
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
throttling
public RetryableTrait.Builder throttling(boolean throttling)
Indicates if the retry is considered a throttle.- Parameters:
throttling- Set to true if the retry is a throttle.- Returns:
- Returns the builder.
-
-