Package com.dropbox.core.v2.team
Class NamespaceMetadata
- java.lang.Object
-
- com.dropbox.core.v2.team.NamespaceMetadata
-
public class NamespaceMetadata extends java.lang.ObjectProperties of a namespace.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringnameprotected java.lang.StringnamespaceIdprotected NamespaceTypenamespaceTypeprotected java.lang.StringteamMemberId
-
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 booleanequals(java.lang.Object obj)java.lang.StringgetName()The name of this namespace.java.lang.StringgetNamespaceId()The ID of this namespace.NamespaceTypegetNamespaceType()The type of this namespace.java.lang.StringgetTeamMemberId()If this is a team member or app folder, the ID of the owning team member.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()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
nullif not present.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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
-
-