Class BasicTransformer
java.lang.Object
software.amazon.lambda.powertools.parameters.transform.BasicTransformer
- All Implemented Interfaces:
Transformer<String>
- Direct Known Subclasses:
Base64Transformer
Abstract transformer that take a String and transform it in another String.
-
Field Summary
Fields inherited from interface software.amazon.lambda.powertools.parameters.transform.Transformer
base64, json -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringapplyTransformation(String value) applyTransformation(String value, Class<String> targetClass) Apply a transformation on the input value (String)
-
Constructor Details
-
BasicTransformer
public BasicTransformer()
-
-
Method Details
-
applyTransformation
public String applyTransformation(String value, Class<String> targetClass) throws TransformationException Description copied from interface:TransformerApply a transformation on the input value (String)- Specified by:
applyTransformationin interfaceTransformer<String>- Parameters:
value- the parameter value to transformtargetClass- class of the target object- Returns:
- a transformed parameter
- Throws:
TransformationException- when a transformation error occurs
-
applyTransformation
-