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