public class ArrayOfPrimitivesBuilder
@Nullable public java.lang.Integer getMinLength()
public void setMinLength(@Nullable
java.lang.Integer p)
@Nullable public java.lang.Integer getMaxLength()
public void setMaxLength(@Nullable
java.lang.Integer p)
public int getExamples()
public void setExamples(int p)
@Nullable public au.com.dius.pact.core.model.matchingrules.MatchingRule getMatcher()
public void setMatcher(@Nullable
au.com.dius.pact.core.model.matchingrules.MatchingRule p)
@Nullable public java.lang.Object getValue()
public void setValue(@Nullable
java.lang.Object p)
@Nullable public au.com.dius.pact.core.model.generators.Generator getGenerator()
public void setGenerator(@Nullable
au.com.dius.pact.core.model.generators.Generator p)
@NotNull public ArrayOfPrimitivesBuilder withMinLength(int min)
Array must have a minimum length
min - Minimum length@NotNull public ArrayOfPrimitivesBuilder withMaxLength(int max)
Array must have a maximum length
max - Maximum length@NotNull public ArrayOfPrimitivesBuilder withNumberOfExamples(int examples)
Sets the number of examples to generate in the array
examples - Number of examples to generate. It must fall within in min and max bounds that are set@NotNull public ArrayOfPrimitivesBuilder thatMatchRegex(@NotNull java.lang.String regex)
All the values in the array must match the provided regex
regex - Regex to match@NotNull public ArrayOfPrimitivesBuilder thatMatchRegex(@NotNull java.lang.String regex, @NotNull java.lang.String example)
All the values in the array must match the provided regex
regex - Regex to matchexample - Example value to use when generating bodies@NotNull public DslPart build()
Consumes this builder and returns the DslPart that it represents