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 class
PropertyGroupUpdate.Builder
Builder forPropertyGroupUpdate
.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<PropertyField>
addOrUpdateFields
protected java.util.List<java.lang.String>
removeFields
protected java.lang.String
templateId
-
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 boolean
equals(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.String
getTemplateId()
A unique identifier for a property template.int
hashCode()
static PropertyGroupUpdate.Builder
newBuilder(java.lang.String templateId)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
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 anull
item.removeFields
- Property fields to remove (by name), provided they exist. Must not contain anull
item.- 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
null
if 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
null
if 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-