Class UpdateTemplateArg
java.lang.Object
com.dropbox.core.v2.fileproperties.UpdateTemplateArg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forUpdateTemplateArg.static classFor internal use only. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<PropertyFieldTemplate> protected final Stringprotected final Stringprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionUpdateTemplateArg(String templateId) NoneUpdateTemplateArg(String templateId, String name, String description, List<PropertyFieldTemplate> addFields) UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanProperty field templates to be added to the group template.Description for the new template.getName()A display name for the template.An identifier for template added by SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List).inthashCode()static UpdateTemplateArg.BuildernewBuilder(String templateId) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
templateId
-
name
-
description
-
addFields
-
-
Constructor Details
-
UpdateTemplateArg
public UpdateTemplateArg(@Nonnull String templateId, @Nullable String name, @Nullable String description, @Nullable List<PropertyFieldTemplate> addFields) UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
templateId- An identifier for template added by SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List). Must have length of at least 1, match pattern "(/|ptid:).*", and not benull.name- A display name for the template. template names can be up to 256 bytes.description- Description for the new template. Template descriptions can be up to 1024 bytes.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.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
UpdateTemplateArg
NoneThe default values for unset fields will be used.
- Parameters:
templateId- An identifier for template added by SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List). Must have length of at least 1, match pattern "(/|ptid:).*", and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getTemplateId
An identifier for template added by SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List).- Returns:
- value for this field, never
null.
-
getName
A display name for the template. template names can be up to 256 bytes.- Returns:
- value for this field, or
nullif not present.
-
getDescription
Description for the new template. Template descriptions can be up to 1024 bytes.- Returns:
- value for this field, or
nullif not present.
-
getAddFields
Property field templates to be added to the group template. There can be up to 32 properties in a single template.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
templateId- An identifier for template added by SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List). Must have length of at least 1, match pattern "(/|ptid:).*", and not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-