Class PropertyGroupUpdate
- java.lang.Object
-
- com.dropbox.core.v2.fileproperties.PropertyGroupUpdate
-
public class PropertyGroupUpdate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyGroupUpdate.BuilderBuilder forPropertyGroupUpdate.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<PropertyField>addOrUpdateFieldsprotected java.util.List<java.lang.String>removeFieldsprotected java.lang.StringtemplateId
-
Constructor Summary
Constructors 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 Summary
All 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
-
templateId
protected final java.lang.String templateId
-
addOrUpdateFields
protected final java.util.List<PropertyField> addOrUpdateFields
-
removeFields
protected final java.util.List<java.lang.String> removeFields
-
-
Constructor Detail
-
PropertyGroupUpdate
public 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 benull.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 anullitem.removeFields- Property fields to remove (by name), provided they exist. Must not contain anullitem.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
PropertyGroupUpdate
public 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 benull.- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getTemplateId
public java.lang.String getTemplateId()
A unique identifier for a property template.- Returns:
- value for this field, never
null.
-
getAddOrUpdateFields
public 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.
-
getRemoveFields
public 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.
-
newBuilder
public 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 benull.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
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
-
-