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 class
UpdateTemplateArg.Builder
Builder forUpdateTemplateArg
.static class
UpdateTemplateArg.Serializer
For internal use only.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<PropertyFieldTemplate>
addFields
protected java.lang.String
description
protected java.lang.String
name
protected java.lang.String
templateId
-
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 boolean
equals(java.lang.Object obj)
java.util.List<PropertyFieldTemplate>
getAddFields()
Property field templates to be added to the group template.java.lang.String
getDescription()
Description for the new template.java.lang.String
getName()
A display name for the template.java.lang.String
getTemplateId()
An identifier for template added by SeeDbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)
orDbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List)
.int
hashCode()
static UpdateTemplateArg.Builder
newBuilder(java.lang.String templateId)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
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 anull
item.- 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
null
if 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
null
if 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
null
if 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-