public final class AssetDraftBuilder extends Base
Modifier and Type | Method and Description |
---|---|
AssetDraftDsl |
build()
Creates a new instance of
AssetDraftDsl with the values of this builder. |
Asset |
buildAsset()
Deprecated.
|
T |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
T |
description(LocalizedString description)
Sets the
description property of this builder. |
CustomFieldsDraft |
getCustom() |
LocalizedString |
getDescription() |
String |
getKey() |
LocalizedString |
getName() |
List<AssetSource> |
getSources() |
Set<String> |
getTags() |
T |
key(String key)
Sets the
key property of this builder. |
T |
name(LocalizedString name)
Sets the
name property of this builder. |
static AssetDraftBuilder |
of(Asset template)
Creates a new object initialized with the fields of the template parameter.
|
static AssetDraftBuilder |
of(AssetDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static AssetDraftBuilder |
of(List<AssetSource> sources,
LocalizedString name)
Creates a new object initialized with the given values.
|
T |
plusSources(AssetSource sources)
Adds
sources parameter to the sources list property of this builder. |
T |
plusSources(List<AssetSource> sources)
Concatenate
sources parameter to the sources list property of this builder. |
T |
plusTags(Set<String> tags)
Concatenate
tags parameter to the tags set property of this builder. |
T |
plusTags(String tags)
Adds
tags parameter to the tags set property of this builder. |
T |
sources(List<AssetSource> sources)
Sets the
sources property of this builder. |
T |
tags(Set<String> tags)
Sets the
tags property of this builder. |
AssetDraftBuilder |
tags(String tag,
String... moreTags) |
@Deprecated public Asset buildAsset()
public AssetDraftBuilder tags(String tag, String... moreTags)
public T custom(@Nullable CustomFieldsDraft custom)
custom
property of this builder.custom
- the value for AssetDraft.getCustom()
public T description(@Nullable LocalizedString description)
description
property of this builder.description
- the value for AssetDraft.getDescription()
public T key(String key)
key
property of this builder.key
- the value for AssetDraft.getKey()
public T name(LocalizedString name)
name
property of this builder.name
- the value for AssetDraft.getName()
public T sources(List<AssetSource> sources)
sources
property of this builder.sources
- the value for AssetDraft.getSources()
public T tags(@Nullable Set<String> tags)
tags
property of this builder.tags
- the value for AssetDraft.getTags()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public LocalizedString getDescription()
public String getKey()
public LocalizedString getName()
public List<AssetSource> getSources()
public T plusSources(List<AssetSource> sources)
sources
parameter to the sources
list property of this builder.sources
- the value for AssetDraft.getSources()
public T plusSources(AssetSource sources)
sources
parameter to the sources
list property of this builder.sources
- the value of the element to add to AssetDraft.getSources()
public T plusTags(Set<String> tags)
tags
parameter to the tags
set property of this builder.tags
- the value for AssetDraft.getTags()
public T plusTags(String tags)
tags
parameter to the tags
set property of this builder.tags
- the value of the element to add to AssetDraft.getTags()
public AssetDraftDsl build()
AssetDraftDsl
with the values of this builder.build
in interface Builder<AssetDraftDsl>
public static AssetDraftBuilder of(List<AssetSource> sources, LocalizedString name)
sources
- initial value for the AssetDraft.getSources()
propertyname
- initial value for the AssetDraft.getName()
propertypublic static AssetDraftBuilder of(AssetDraft template)
template
- the templatepublic static AssetDraftBuilder of(Asset template)
template
- the template