annotationTypeSupplier) {
+ this.annotationType = changedValue(annotationTypeSupplier.get());
+ return this;
+ }
+
+ /**
+ * Sets the value for annotationType.
+ *
+ * Generated from setter {@link AnnotationDto#setAnnotationType(TypeName)
+ * setAnnotationType(TypeName annotationType)}
+ *
+ * @param annotationType the type of the annotation
+ * @return current instance of builder
+ */
+ public AnnotationDtoBuilder annotationType(TypeName annotationType) {
+ this.annotationType = changedValue(annotationType);
+ return this;
+ }
+
+ /**
+ * Updates the current value of annotationType in place by applying the given
+ * operator, instead of reading it out, changing it and setting it again. Useful for adjustments
+ * relative to the current value, e.g. trimming, upper-casing, clamping or incrementing, and in
+ * combination with the With copy-and-modify flow. The value must have been set
+ * before (directly or via an existing instance).
+ *
+ *
Generated from setter {@link AnnotationDto#setAnnotationType(TypeName)
+ * setAnnotationType(TypeName annotationType)}
+ *
+ * @param annotationTypeUpdater operator applied to the current value; its result becomes the new
+ * value
+ * @return current instance of builder
+ * @throws IllegalStateException if annotationType has not been set yet
+ */
+ public AnnotationDtoBuilder annotationTypeUpdate(UnaryOperator annotationTypeUpdater) {
+ if (!this.annotationType.isSet()) {
+ throw new IllegalStateException("Cannot update 'annotationType' before it is set");
+ }
+ this.annotationType = changedValue(annotationTypeUpdater.apply(this.annotationType.value()));
+ return this;
+ }
+
+ /**
+ * Sets the value for members.
+ *
+ * Generated from setter {@link AnnotationDto#setMembers(Map) setMembers(Map
+ * members)}
+ *
+ * Example:
+ *
+ * {@code
+ * builder.members(Map.entry("key", "example members"));
+ * }
+ *
+ * @param members the replacement collection (not null)
+ * @return current instance of builder
+ */
+ public AnnotationDtoBuilder members(Entry... members) {
+ this.members = changedValue(Map.ofEntries(members));
+ return this;
+ }
+
+ /**
+ * Sets the value for members using a builder consumer that produces the value.
+ *
+ * Generated from setter {@link AnnotationDto#setMembers(Map) setMembers(Map
+ * members)}
+ *
+ * @param membersBuilderConsumer consumer providing an instance of a builder for the replacement
+ * collection (not null)
+ * @return current instance of builder
+ */
+ public AnnotationDtoBuilder members(
+ Consumer> membersBuilderConsumer) {
+ HashMapBuilder builder =
+ this.members.isSet()
+ ? new HashMapBuilder(this.members.value())
+ : new HashMapBuilder();
+ membersBuilderConsumer.accept(builder);
+ this.members = changedValue(builder.build());
+ return this;
+ }
+
+ /**
+ * Sets the value for members by invoking the provided supplier.
+ *
+ * Generated from setter {@link AnnotationDto#setMembers(Map) setMembers(Map
+ * members)}
+ *
+ * Example:
+ *
+ * {@code
+ * builder.members(() -> Map.of("example members", "example members"));
+ * }
+ *
+ * @param membersSupplier supplier for the replacement collection (not null)
+ * @return current instance of builder
+ */
+ public AnnotationDtoBuilder members(Supplier