public class NamespaceMetadata
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected java.lang.String |
namespaceId |
protected NamespaceType |
namespaceType |
protected java.lang.String |
teamMemberId |
Constructor and 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.
|
Modifier and Type | Method and 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.
|
protected final java.lang.String name
protected final java.lang.String namespaceId
protected final NamespaceType namespaceType
protected final java.lang.String teamMemberId
public NamespaceMetadata(java.lang.String name, java.lang.String namespaceId, NamespaceType namespaceType, java.lang.String teamMemberId)
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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public NamespaceMetadata(java.lang.String name, java.lang.String namespaceId, NamespaceType namespaceType)
The default values for unset fields will be used.
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getName()
null
.public java.lang.String getNamespaceId()
null
.public NamespaceType getNamespaceType()
null
.public java.lang.String getTeamMemberId()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.