Class PropertyGroupUpdate
java.lang.Object
com.dropbox.core.v2.fileproperties.PropertyGroupUpdate
Property routes
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPropertyGroupUpdate(String templateId) Property routesPropertyGroupUpdate(String templateId, List<PropertyField> addOrUpdateFields, List<String> removeFields) Property routes -
Method Summary
Modifier and TypeMethodDescriptionbooleanProperty fields to update.Property fields to remove (by name), provided they exist.A unique identifier for a property template.inthashCode()static PropertyGroupUpdate.BuildernewBuilder(String templateId) 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
-
templateId
-
addOrUpdateFields
-
removeFields
-
-
Constructor Details
-
PropertyGroupUpdate
public PropertyGroupUpdate(@Nonnull String templateId, @Nullable List<PropertyField> addOrUpdateFields, @Nullable List<String> removeFields) Property routesUse
newBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
templateId- A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and not benull.addOrUpdateFields- Property fields to update. If the property field already exists, it is updated. If the property field doesn't exist, it will be created as long as the property group already exists. Must not contain anullitem.removeFields- Property fields to remove (by name), provided they exist. Must not contain anullitem.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
PropertyGroupUpdate
Property routesThe default values for unset fields will be used.
- Parameters:
templateId- A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getTemplateId
A unique identifier for a property template.- Returns:
- value for this field, never
null.
-
getAddOrUpdateFields
Property fields to update. If the property field already exists, it is updated. If the property field doesn't exist, it will be created as long as the property group already exists.- Returns:
- value for this field, or
nullif not present.
-
getRemoveFields
Property fields to remove (by name), provided they exist.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
templateId- A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and 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
-