Class ExecutionAttributes.Builder
java.lang.Object
software.amazon.awssdk.core.interceptor.ExecutionAttributes.Builder
- All Implemented Interfaces:
Buildable
,CopyableBuilder<ExecutionAttributes.Builder,
,ExecutionAttributes> SdkBuilder<ExecutionAttributes.Builder,
ExecutionAttributes>
- Enclosing class:
ExecutionAttributes
public static final class ExecutionAttributes.Builder
extends Object
implements CopyableBuilder<ExecutionAttributes.Builder,ExecutionAttributes>
TODO: We should deprecate this builder - execution attributes are mutable - why do we need a builder? We can just use
copy() if it's because of
ExecutionAttributes.unmodifiableExecutionAttributes(ExecutionAttributes)
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
An immutable object that is created from the properties that have been set on the builder.put
(ExecutionAttribute<T> key, T value) Add a mapping between the provided key and value.putAll
(Map<? extends ExecutionAttribute<?>, ?> attributes) Adds all the attributes from the map provided.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
put
Add a mapping between the provided key and value. -
putAll
Adds all the attributes from the map provided. -
build
Description copied from interface:SdkBuilder
An immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<ExecutionAttributes.Builder,
ExecutionAttributes> - Returns:
- an instance of T
-