public class CreateMetadataTemplateRequestBody extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateMetadataTemplateRequestBody.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
copyInstanceOnItemCopy
Whether or not to copy any metadata attached to a file or folder when it is copied.
|
protected String |
displayName
The display name of the template.
|
protected List<CreateMetadataTemplateRequestBodyFieldsField> |
fields
An ordered list of template fields which are part of the template.
|
protected Boolean |
hidden
Defines if this template is visible in the Box web app UI, or if it is purely intended for
usage through the API.
|
protected String |
scope
The scope of the metadata template to create.
|
protected String |
templateKey
A unique identifier for the template.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
protected |
CreateMetadataTemplateRequestBody(CreateMetadataTemplateRequestBody.Builder builder) |
|
CreateMetadataTemplateRequestBody(String scope,
String displayName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Boolean |
getCopyInstanceOnItemCopy() |
String |
getDisplayName() |
List<CreateMetadataTemplateRequestBodyFieldsField> |
getFields() |
Boolean |
getHidden() |
String |
getScope() |
String |
getTemplateKey() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final String scope
This value needs to be set to `enterprise`, as `global` scopes can not be created by applications.
protected String templateKey
When not provided, the API will create a unique `templateKey` based on the value of the `displayName`.
protected final String displayName
protected Boolean hidden
protected List<CreateMetadataTemplateRequestBodyFieldsField> fields
protected Boolean copyInstanceOnItemCopy
public CreateMetadataTemplateRequestBody(String scope, String displayName)
protected CreateMetadataTemplateRequestBody(CreateMetadataTemplateRequestBody.Builder builder)
public String getTemplateKey()
public String getDisplayName()
public List<CreateMetadataTemplateRequestBodyFieldsField> getFields()
public Boolean getCopyInstanceOnItemCopy()