Package com.dropbox.core.v2.team
Class NamespaceMetadata
- java.lang.Object
-
- com.dropbox.core.v2.team.NamespaceMetadata
-
public class NamespaceMetadata extends java.lang.Object
Properties of a namespace.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
protected java.lang.String
namespaceId
protected NamespaceType
namespaceType
protected java.lang.String
teamMemberId
-
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.
-
-
-
Field Detail
-
name
protected final java.lang.String name
-
namespaceId
protected final java.lang.String namespaceId
-
namespaceType
protected final NamespaceType namespaceType
-
teamMemberId
protected final java.lang.String teamMemberId
-
-
Constructor Detail
-
NamespaceMetadata
public NamespaceMetadata(java.lang.String name, java.lang.String namespaceId, NamespaceType namespaceType, java.lang.String teamMemberId)
Properties of a namespace.- Parameters:
name
- The name of this namespace. Must not benull
.namespaceId
- The ID of this namespace. Must match pattern "[-_0-9a-zA-Z:]+
" and not benull
.namespaceType
- The type of this namespace. Must not benull
.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(java.lang.String name, java.lang.String namespaceId, NamespaceType namespaceType)
Properties of a namespace.The default values for unset fields will be used.
- Parameters:
name
- The name of this namespace. Must not benull
.namespaceId
- The ID of this namespace. Must match pattern "[-_0-9a-zA-Z:]+
" and not benull
.namespaceType
- The type of this namespace. Must not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of this namespace.- Returns:
- value for this field, never
null
.
-
getNamespaceId
public java.lang.String getNamespaceId()
The ID of this namespace.- Returns:
- value for this field, never
null
.
-
getNamespaceType
public NamespaceType getNamespaceType()
The type of this namespace.- Returns:
- value for this field, never
null
.
-
getTeamMemberId
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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
-
-