Class UpdateTemplateArg.Builder
java.lang.Object
com.dropbox.core.v2.fileproperties.UpdateTemplateArg.Builder
- Enclosing class:
UpdateTemplateArg
Builder for
UpdateTemplateArg.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<PropertyFieldTemplate> protected Stringprotected Stringprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofUpdateTemplateArgconfigured with this builder's valueswithAddFields(List<PropertyFieldTemplate> addFields) Set value for optional field.withDescription(String description) Set value for optional field.Set value for optional field.
-
Field Details
-
templateId
-
name
-
description
-
addFields
-
-
Constructor Details
-
Builder
-
-
Method Details
-
withName
Set value for optional field.- Parameters:
name- A display name for the template. template names can be up to 256 bytes.- Returns:
- this builder
-
withDescription
Set value for optional field.- Parameters:
description- Description for the new template. Template descriptions can be up to 1024 bytes.- Returns:
- this builder
-
withAddFields
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 anullitem.- Returns:
- this builder
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
build
Builds an instance ofUpdateTemplateArgconfigured with this builder's values- Returns:
- new instance of
UpdateTemplateArg
-