public class LambdaDslJsonArray
public au.com.dius.pact.consumer.dsl.PactDslJsonArray getPactDslJsonArray()
public LambdaDslJsonArray object(java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslObject> o)
public LambdaDslJsonArray array(java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> a)
public LambdaDslJsonArray stringValue(java.lang.String value)
public LambdaDslJsonArray stringType(java.lang.String example)
public LambdaDslJsonArray stringMatcher(java.lang.String regex)
Element that must match the regular expression
regex - regular expressionpublic LambdaDslJsonArray stringMatcher(java.lang.String regex, java.lang.String example)
public LambdaDslJsonArray numberValue(java.lang.Number value)
public LambdaDslJsonArray numberType(java.lang.Number example)
public LambdaDslJsonArray integerType()
public LambdaDslJsonArray integerType(java.lang.Long example)
public LambdaDslJsonArray decimalType()
public LambdaDslJsonArray decimalType(java.math.BigDecimal example)
public LambdaDslJsonArray decimalType(java.lang.Double example)
public LambdaDslJsonArray booleanValue(java.lang.Boolean value)
public LambdaDslJsonArray booleanType(java.lang.Boolean example)
public LambdaDslJsonArray date()
Element that must be formatted as an ISO date
public LambdaDslJsonArray date(java.lang.String format)
Element that must match the provided date format
format - date format to matchpublic LambdaDslJsonArray date(java.lang.String format, java.util.Date example)
Element that must match the provided date format
format - date format to matchexample - example date to use for generated valuespublic LambdaDslJsonArray time()
Element that must be an ISO formatted time
public LambdaDslJsonArray time(java.lang.String format)
Element that must match the given time format
format - time format to matchpublic LambdaDslJsonArray time(java.lang.String format, java.util.Date example)
Element that must match the given time format
format - time format to matchexample - example time to use for generated bodiespublic LambdaDslJsonArray timestamp()
Element that must be an ISO formatted timestamp
public LambdaDslJsonArray timestamp(java.lang.String format)
Element that must match the given timestamp format
format - timestamp formatpublic LambdaDslJsonArray timestamp(java.lang.String format, java.util.Date example)
Element that must match the given timestamp format
format - timestamp formatexample - example date and time to use for generated bodiespublic LambdaDslJsonArray timestamp(java.lang.String format, java.time.Instant example)
Element that must match the given timestamp format
format - timestamp formatexample - example date and time to use for generated bodiespublic LambdaDslJsonArray id()
public LambdaDslJsonArray id(java.lang.Long example)
public LambdaDslJsonArray uuid()
public LambdaDslJsonArray uuid(java.lang.String example)
public LambdaDslJsonArray hexValue()
public LambdaDslJsonArray hexValue(java.lang.String value)
public LambdaDslJsonArray ipV4Address()
public LambdaDslJsonArray and(java.lang.Object value, au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
Combine all the matchers using AND
value - Attribute example valuerules - Matching rules to applypublic LambdaDslJsonArray or(java.lang.Object value, au.com.dius.pact.core.model.matchingrules.MatchingRule... rules)
Combine all the matchers using OR
value - Attribute example valuerules - Matching rules to applypublic LambdaDslJsonArray eachLike(java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonBody> nestedObject)
Element that is an array where each item must match the following example
public LambdaDslJsonArray eachLike(au.com.dius.pact.consumer.dsl.PactDslJsonRootValue value)
Element that is an array where each item must match the following example
value - Value that each item in the array must matchpublic LambdaDslJsonArray eachLike(au.com.dius.pact.consumer.dsl.PactDslJsonRootValue value, int numberExamples)
Element that is an array where each item must match the following example
value - Value that each item in the array must matchnumberExamples - Number of examples to generatepublic LambdaDslJsonArray eachLike(int numberExamples, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonBody> nestedObject)
Element that is an array where each item must match the following example
numberExamples - Number of examples to generatepublic LambdaDslJsonArray minArrayLike(java.lang.Integer size, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonBody> nestedObject)
Element that is an array with a minimum size where each item must match the following example
size - minimum size of the arraypublic LambdaDslJsonArray minArrayLike(java.lang.Integer size, int numberExamples, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonBody> nestedObject)
Element that is an array with a minimum size where each item must match the following example
size - minimum size of the arraynumberExamples - number of examples to generatepublic LambdaDslJsonArray maxArrayLike(java.lang.Integer size, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonBody> nestedObject)
Element that is an array with a maximum size where each item must match the following example
size - maximum size of the arraypublic LambdaDslJsonArray maxArrayLike(java.lang.Integer size, int numberExamples, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonBody> nestedObject)
Element that is an array with a maximum size where each item must match the following example
size - maximum size of the arraynumberExamples - number of examples to generatepublic LambdaDslJsonArray minMaxArrayLike(java.lang.Integer minSize, java.lang.Integer maxSize, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonBody> nestedObject)
Element that is an array with a minimum and maximum size where each item must match the following example
minSize - minimum size of the arraymaxSize - maximum size of the arraypublic LambdaDslJsonArray minMaxArrayLike(java.lang.Integer minSize, java.lang.Integer maxSize, int numberExamples, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonBody> nestedObject)
Element that is an array with a minimum and maximum size where each item must match the following example
minSize - minimum size of the arraymaxSize - maximum size of the arraynumberExamples - number of examples to generatepublic LambdaDslJsonArray nullValue()
Adds a null value to the list
public LambdaDslJsonArray eachArrayLike(java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> nestedArray)
public LambdaDslJsonArray eachArrayLike(int numberExamples, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> nestedArray)
public LambdaDslJsonArray eachArrayWithMaxLike(java.lang.Integer size, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> nestedArray)
public LambdaDslJsonArray eachArrayWithMaxLike(int numberExamples, java.lang.Integer size, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> nestedArray)
public LambdaDslJsonArray eachArrayWithMinLike(java.lang.Integer size, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> nestedArray)
public LambdaDslJsonArray eachArrayWithMinLike(int numberExamples, java.lang.Integer size, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> nestedArray)
public LambdaDslJsonArray eachArrayWithMinMaxLike(java.lang.Integer minSize, java.lang.Integer maxSize, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> nestedArray)
public LambdaDslJsonArray eachArrayWithMinMaxLike(java.lang.Integer minSize, java.lang.Integer maxSize, int numberExamples, java.util.function.Consumer<io.pactfoundation.consumer.dsl.LambdaDslJsonArray> nestedArray)
public au.com.dius.pact.consumer.dsl.DslPart build()
public LambdaDslJsonArray dateExpression(java.lang.String expression)
Date value generated from the provided expression. Will use an ISO format.
expression - Date expressionpublic LambdaDslJsonArray dateExpression(java.lang.String expression, java.lang.String format)
Date value generated from the provided expression
expression - Date expressionformat - Date format to use for valuespublic LambdaDslJsonArray timeExpression(java.lang.String expression)
Time value generated from the provided expression. Will use an ISO format.
expression - Time expressionpublic LambdaDslJsonArray timeExpression(java.lang.String expression, java.lang.String format)
Time value generated from the provided expression
expression - Time expressionformat - Time format to use for valuespublic LambdaDslJsonArray datetimeExpression(java.lang.String expression)
Datetime generated from the provided expression. Will use an ISO format.
expression - Datetime expressionpublic LambdaDslJsonArray datetimeExpression(java.lang.String expression, java.lang.String format)
Datetime generated from the provided expression
expression - Datetime expressionformat - Datetime format to use for values