public class PropertyGroupUpdate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PropertyGroupUpdate.Builder
Builder for
PropertyGroupUpdate . |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PropertyField> |
addOrUpdateFields |
protected java.util.List<java.lang.String> |
removeFields |
protected java.lang.String |
templateId |
Constructor and Description |
---|
PropertyGroupUpdate(java.lang.String templateId)
None
|
PropertyGroupUpdate(java.lang.String templateId,
java.util.List<PropertyField> addOrUpdateFields,
java.util.List<java.lang.String> removeFields)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and 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.
|
protected final java.lang.String templateId
protected final java.util.List<PropertyField> addOrUpdateFields
protected final java.util.List<java.lang.String> removeFields
public PropertyGroupUpdate(java.lang.String templateId, java.util.List<PropertyField> addOrUpdateFields, java.util.List<java.lang.String> removeFields)
newBuilder
to create instances of this class without
specifying values for all optional fields.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 null
item.removeFields
- Property fields to remove (by name), provided they
exist. Must not contain a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public PropertyGroupUpdate(java.lang.String templateId)
The default values for unset fields will be used.
templateId
- A unique identifier for a property template. Must have
length of at least 1, match pattern "(/|ptid:).*
", and not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getTemplateId()
null
.public java.util.List<PropertyField> getAddOrUpdateFields()
null
if not present.public java.util.List<java.lang.String> getRemoveFields()
null
if not present.public static PropertyGroupUpdate.Builder newBuilder(java.lang.String templateId)
templateId
- A unique identifier for a property template. Must have
length of at least 1, match pattern "(/|ptid:).*
", and not be
null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.