/** * Sets or replaces all elements for {@link Flow#getConnections() connections} list. * @param elements An iterable of connections elements * @return {@code this} builder for use in a chained invocation */ @JsonProperty("connections") public final Flow.Builder connections(Iterable<? extends Connection> elements) { this.connections.clear(); return addAllConnections(elements); }
/** * Sets or replaces all elements for {@link Flow#getSteps() steps} list. * @param elements An iterable of steps elements * @return {@code this} builder for use in a chained invocation */ @JsonProperty("steps") public final Flow.Builder steps(Iterable<? extends Step> elements) { this.steps.clear(); return addAllSteps(elements); }
/** * Sets or replaces all elements for {@link Flow#getTags() tags} sortedSet. * @param elements An iterable of tags elements * @return {@code this} builder for use in a chained invocation */ @JsonProperty("tags") @JsonDeserialize(contentConverter = StringTrimmingConverter.class) public final Flow.Builder tags(Iterable<String> elements) { this.tags.clear(); return addAllTags(elements); }
String nameValue = instance.getName(); if (nameValue != null) { name(nameValue); addAllSteps(instance.getSteps()); Kind kindValue = instance.getKind(); if (kindValue != null) { kind(kindValue); putAllMetadata(instance.getMetadata()); Optional<String> idOptional = instance.getId(); if (idOptional.isPresent()) { id(idOptional); addAllTags(instance.getTags()); Optional<Scheduler> schedulerOptional = instance.getScheduler(); if (schedulerOptional.isPresent()) { scheduler(schedulerOptional); description(descriptionOptional); addAllConnections(instance.getConnections());
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.WithResourceId} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Flow.Builder createFrom(WithResourceId instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (Flow.Builder) this; }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.WithKind} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Flow.Builder createFrom(WithKind instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (Flow.Builder) this; }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.integration.WithSteps} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Flow.Builder createFrom(WithSteps instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (Flow.Builder) this; }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.WithName} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Flow.Builder createFrom(WithName instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (Flow.Builder) this; }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.WithTags} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Flow.Builder createFrom(WithTags instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (Flow.Builder) this; }
/** * Sets or replaces all mappings from the specified map as entries for the {@link Flow#getMetadata() metadata} map. Nulls are not permitted * @param metadata The entries that will be added to the metadata map * @return {@code this} builder for use in a chained invocation */ @JsonProperty("metadata") public final Flow.Builder metadata(Map<String, ? extends String> metadata) { this.metadata.clear(); optBits |= OPT_BIT_METADATA; return putAllMetadata(metadata); }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.integration.Flow} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Flow.Builder createFrom(Flow instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (Flow.Builder) this; }
/** * Fill a builder with attribute values from the provided {@code io.syndesis.common.model.WithMetadata} instance. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Flow.Builder createFrom(WithMetadata instance) { Objects.requireNonNull(instance, "instance"); from((Object) instance); return (Flow.Builder) this; }