Package com.dropbox.core.v2.team
Class NamespaceMetadata
java.lang.Object
com.dropbox.core.v2.team.NamespaceMetadata
Properties of a namespace.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Stringprotected final NamespaceTypeprotected final longprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionNamespaceMetadata(String name, String namespaceId, NamespaceType namespaceType) Properties of a namespace.NamespaceMetadata(String name, String namespaceId, NamespaceType namespaceType, String teamMemberId, long quotaLimit) Properties of a namespace. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()The name of this namespace.The ID of this namespace.The type of this namespace.longThe quota limit in bytes for this namespace tree.If this is a team member or app folder, the ID of the owning team member.inthashCode()static NamespaceMetadata.BuildernewBuilder(String name, String namespaceId, NamespaceType namespaceType) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
name
-
namespaceId
-
namespaceType
-
teamMemberId
-
quotaLimit
protected final long quotaLimit
-
-
Constructor Details
-
NamespaceMetadata
public NamespaceMetadata(@Nonnull String name, @Nonnull String namespaceId, @Nonnull NamespaceType namespaceType, @Nullable String teamMemberId, long quotaLimit) Properties of a namespace.Use
newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.team.NamespaceType)to create instances of this class without specifying values for all optional fields.- 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.quotaLimit- The quota limit in bytes for this namespace tree. Only applicable to team folders.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
NamespaceMetadata
public NamespaceMetadata(@Nonnull String name, @Nonnull 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 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getName
The name of this namespace.- Returns:
- value for this field, never
null.
-
getNamespaceId
The ID of this namespace.- Returns:
- value for this field, never
null.
-
getNamespaceType
The type of this namespace.- Returns:
- value for this field, never
null.
-
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.
-
getQuotaLimit
public long getQuotaLimit()The quota limit in bytes for this namespace tree. Only applicable to team folders.- Returns:
- value for this field, or
nullif not present. Defaults to 0L.
-
newBuilder
public static NamespaceMetadata.Builder newBuilder(String name, String namespaceId, NamespaceType namespaceType) Returns a new builder for creating an instance of this class.- 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.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-