@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.models.AssetDraft") public final class AssetDraftDsl extends Base implements AssetDraft
AssetDraft
.Modifier and Type | Method and Description |
---|---|
CustomFieldsDraft |
getCustom() |
LocalizedString |
getDescription() |
String |
getKey() |
LocalizedString |
getName() |
List<AssetSource> |
getSources() |
Set<String> |
getTags() |
AssetDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static AssetDraftDsl |
of(AssetDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static AssetDraftDsl |
of(List<AssetSource> sources,
LocalizedString name)
Creates a new object initialized with the given values.
|
AssetDraftDsl |
withCustom(CustomFieldsDraft custom) |
AssetDraftDsl |
withDescription(LocalizedString description) |
AssetDraftDsl |
withKey(String key) |
AssetDraftDsl |
withName(LocalizedString name) |
AssetDraftDsl |
withSources(List<AssetSource> sources) |
AssetDraftDsl |
withTags(Set<String> tags) |
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface AssetDraft
getCustom
in interface CustomDraft
@Nullable public LocalizedString getDescription()
getDescription
in interface AssetDraft
public String getKey()
getKey
in interface AssetDraft
getKey
in interface WithKey
public LocalizedString getName()
getName
in interface AssetDraft
public List<AssetSource> getSources()
getSources
in interface AssetDraft
@Nullable public Set<String> getTags()
getTags
in interface AssetDraft
public AssetDraftBuilder newBuilder()
public AssetDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
public AssetDraftDsl withDescription(@Nullable LocalizedString description)
public AssetDraftDsl withKey(String key)
public AssetDraftDsl withName(LocalizedString name)
public AssetDraftDsl withSources(List<AssetSource> sources)
public AssetDraftDsl withTags(@Nullable Set<String> tags)
public static AssetDraftDsl of(List<AssetSource> sources, LocalizedString name)
sources
- initial value for the AssetDraft.getSources()
propertyname
- initial value for the AssetDraft.getName()
propertypublic static AssetDraftDsl of(AssetDraft template)
template
- the template