Class NamespaceMetadata


  • public class NamespaceMetadata
    extends java.lang.Object
    Properties of a namespace.
    • Constructor Summary

      Constructors 
      Constructor Description
      NamespaceMetadata​(java.lang.String name, java.lang.String namespaceId, NamespaceType namespaceType)
      Properties of a namespace.
      NamespaceMetadata​(java.lang.String name, java.lang.String namespaceId, NamespaceType namespaceType, java.lang.String teamMemberId)
      Properties of a namespace.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getName()
      The name of this namespace.
      java.lang.String getNamespaceId()
      The ID of this namespace.
      NamespaceType getNamespaceType()
      The type of this namespace.
      java.lang.String getTeamMemberId()
      If this is a team member or app folder, the ID of the owning team member.
      int hashCode()  
      java.lang.String toString()  
      java.lang.String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        @Nonnull
        protected final java.lang.String name
      • namespaceId

        @Nonnull
        protected final java.lang.String namespaceId
      • namespaceType

        @Nonnull
        protected final NamespaceType namespaceType
      • teamMemberId

        @Nullable
        protected final java.lang.String teamMemberId
    • Constructor Detail

      • NamespaceMetadata

        public NamespaceMetadata​(@Nonnull
                                 java.lang.String name,
                                 @Nonnull
                                 java.lang.String namespaceId,
                                 @Nonnull
                                 NamespaceType namespaceType,
                                 @Nullable
                                 java.lang.String teamMemberId)
        Properties of a namespace.
        Parameters:
        name - The name of this namespace. Must not be null.
        namespaceId - The ID of this namespace. Must match pattern " [-_0-9a-zA-Z:]+" and not be null.
        namespaceType - The type of this namespace. Must not be null.
        teamMemberId - If this is a team member or app folder, the ID of the owning team member. Otherwise, this field is not present.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • NamespaceMetadata

        public NamespaceMetadata​(@Nonnull
                                 java.lang.String name,
                                 @Nonnull
                                 java.lang.String namespaceId,
                                 @Nonnull
                                 NamespaceType namespaceType)
        Properties of a namespace.

        The default values for unset fields will be used.

        Parameters:
        name - The name of this namespace. Must not be null.
        namespaceId - The ID of this namespace. Must match pattern " [-_0-9a-zA-Z:]+" and not be null.
        namespaceType - The type of this namespace. Must not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getName

        @Nonnull
        public java.lang.String getName()
        The name of this namespace.
        Returns:
        value for this field, never null.
      • getNamespaceId

        @Nonnull
        public java.lang.String getNamespaceId()
        The ID of this namespace.
        Returns:
        value for this field, never null.
      • getNamespaceType

        @Nonnull
        public NamespaceType getNamespaceType()
        The type of this namespace.
        Returns:
        value for this field, never null.
      • getTeamMemberId

        @Nullable
        public java.lang.String getTeamMemberId()
        If this is a team member or app folder, the ID of the owning team member. Otherwise, this field is not present.
        Returns:
        value for this field, or null if not present.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Returns:
        Formatted, multiline String representation of this object