Interface Metadata

All Superinterfaces:
Cloneable, HasTimestamps, HasUid

public interface Metadata extends HasUid, HasTimestamps, Cloneable

Metadata -- .

Since:
1.0.0 2023-01-19
Author:
rlichti <rlichti@kaiserpfalz-edv.de>
  • Method Details

    • getSelfLink

      @NotNull default @NotNull String getSelfLink()
      Returns:
      The display name of the resource.
    • removeTrailingSlash

      @NotNull default @NotNull String removeTrailingSlash(@NotNull @NotNull String prefix)
    • getSelfLinkPrefix

      @NotNull default @NotNull String getSelfLinkPrefix()
    • getDeletionTimestamp

      Optional<OffsetDateTime> getDeletionTimestamp()
    • getOwningResource

      Optional<Pointer> getOwningResource()
    • isAnnotated

      default boolean isAnnotated(@NotNull @NotNull String name)
      Checks if there is an annotation for this name.
      Parameters:
      name - the name of the annotation.
      Returns:
      If there is an annotation for this name.
    • getAnnotation

      default Optional<String> getAnnotation(@NotNull @NotNull String name)
      Returns the value of the annotation.
      Parameters:
      name - Annotation name to retrieve
      Returns:
      The value of the annotation.
    • isLabeled

      default boolean isLabeled(String name)
      Checks if there is a label with a special name.
      Parameters:
      name - The name of the label.
      Returns:
      If the label is there.
    • getLabel

      default Optional<String> getLabel(@NotNull @NotNull String name)
      Returns the value of the label.
      Parameters:
      name - Label name to retrieve.
      Returns:
      The value of the label.
    • increaseGeneration

      Metadata increaseGeneration()
    • getKind

      default String getKind()
    • getApiVersion

      default String getApiVersion()
    • getNameSpace

      default String getNameSpace()
    • getName

      default String getName()
    • getIdentity

      Pointer getIdentity()
    • getGeneration

      Integer getGeneration()
    • getOwner

      Pointer getOwner()
    • getAnnotations

      Map<String,String> getAnnotations()
    • getLabels

      Map<String,String> getLabels()