| Modifier and Type | Method and Description |
|---|---|
LocalizedString |
getDescription() |
List<FieldDefinition> |
getFieldDefinitions() |
String |
getKey() |
LocalizedString |
getName() |
Set<String> |
getResourceTypeIds() |
TypeDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static TypeDraftDsl |
of(String key,
LocalizedString name,
ResourceTypeIdsSetBuilder resourceTypeIdsSetBuilder) |
static TypeDraftDsl |
of(String key,
LocalizedString name,
Set<String> resourceTypeIds)
Creates a new object initialized with the given values.
|
static TypeDraftDsl |
of(TypeDraft template)
Creates a new object initialized with the fields of the template parameter.
|
T |
withDescription(LocalizedString description) |
T |
withFieldDefinitions(List<FieldDefinition> fieldDefinitions) |
T |
withKey(String key) |
T |
withName(LocalizedString name) |
T |
withResourceTypeIds(Set<String> resourceTypeIds) |
public static TypeDraftDsl of(String key, LocalizedString name, ResourceTypeIdsSetBuilder resourceTypeIdsSetBuilder)
@Nullable public LocalizedString getDescription()
getDescription in interface TypeDraft@Nullable public List<FieldDefinition> getFieldDefinitions()
getFieldDefinitions in interface TypeDraftpublic String getKey()
public LocalizedString getName()
public Set<String> getResourceTypeIds()
getResourceTypeIds in interface TypeDraftpublic TypeDraftBuilder newBuilder()
public T withDescription(@Nullable LocalizedString description)
public T withFieldDefinitions(@Nullable List<FieldDefinition> fieldDefinitions)
public T withKey(String key)
public T withName(LocalizedString name)
public static TypeDraftDsl of(String key, LocalizedString name, Set<String> resourceTypeIds)
key - initial value for the TypeDraft.getKey() propertyname - initial value for the TypeDraft.getName() propertyresourceTypeIds - initial value for the TypeDraft.getResourceTypeIds() propertypublic static TypeDraftDsl of(TypeDraft template)
template - the template