Class MaterialsDescription.Builder
- java.lang.Object
-
- software.amazon.encryption.s3.materials.MaterialsDescription.Builder
-
- Enclosing class:
- MaterialsDescription
public static class MaterialsDescription.Builder extends Object
Builder for MaterialsDescription.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaterialsDescription
build()
MaterialsDescription.Builder
put(String key, String value)
MaterialsDescription.Builder
putAll(Map<String,String> description)
-
-
-
Method Detail
-
put
public MaterialsDescription.Builder put(String key, String value)
- Parameters:
key
- the key to addvalue
- the value to add- Returns:
- a reference to this object so that method calls can be chained together.
- Throws:
IllegalArgumentException
- if key or value is null
-
putAll
public MaterialsDescription.Builder putAll(Map<String,String> description)
- Parameters:
description
- the map of key-value pairs to add- Returns:
- a reference to this object so that method calls can be chained together.
- Throws:
IllegalArgumentException
- if description is null
-
build
public MaterialsDescription build()
- Returns:
- the built MaterialsDescription
-
-