/** * <p> * Settings to enable you to provide custom input to a target based on certain event data. You can extract one * or more key-value pairs from the event and then use that data to send customized input to the target. * </p> * This is a convenience that creates an instance of the {@link InputTransformer.Builder} avoiding the need to * create one manually via {@link InputTransformer#builder()}. * * When the {@link Consumer} completes, {@link InputTransformer.Builder#build()} is called immediately and its * result is passed to {@link #inputTransformer(InputTransformer)}. * * @param inputTransformer * a consumer that will call methods on {@link InputTransformer.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #inputTransformer(InputTransformer) */ default Builder inputTransformer(Consumer<InputTransformer.Builder> inputTransformer) { return inputTransformer(InputTransformer.builder().applyMutation(inputTransformer).build()); }
/** * <p> * Settings to enable you to provide custom input to a target based on certain event data. You can extract one * or more key-value pairs from the event and then use that data to send customized input to the target. * </p> * This is a convenience that creates an instance of the {@link InputTransformer.Builder} avoiding the need to * create one manually via {@link InputTransformer#builder()}. * * When the {@link Consumer} completes, {@link InputTransformer.Builder#build()} is called immediately and its * result is passed to {@link #inputTransformer(InputTransformer)}. * * @param inputTransformer * a consumer that will call methods on {@link InputTransformer.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #inputTransformer(InputTransformer) */ default Builder inputTransformer(Consumer<InputTransformer.Builder> inputTransformer) { return inputTransformer(InputTransformer.builder().applyMutation(inputTransformer).build()); }
/** * <p> * Settings to enable you to provide custom input to a target based on certain event data. You can extract one * or more key-value pairs from the event and then use that data to send customized input to the target. * </p> * This is a convenience that creates an instance of the {@link InputTransformer.Builder} avoiding the need to * create one manually via {@link InputTransformer#builder()}. * * When the {@link Consumer} completes, {@link InputTransformer.Builder#build()} is called immediately and its * result is passed to {@link #inputTransformer(InputTransformer)}. * * @param inputTransformer * a consumer that will call methods on {@link InputTransformer.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #inputTransformer(InputTransformer) */ default Builder inputTransformer(Consumer<InputTransformer.Builder> inputTransformer) { return inputTransformer(InputTransformer.builder().applyMutation(inputTransformer).build()); }
public InputTransformer unmarshall(JsonUnmarshallerContext context) throws Exception { InputTransformer.Builder inputTransformerBuilder = InputTransformer.builder();