Class UpdateTemplateArg
- java.lang.Object
- 
- com.dropbox.core.v2.fileproperties.UpdateTemplateArg
 
- 
 public class UpdateTemplateArg extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUpdateTemplateArg.BuilderBuilder forUpdateTemplateArg.static classUpdateTemplateArg.SerializerFor internal use only.
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.List<PropertyFieldTemplate>addFieldsprotected java.lang.Stringdescriptionprotected java.lang.Stringnameprotected java.lang.StringtemplateId
 - 
Constructor SummaryConstructors Constructor Description UpdateTemplateArg(java.lang.String templateId)NoneUpdateTemplateArg(java.lang.String templateId, java.lang.String name, java.lang.String description, java.util.List<PropertyFieldTemplate> addFields)UsenewBuilder(java.lang.String)to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<PropertyFieldTemplate>getAddFields()Property field templates to be added to the group template.java.lang.StringgetDescription()Description for the new template.java.lang.StringgetName()A display name for the template.java.lang.StringgetTemplateId()An identifier for template added by SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List).inthashCode()static UpdateTemplateArg.BuildernewBuilder(java.lang.String templateId)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
templateIdprotected final java.lang.String templateId 
 - 
nameprotected final java.lang.String name 
 - 
descriptionprotected final java.lang.String description 
 - 
addFieldsprotected final java.util.List<PropertyFieldTemplate> addFields 
 
- 
 - 
Constructor Detail- 
UpdateTemplateArgpublic UpdateTemplateArg(java.lang.String templateId, java.lang.String name, java.lang.String description, java.util.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 See- DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)or- DbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List). Must have length of at least 1, match pattern "- (/|ptid:).*", and not be- null.
- 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 a- nullitem.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
UpdateTemplateArgpublic UpdateTemplateArg(java.lang.String templateId) NoneThe default values for unset fields will be used. - Parameters:
- templateId- An identifier for template added by See- DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)or- DbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List). Must have length of at least 1, match pattern "- (/|ptid:).*", and not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getTemplateIdpublic java.lang.String getTemplateId() An identifier for template added by SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List).- Returns:
- value for this field, never null.
 
 - 
getNamepublic java.lang.String getName() A display name for the template. template names can be up to 256 bytes.- Returns:
- value for this field, or nullif not present.
 
 - 
getDescriptionpublic java.lang.String getDescription() Description for the new template. Template descriptions can be up to 1024 bytes.- Returns:
- value for this field, or nullif not present.
 
 - 
getAddFieldspublic java.util.List<PropertyFieldTemplate> 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.
 
 - 
newBuilderpublic static UpdateTemplateArg.Builder newBuilder(java.lang.String templateId) Returns a new builder for creating an instance of this class.- Parameters:
- templateId- An identifier for template added by See- DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)or- DbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List). Must have length of at least 1, match pattern "- (/|ptid:).*", and not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String 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
 
 
- 
 
-