public static final class SymbolDependency.Builder extends java.lang.Object implements SmithyBuilder<SymbolDependency>
Modifier and Type | Method and Description |
---|---|
SymbolDependency |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
SymbolDependency.Builder |
dependencyType(java.lang.String dependencyType)
Sets the type of dependency (for example, "dev", "optional", etc).
|
SymbolDependency.Builder |
packageName(java.lang.String packageName)
Sets the package name of the dependency.
|
T |
properties(java.util.Map<java.lang.String,java.lang.Object> properties)
Replaces all of the custom properties.
|
T |
putProperty(java.lang.String key,
java.lang.Object value)
Sets a specific custom property.
|
T |
removeProperty(java.lang.String key)
Removes a specific custom property.
|
SymbolDependency.Builder |
version(java.lang.String version)
Sets the version string of the dependency.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public SymbolDependency build()
SmithyBuilder
build
in interface SmithyBuilder<SymbolDependency>
public SymbolDependency.Builder dependencyType(java.lang.String dependencyType)
Defaults to an empty string if not explicitly set.
dependencyType
- Dependency type to set.public SymbolDependency.Builder packageName(java.lang.String packageName)
packageName
- Package name to set.public SymbolDependency.Builder version(java.lang.String version)
version
- Opaque version string to set.public T putProperty(java.lang.String key, java.lang.Object value)
key
- Key to set.value
- Value to set.public T removeProperty(java.lang.String key)
key
- Key to remove.public T properties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- Custom properties to replace with.