public class UpdateTemplateArg
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UpdateTemplateArg.Builder
Builder for
UpdateTemplateArg . |
static class |
UpdateTemplateArg.Serializer
For internal use only.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PropertyFieldTemplate> |
addFields |
protected java.lang.String |
description |
protected java.lang.String |
name |
protected java.lang.String |
templateId |
Constructor and Description |
---|
UpdateTemplateArg(java.lang.String templateId)
None
|
UpdateTemplateArg(java.lang.String templateId,
java.lang.String name,
java.lang.String description,
java.util.List<PropertyFieldTemplate> addFields)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and 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 See
DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List) or
DbxTeamFilePropertiesRequests.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.
|
protected final java.lang.String templateId
protected final java.lang.String name
protected final java.lang.String description
protected final java.util.List<PropertyFieldTemplate> addFields
public UpdateTemplateArg(java.lang.String templateId, java.lang.String name, java.lang.String description, java.util.List<PropertyFieldTemplate> addFields)
newBuilder
to create instances of this class without
specifying values for all optional fields.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 null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UpdateTemplateArg(java.lang.String templateId)
The default values for unset fields will be used.
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.lang.String getTemplateId()
DbxUserFilePropertiesRequests.templatesAddForUser(String,String,List)
or
DbxTeamFilePropertiesRequests.templatesAddForTeam(String,String,List)
.null
.public java.lang.String getName()
null
if not present.public java.lang.String getDescription()
null
if not present.public java.util.List<PropertyFieldTemplate> getAddFields()
null
if not present.public static UpdateTemplateArg.Builder newBuilder(java.lang.String templateId)
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.