return numberAttributeConstraintsTypeBuilder.build();
/** * <p> * Specifies the constraints for an attribute of the number type. * </p> * This is a convenience that creates an instance of the {@link NumberAttributeConstraintsType.Builder} avoiding * the need to create one manually via {@link NumberAttributeConstraintsType#builder()}. * * When the {@link Consumer} completes, {@link NumberAttributeConstraintsType.Builder#build()} is called * immediately and its result is passed to {@link #numberAttributeConstraints(NumberAttributeConstraintsType)}. * * @param numberAttributeConstraints * a consumer that will call methods on {@link NumberAttributeConstraintsType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #numberAttributeConstraints(NumberAttributeConstraintsType) */ default Builder numberAttributeConstraints(Consumer<NumberAttributeConstraintsType.Builder> numberAttributeConstraints) { return numberAttributeConstraints(NumberAttributeConstraintsType.builder().applyMutation(numberAttributeConstraints) .build()); }
/** * <p> * Specifies the constraints for an attribute of the number type. * </p> * This is a convenience that creates an instance of the {@link NumberAttributeConstraintsType.Builder} avoiding * the need to create one manually via {@link NumberAttributeConstraintsType#builder()}. * * When the {@link Consumer} completes, {@link NumberAttributeConstraintsType.Builder#build()} is called * immediately and its result is passed to {@link #numberAttributeConstraints(NumberAttributeConstraintsType)}. * * @param numberAttributeConstraints * a consumer that will call methods on {@link NumberAttributeConstraintsType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #numberAttributeConstraints(NumberAttributeConstraintsType) */ default Builder numberAttributeConstraints(Consumer<NumberAttributeConstraintsType.Builder> numberAttributeConstraints) { return numberAttributeConstraints(NumberAttributeConstraintsType.builder().applyMutation(numberAttributeConstraints) .build()); }