public static class PropertyGroupUpdate.Builder
extends java.lang.Object
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 |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String templateId) |
Modifier and Type | Method and Description |
---|---|
PropertyGroupUpdate |
build()
Builds an instance of
PropertyGroupUpdate configured with
this builder's values |
PropertyGroupUpdate.Builder |
withAddOrUpdateFields(java.util.List<PropertyField> addOrUpdateFields)
Set value for optional field.
|
PropertyGroupUpdate.Builder |
withRemoveFields(java.util.List<java.lang.String> removeFields)
Set value for optional field.
|
protected final java.lang.String templateId
protected java.util.List<PropertyField> addOrUpdateFields
protected java.util.List<java.lang.String> removeFields
public PropertyGroupUpdate.Builder withAddOrUpdateFields(java.util.List<PropertyField> addOrUpdateFields)
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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public PropertyGroupUpdate.Builder withRemoveFields(java.util.List<java.lang.String> removeFields)
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 build()
PropertyGroupUpdate
configured with
this builder's valuesPropertyGroupUpdate