Package software.amazon.awssdk.utils
Class AttributeMap.Builder
- java.lang.Object
-
- software.amazon.awssdk.utils.AttributeMap.Builder
-
- All Implemented Interfaces:
Buildable,CopyableBuilder<AttributeMap.Builder,AttributeMap>,SdkBuilder<AttributeMap.Builder,AttributeMap>
- Enclosing class:
- AttributeMap
public static final class AttributeMap.Builder extends Object implements CopyableBuilder<AttributeMap.Builder,AttributeMap>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeMapbuild()An immutable object that is created from the properties that have been set on the builder.<T> Tget(AttributeMap.Key<T> key)<T> AttributeMap.Builderput(AttributeMap.Key<T> key, T value)Add a mapping between the provided key and value.AttributeMap.BuilderputAll(Map<? extends AttributeMap.Key<?>,?> attributes)Adds all the attributes from the map provided.-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 Detail
-
get
public <T> T get(AttributeMap.Key<T> key)
-
put
public <T> AttributeMap.Builder put(AttributeMap.Key<T> key, T value)
Add a mapping between the provided key and value.
-
putAll
public AttributeMap.Builder putAll(Map<? extends AttributeMap.Key<?>,?> attributes)
Adds all the attributes from the map provided. This is not type safe, and will throw an exception during creation if a value in the map is not of the correct type for its key.
-
build
public AttributeMap build()
Description copied from interface:SdkBuilderAn immutable object that is created from the properties that have been set on the builder.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkBuilder<AttributeMap.Builder,AttributeMap>- Returns:
- an instance of T
-
-