Skip to content

Commit

Permalink
[PLAT-14601]Support restore to Point in time part 2 - Backup/Restore/…
Browse files Browse the repository at this point in the history
…Restore preflight related changes - Add JSON Property

Summary: Added JSON Property

Test Plan: Tested manually

Reviewers: vkumar

Reviewed By: vkumar

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D37608
  • Loading branch information
haikarthikssk committed Aug 28, 2024
1 parent 6994f31 commit bfd17b5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashSet;
import java.util.Map;
Expand All @@ -20,7 +21,9 @@ public class KeyspaceTables {
private String keyspace;

@JsonCreator
public KeyspaceTables(Set<String> tableNames, String keyspace) {
public KeyspaceTables(
@JsonProperty(value = "tableNames", required = false) Set<String> tableNames,
@JsonProperty(value = "keyspace", required = true) String keyspace) {
if (CollectionUtils.isNotEmpty(tableNames)) {
this.tableNames = new HashSet<>(tableNames);
}
Expand Down

0 comments on commit bfd17b5

Please sign in to comment.