Class PropertyGroupUpdate
- java.lang.Object
- 
- com.dropbox.core.v2.fileproperties.PropertyGroupUpdate
 
- 
 public class PropertyGroupUpdate extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPropertyGroupUpdate.BuilderBuilder forPropertyGroupUpdate.
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.List<PropertyField>addOrUpdateFieldsprotected java.util.List<java.lang.String>removeFieldsprotected java.lang.StringtemplateId
 - 
Constructor SummaryConstructors Constructor Description PropertyGroupUpdate(java.lang.String templateId)NonePropertyGroupUpdate(java.lang.String templateId, java.util.List<PropertyField> addOrUpdateFields, java.util.List<java.lang.String> removeFields)UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<PropertyField>getAddOrUpdateFields()Property fields to update.java.util.List<java.lang.String>getRemoveFields()Property fields to remove (by name), provided they exist.java.lang.StringgetTemplateId()A unique identifier for a property template.inthashCode()static PropertyGroupUpdate.BuildernewBuilder(java.lang.String templateId)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
templateIdprotected final java.lang.String templateId 
 - 
addOrUpdateFieldsprotected final java.util.List<PropertyField> addOrUpdateFields 
 - 
removeFieldsprotected final java.util.List<java.lang.String> removeFields 
 
- 
 - 
Constructor Detail- 
PropertyGroupUpdatepublic PropertyGroupUpdate(java.lang.String templateId, java.util.List<PropertyField> addOrUpdateFields, java.util.List<java.lang.String> removeFields)UsenewBuilder(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 be- null.
- addOrUpdateFields- Property fields to update. If the property field already exists, it is updated. If the property field doesn't exist, the property group is added. Must not contain a- nullitem.
- removeFields- Property fields to remove (by name), provided they exist. Must not contain a- nullitem.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
PropertyGroupUpdatepublic PropertyGroupUpdate(java.lang.String templateId) NoneThe 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 be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getTemplateIdpublic java.lang.String getTemplateId() A unique identifier for a property template.- Returns:
- value for this field, never null.
 
 - 
getAddOrUpdateFieldspublic java.util.List<PropertyField> getAddOrUpdateFields() Property fields to update. If the property field already exists, it is updated. If the property field doesn't exist, the property group is added.- Returns:
- value for this field, or nullif not present.
 
 - 
getRemoveFieldspublic java.util.List<java.lang.String> getRemoveFields() Property fields to remove (by name), provided they exist.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static PropertyGroupUpdate.Builder newBuilder(java.lang.String templateId) 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 be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic 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
 
 
- 
 
-