Package com.amazonaws.util
Class ImmutableMapParameter.Builder<K,V>
java.lang.Object
com.amazonaws.util.ImmutableMapParameter.Builder<K,V>
- Direct Known Subclasses:
StringMapBuilder
- Enclosing class:
- ImmutableMapParameter<K,
V>
A convenient builder for creating ImmutableMapParameter instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Generates and returns a new ImmutableMapParameter instance which contains all the entries added into the Builder byput()
method.Add a key-value pair into the built map.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
put
Add a key-value pair into the built map. The method will throw IllegalArgumentException immediately when duplicate keys are provided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
build
Generates and returns a new ImmutableMapParameter instance which contains all the entries added into the Builder byput()
method.
-