Package com.lightbend.cinnamon.meta
Class Descriptor.Builder
- java.lang.Object
-
- com.lightbend.cinnamon.meta.Descriptor.Builder
-
- Enclosing class:
- Descriptor
public static class Descriptor.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor
build()
Descriptor.Builder
replaceAllTags(java.util.Map<java.lang.String,java.lang.String> tags)
Descriptor.Builder
setCustom(boolean custom)
Descriptor.Builder
setEnabled(boolean enabled)
Descriptor.Builder
withCategories(java.lang.String... categories)
Descriptor.Builder
withCategories(java.util.List<java.lang.String> categories)
Descriptor.Builder
withCategories(java.util.Set<java.lang.String> categories)
Descriptor.Builder
withConfigPath(java.lang.String configPath)
Descriptor.Builder
withGroupName(java.lang.String groupName)
Descriptor.Builder
withHints(java.lang.String... hints)
Descriptor.Builder
withHints(java.util.Set<java.lang.String> hints)
Descriptor.Builder
withKey(java.lang.String key)
Descriptor.Builder
withName(java.lang.String name)
Descriptor.Builder
withTag(java.lang.String key, java.lang.String value)
Descriptor.Builder
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
Descriptor.Builder
withUnitPluralSuffix(java.lang.String suffix)
Descriptor.Builder
withUnitSuffix(java.lang.String suffix)
Descriptor.Builder
withUnitType(Descriptor.UnitType unitType)
-
-
-
Method Detail
-
withConfigPath
public Descriptor.Builder withConfigPath(java.lang.String configPath)
-
withKey
public Descriptor.Builder withKey(java.lang.String key)
-
withName
public Descriptor.Builder withName(java.lang.String name)
-
withGroupName
public Descriptor.Builder withGroupName(java.lang.String groupName)
-
withCategories
public Descriptor.Builder withCategories(java.lang.String... categories)
-
withCategories
public Descriptor.Builder withCategories(java.util.List<java.lang.String> categories)
-
withCategories
public Descriptor.Builder withCategories(java.util.Set<java.lang.String> categories)
-
withUnitType
public Descriptor.Builder withUnitType(Descriptor.UnitType unitType)
-
withUnitSuffix
public Descriptor.Builder withUnitSuffix(java.lang.String suffix)
-
withUnitPluralSuffix
public Descriptor.Builder withUnitPluralSuffix(java.lang.String suffix)
-
withTag
public Descriptor.Builder withTag(java.lang.String key, java.lang.String value)
-
withTags
public Descriptor.Builder withTags(java.util.Map<java.lang.String,java.lang.String> tags)
-
replaceAllTags
public Descriptor.Builder replaceAllTags(java.util.Map<java.lang.String,java.lang.String> tags)
-
withHints
public Descriptor.Builder withHints(java.lang.String... hints)
-
withHints
public Descriptor.Builder withHints(java.util.Set<java.lang.String> hints)
-
setEnabled
public Descriptor.Builder setEnabled(boolean enabled)
-
setCustom
public Descriptor.Builder setCustom(boolean custom)
-
build
public Descriptor build()
-
-