public static final class SymbolReference.Builder extends java.lang.Object implements SmithyBuilder<SymbolReference>
Modifier and Type | Method and Description |
---|---|
SymbolReference.Builder |
alias(java.lang.String alias)
Adds an alias to the SymbolReference.
|
SymbolReference |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
SymbolReference.Builder |
options(java.util.Set<SymbolReference.Option> options)
Replaces the Set of Options to the SymbolReference.
|
SymbolReference.Builder |
options(SymbolReference.Option... options)
Replaces the array of Options in the SymbolReference.
|
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.
|
SymbolReference.Builder |
symbol(Symbol symbol)
Sets the Symbol referenced by the SymbolReference.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public SymbolReference build()
SmithyBuilder
build
in interface SmithyBuilder<SymbolReference>
public SymbolReference.Builder symbol(Symbol symbol)
symbol
- Symbol to reference.public SymbolReference.Builder options(java.util.Set<SymbolReference.Option> options)
options
- Options to add.public SymbolReference.Builder options(SymbolReference.Option... options)
options
- Options to add.public SymbolReference.Builder alias(java.lang.String alias)
An alias is used in some programming languages to change the way a symbol is referenced in a source file. Aliases are often used for de-conflicting symbols.
alias
- Alias to assign the symbol.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.