/** * Attribute that is an array with a maximum size where each item must match the following example * @param name field name * @param size maximum size of the array */ @Override public PactDslJsonBody maxArrayLike(String name, Integer size) { return maxArrayLike(name, size, 1); }
/** * Attribute that is an array of values with a maximum size that are not objects where each item must match the following example * @param name field name * @param size maximum size of the array * @param value Value to use to match each item */ public PactDslJsonBody maxArrayLike(String name, Integer size, PactDslJsonRootValue value) { return maxArrayLike(name, size, value, 1); }
/** * Attribute that is an array of values with a maximum size that are not objects where each item must match the following example * @param name field name * @param size maximum size of the array * @param value Value to use to match each item */ public PactDslJsonBody maxArrayLike(String name, Integer size, PactDslJsonRootValue value) { return maxArrayLike(name, size, value, 1); }
/** * Attribute that is an array with a maximum size where each item must match the following example * @param name field name * @param size maximum size of the array */ @Override public PactDslJsonBody maxArrayLike(String name, Integer size) { return maxArrayLike(name, size, 1); }
/** * Attribute that is an array of values with a maximum size that are not objects where each item must match the * following example * @param name field name * @param size maximum size of the array * @param value Value to use to match each item * @param numberExamples number of examples to generate */ public LambdaDslObject maxArrayLike(String name, Integer size, PactDslJsonRootValue value, int numberExamples) { object.maxArrayLike(name, size, value, numberExamples); return this; }
/** * Attribute that is an array with a maximum size where each item must match the following example * * @param name field name * @param size maximum size of the array */ public LambdaDslObject maxArrayLike(String name, Integer size, Consumer<LambdaDslObject> nestedObject) { final PactDslJsonBody maxArrayLike = object.maxArrayLike(name, size); final LambdaDslObject dslObject = new LambdaDslObject(maxArrayLike); nestedObject.accept(dslObject); maxArrayLike.closeArray(); return this; }
/** * Attribute that is an array with a maximum size where each item must match the following example * * @param name field name * @param size maximum size of the array * @param numberExamples number of examples to generate */ public LambdaDslObject maxArrayLike(String name, Integer size, int numberExamples, Consumer<LambdaDslObject> nestedObject) { final PactDslJsonBody maxArrayLike = object.maxArrayLike(name, size, numberExamples); final LambdaDslObject dslObject = new LambdaDslObject(maxArrayLike); nestedObject.accept(dslObject); maxArrayLike.closeArray(); return this; }