All Downloads are FREE. Search and download functionalities are using the official Maven repository.

marquez.service.models.Namespace Maven / Gradle / Ivy

There is a newer version: 0.49.0
Show newest version
/*
 * Copyright 2018-2023 contributors to the Marquez project
 * SPDX-License-Identifier: Apache-2.0
 */

package marquez.service.models;

import java.time.Instant;
import java.util.Optional;
import javax.annotation.Nullable;
import lombok.NonNull;
import lombok.Value;
import marquez.common.models.NamespaceName;
import marquez.common.models.OwnerName;

@Value
public class Namespace {
  @NonNull NamespaceName name;
  @NonNull Instant createdAt;
  @NonNull Instant updatedAt;
  @NonNull OwnerName ownerName;
  @Nullable String description;
  @NonNull Boolean isHidden;

  public Optional getDescription() {
    return Optional.ofNullable(description);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy