Class RawKeyMaterial.Builder<T>
- java.lang.Object
-
- software.amazon.encryption.s3.materials.RawKeyMaterial.Builder<T>
-
- Type Parameters:
T- the type of key material
- Enclosing class:
- RawKeyMaterial<T>
public static class RawKeyMaterial.Builder<T> extends Object
Builder for RawKeyMaterial.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RawKeyMaterial<T>build()RawKeyMaterial.Builder<T>keyMaterial(T keyMaterial)Sets the key material.RawKeyMaterial.Builder<T>materialsDescription(MaterialsDescription materialsDescription)Sets the materials description for this raw key material.
-
-
-
Method Detail
-
materialsDescription
public RawKeyMaterial.Builder<T> materialsDescription(MaterialsDescription materialsDescription)
Sets the materials description for this raw key material.- Parameters:
materialsDescription- the materials description- Returns:
- a reference to this object so that method calls can be chained together.
-
keyMaterial
public RawKeyMaterial.Builder<T> keyMaterial(T keyMaterial)
Sets the key material.- Parameters:
keyMaterial- the key material- Returns:
- a reference to this object so that method calls can be chained together.
-
build
public RawKeyMaterial<T> build()
- Returns:
- the built RawKeyMaterial
-
-