/** * @param json Specifies an arbitrary JSON document that constitutes the body of the message being sent. * The size of the message allowed in one message is configurable by your cloud provider. Consult * your cloud provider documentation to learn the valid range. */ public Builder body(String json) { checkNotNull(json, "body required"); this.body = new JsonBall(json).toString(); return self(); }
public JsonBall(String value) { this.value = quoteStringIfNotNumberOrBoolean(checkNotNull(value, "value")); }
@Override protected JsonBall createJsonLiteralFromRawJson(String json) { return new JsonBall(json); }
public static Date fromOhaiTime(JsonBall ohaiDate) { return new Date(Long.parseLong(checkNotNull(ohaiDate, "ohaiDate").toString().replaceAll("\\.[0-9]*$", ""))); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; DatabagItem other = (DatabagItem) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; }
@Override protected JsonBall createJsonLiteralFromRawJson(String json) { return new JsonBall(json); }
public static Date fromOhaiTime(JsonBall ohaiDate) { return new Date(Long.parseLong(checkNotNull(ohaiDate, "ohaiDate").toString().replaceAll("\\.[0-9]*$", ""))); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; DatabagItem other = (DatabagItem) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; }
@Override protected JsonBall createJsonLiteralFromRawJson(String json) { return new JsonBall(json); }
public static Date fromOhaiTime(JsonBall ohaiDate) { return new Date(Long.parseLong(checkNotNull(ohaiDate, "ohaiDate").toString().replaceAll("\\.[0-9]*$", ""))); }
public JsonBall(String value) { this.value = quoteStringIfNotNumberOrBoolean(checkNotNull(value, "value")); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; DatabagItem other = (DatabagItem) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; }
@Override protected JsonBall createJsonLiteralFromRawJson(String json) { return new JsonBall(json); }
public static Date fromOhaiTime(JsonBall ohaiDate) { return new Date(Long.parseLong(checkNotNull(ohaiDate, "ohaiDate").toString().replaceAll("\\.[0-9]*$", ""))); }
public JsonBall(String value) { this.value = quoteStringIfNotNumberOrBoolean(checkNotNull(value, "value")); }