/** * Sets the name of a flowlet. * @param name Name of the flowlet. * @return An instance of {@link DescriptionSetter} */ public DescriptionSetter setName(String name) { Preconditions.checkArgument(name != null, "Name cannot be null."); Builder.this.name = name; return new DescriptionSetter(); } }
@Override public FlowletSpecification configure() { return FlowletSpecification.Builder.with() .setName(getName()) .setDescription(getDescription()) .build(); }