/** * Attribute named 'date' that must be formatted as an ISO date */ public PactDslJsonBody date() { return date("date"); }
/** * Attribute named 'date' that must be formatted as an ISO date */ public LambdaDslObject date() { object.date(); return this; }
/** * Attribute named 'date' that must be formatted as an ISO date */ public PactDslJsonBody date() { return date("date"); }
/** * Attribute that must be formatted as an ISO date * * @param name attribute name */ public LambdaDslObject date(String name) { object.date(name); return this; }
/** * Attribute that must match the provided date format * * @param name attribute date * @param format date format to match */ public LambdaDslObject date(String name, String format) { object.date(name, format); return this; }
/** * Attribute that must match the provided date format * * @param name attribute date * @param format date format to match * @param example example date to use for generated values */ public LambdaDslObject date(String name, String format, Date example) { object.date(name, format, example); return this; }
/** * Attribute that must match the provided date format * * @param name attribute date * @param format date format to match * @param example example date to use for generated values * @param timeZone time zone used for formatting of example date */ public LambdaDslObject date(String name, String format, Date example, TimeZone timeZone) { object.date(name, format, example, timeZone); return this; }
/** * Attribute that must match the provided date format * @param name attribute date * @param format date format to match * @param example example date to use for generated values */ public PactDslJsonBody date(String name, String format, Date example) { return date(name, format, example, TimeZone.getDefault()); }
/** * Attribute that must match the provided date format * * @param name attribute date * @param format date format to match * @param example example date to use for generated values */ public LambdaDslObject date(String name, String format, ZonedDateTime example) { object.date(name, format, Date.from(example.toInstant()), TimeZone.getTimeZone(example.getZone())); return this; }