class Secret {

  public String getSecret() {
    if (secret == null) {
      secret = checkNotNull(encryptedSecret.decrypt());
    }
    return secret;
  }

  public  Secret(long id,
                String name,
                @Nullable String description,
                LazyString encryptedSecret,
                String checksum,
                ApiDate createdAt,
                @Nullable String createdBy,
                ApiDate updatedAt,
                @Nullable String updatedBy,
                @Nullable Map<String, String> metadata,
                @Nullable String type,
                @Nullable Map<String, String> generationOptions,
                long expiry,
                @Nullable Long version,
                @Nullable ApiDate contentCreatedAt,
                @Nullable String contentCreatedBy);

}