public static class UpdateTemplateArg.Builder
extends java.lang.Object
UpdateTemplateArg
.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 |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.lang.String templateId) |
Modifier and Type | Method and Description |
---|---|
UpdateTemplateArg |
build()
Builds an instance of
UpdateTemplateArg configured with this
builder's values |
UpdateTemplateArg.Builder |
withAddFields(java.util.List<PropertyFieldTemplate> addFields)
Set value for optional field.
|
UpdateTemplateArg.Builder |
withDescription(java.lang.String description)
Set value for optional field.
|
UpdateTemplateArg.Builder |
withName(java.lang.String name)
Set value for optional field.
|
protected final java.lang.String templateId
protected java.lang.String name
protected java.lang.String description
protected java.util.List<PropertyFieldTemplate> addFields
public UpdateTemplateArg.Builder withName(java.lang.String name)
name
- A display name for the template. template names can be
up to 256 bytes.public UpdateTemplateArg.Builder withDescription(java.lang.String description)
description
- Description for the new template. Template
descriptions can be up to 1024 bytes.public UpdateTemplateArg.Builder withAddFields(java.util.List<PropertyFieldTemplate> addFields)
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 build()
UpdateTemplateArg
configured with this
builder's valuesUpdateTemplateArg