Class UpdateTemplateArg
- java.lang.Object
-
- com.dropbox.core.v2.fileproperties.UpdateTemplateArg
-
public class UpdateTemplateArg extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateTemplateArg.BuilderBuilder forUpdateTemplateArg.static classUpdateTemplateArg.SerializerFor internal use only.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<PropertyFieldTemplate>addFieldsprotected java.lang.Stringdescriptionprotected java.lang.Stringnameprotected java.lang.StringtemplateId
-
Constructor Summary
Constructors 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 Summary
All 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
-
templateId
protected final java.lang.String templateId
-
name
protected final java.lang.String name
-
description
protected final java.lang.String description
-
addFields
protected final java.util.List<PropertyFieldTemplate> addFields
-
-
Constructor Detail
-
UpdateTemplateArg
public 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 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:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
UpdateTemplateArg
public UpdateTemplateArg(java.lang.String templateId)
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:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Detail
-
getTemplateId
public 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.
-
getName
public 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.
-
getDescription
public 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.
-
getAddFields
public 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.
-
newBuilder
public 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 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:
java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringMultiline
public 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
-
-