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
Modifier and TypeMethodDescriptionbuild()
An immutable object that is created from the properties that have been set on the builder.<T> T
get
(AttributeMap.Key<T> key) put
(AttributeMap.Key<T> key, T value) Add a mapping between the provided key and value.putAll
(Map<? extends AttributeMap.Key<?>, ?> 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
-
get
-
put
Add a mapping between the provided key and value. -
putAll
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
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<AttributeMap.Builder,
AttributeMap> - Returns:
- an instance of T
-