@Override public InputTransformer build() { return new InputTransformer(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof InputTransformer)) { return false; } InputTransformer other = (InputTransformer) obj; return Objects.equals(inputPathsMap(), other.inputPathsMap()) && Objects.equals(inputTemplate(), other.inputTemplate()); }
public final InputTransformer.Builder getInputTransformer() { return inputTransformer != null ? inputTransformer.toBuilder() : null; }
/** * <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()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(inputPathsMap()); hashCode = 31 * hashCode + Objects.hashCode(inputTemplate()); return hashCode; }
/** * <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()); }
@Override public InputTransformer build() { return new InputTransformer(this); }
public final InputTransformer.Builder getInputTransformer() { return inputTransformer != null ? inputTransformer.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof InputTransformer)) { return false; } InputTransformer other = (InputTransformer) obj; return Objects.equals(inputPathsMap(), other.inputPathsMap()) && Objects.equals(inputTemplate(), other.inputTemplate()); }
public InputTransformer unmarshall(JsonUnmarshallerContext context) throws Exception { InputTransformer.Builder inputTransformerBuilder = InputTransformer.builder();
@Override public InputTransformer build() { return new InputTransformer(this); } }
public final InputTransformer.Builder getInputTransformer() { return inputTransformer != null ? inputTransformer.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof InputTransformer)) { return false; } InputTransformer other = (InputTransformer) obj; return Objects.equals(inputPathsMap(), other.inputPathsMap()) && Objects.equals(inputTemplate(), other.inputTemplate()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(inputPathsMap()); hashCode = 31 * hashCode + Objects.hashCode(inputTemplate()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(inputPathsMap()); hashCode = 31 * hashCode + Objects.hashCode(inputTemplate()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("InputTransformer").add("InputPathsMap", inputPathsMap()).add("InputTemplate", inputTemplate()) .build(); }
@Override public String toString() { return ToString.builder("InputTransformer").add("InputPathsMap", inputPathsMap()).add("InputTemplate", inputTemplate()) .build(); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("InputTransformer").add("InputPathsMap", inputPathsMap()).add("InputTemplate", inputTemplate()) .build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "InputPathsMap": return Optional.ofNullable(clazz.cast(inputPathsMap())); case "InputTemplate": return Optional.ofNullable(clazz.cast(inputTemplate())); default: return Optional.empty(); } }