Class UpdateTemplateArg.Builder
- java.lang.Object
- 
- com.dropbox.core.v2.fileproperties.UpdateTemplateArg.Builder
 
- 
- Enclosing class:
- UpdateTemplateArg
 
 public static class UpdateTemplateArg.Builder extends java.lang.ObjectBuilder forUpdateTemplateArg.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.List<PropertyFieldTemplate>addFieldsprotected java.lang.Stringdescriptionprotected java.lang.Stringnameprotected java.lang.StringtemplateId
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder(java.lang.String templateId)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateTemplateArgbuild()Builds an instance ofUpdateTemplateArgconfigured with this builder's valuesUpdateTemplateArg.BuilderwithAddFields(java.util.List<PropertyFieldTemplate> addFields)Set value for optional field.UpdateTemplateArg.BuilderwithDescription(java.lang.String description)Set value for optional field.UpdateTemplateArg.BuilderwithName(java.lang.String name)Set value for optional field.
 
- 
- 
- 
Field Detail- 
templateIdprotected final java.lang.String templateId 
 - 
nameprotected java.lang.String name 
 - 
descriptionprotected java.lang.String description 
 - 
addFieldsprotected java.util.List<PropertyFieldTemplate> addFields 
 
- 
 - 
Method Detail- 
withNamepublic UpdateTemplateArg.Builder withName(java.lang.String name) Set value for optional field.- Parameters:
- name- A display name for the template. template names can be up to 256 bytes.
- Returns:
- this builder
 
 - 
withDescriptionpublic UpdateTemplateArg.Builder withDescription(java.lang.String description) Set value for optional field.- Parameters:
- description- Description for the new template. Template descriptions can be up to 1024 bytes.
- Returns:
- this builder
 
 - 
withAddFieldspublic UpdateTemplateArg.Builder withAddFields(java.util.List<PropertyFieldTemplate> addFields) Set value for optional field.- Parameters:
- addFields- Property field templates to be added to the group template. There can be up to 32 properties in a single template. Must not contain a- nullitem.
- Returns:
- this builder
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
buildpublic UpdateTemplateArg build() Builds an instance ofUpdateTemplateArgconfigured with this builder's values- Returns:
- new instance of UpdateTemplateArg
 
 
- 
 
-