/** * Return a new instance of {@link StreamAppDefinition}. * * @param streamName the name of the stream * @return new instance of {@code StreamAppDefinition} */ public StreamAppDefinition build(String streamName) { if (this.label == null) { this.setLabel(this.registeredAppName); } return new StreamAppDefinition(this.registeredAppName, this.label, this.applicationType, streamName, this.properties); } }