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