@Test public void serializesCorrectly() throws Exception { SecretRetrievalCursor cursor = SecretRetrievalCursor.of("test-secret", 1234567); assertThat(asJson(cursor)) .isEqualTo("{\"name\":\"test-secret\",\"expiry\":1234567}"); }
@JsonCreator public static SecretRetrievalCursor of( @JsonProperty("name") String name, @JsonProperty("expiry") long expiry) { return new AutoValue_SecretRetrievalCursor(name, expiry); }
SecretRetrievalCursor { @JsonCreator public static SecretRetrievalCursor of( @JsonProperty("name") String name, @JsonProperty("expiry") long expiry) { return new AutoValue_SecretRetrievalCursor(name, expiry); } }
SecretRetrievalCursor { @JsonCreator public static SecretRetrievalCursor of( @JsonProperty("name") String name, @JsonProperty("expiry") long expiry) { return new AutoValue_SecretRetrievalCursor(name, expiry); }  }
SecretRetrievalCursor { @JsonCreator public static SecretRetrievalCursor of( @JsonProperty("name") String name, @JsonProperty("expiry") long expiry) { return new AutoValue_SecretRetrievalCursor(name, expiry); }  @JsonCreator static SecretRetrievalCursor of(
      @JsonProperty("name") String name,
      @JsonProperty("expiry") long expiry); @Nullable static SecretRetrievalCursor fromUrlEncodedString(@Nullable String encodedJson); @Nullable static String toUrlEncodedString(@Nullable SecretRetrievalCursor cursor); @Nullable static String toString(@Nullable SecretRetrievalCursor cursor); @JsonProperty abstract String name(); @JsonProperty abstract Long expiry(); }
SecretRetrievalCursor { @JsonCreator public static SecretRetrievalCursor of( @JsonProperty("name") String name, @JsonProperty("expiry") long expiry) { return new AutoValue_SecretRetrievalCursor(name, expiry); }  @JsonCreator static SecretRetrievalCursor of(
      @JsonProperty("name") String name,
      @JsonProperty("expiry") long expiry); @Nullable static SecretRetrievalCursor fromUrlEncodedString(@Nullable String encodedJson); @Nullable static String toUrlEncodedString(@Nullable SecretRetrievalCursor cursor); @Nullable static String toString(@Nullable SecretRetrievalCursor cursor); @JsonProperty abstract String name(); @JsonProperty abstract Long expiry();  }