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