Class ExecutionAttribute.MappedAttributeBuilder<T,U>
- java.lang.Object
-
- software.amazon.awssdk.core.interceptor.ExecutionAttribute.MappedAttributeBuilder<T,U>
-
- Enclosing class:
- ExecutionAttribute<T>
protected static final class ExecutionAttribute.MappedAttributeBuilder<T,U> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionAttribute<T>
build()
ExecutionAttribute.MappedAttributeBuilder<T,U>
readMapping(BiFunction<T,U,T> readMapping)
Set the "read" mapping for this mapped attribute.ExecutionAttribute.MappedAttributeBuilder<T,U>
writeMapping(BiFunction<U,T,U> writeMapping)
Set the "write" mapping for this derived attribute.
-
-
-
Method Detail
-
readMapping
public ExecutionAttribute.MappedAttributeBuilder<T,U> readMapping(BiFunction<T,U,T> readMapping)
Set the "read" mapping for this mapped attribute. The provided function accepts the current value of the backing attribute,
-
writeMapping
public ExecutionAttribute.MappedAttributeBuilder<T,U> writeMapping(BiFunction<U,T,U> writeMapping)
Set the "write" mapping for this derived attribute. The provided function accepts the current value of the mapped attribute, the value that we are mapping from (the "backing" attribute), and returns the value to set to the mapped attribute.
-
build
public ExecutionAttribute<T> build()
-
-