Skip to content

Commit

Permalink
Add models
Browse files Browse the repository at this point in the history
  • Loading branch information
samanehsan committed Feb 29, 2024
1 parent 6c996e9 commit 8ee3aac
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package bio.terra.externalcreds.models;

import java.sql.Timestamp;
import org.immutables.value.Value;

@Value.Immutable
public interface DistributedLock {
String getLockName();

String getUserId();

Timestamp getExpiresAt();

// class Builder extends ImmutableDistributedLock.Builder {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package bio.terra.externalcreds.models;

import java.sql.Timestamp;
import java.util.Optional;
import org.immutables.value.Value;

@Value.Immutable
public interface FenceAccountKey {
Integer getId();

Optional<String> getKeyJson();

Timestamp getExpiresAt();

// class Builder extends ImmutableFenceAccountKey.Builder {}
}

0 comments on commit 8ee3aac

Please sign in to comment.