public static final class HostnameGenerator.Builder
extends java.lang.Object
HostnameGenerator
.Constructor and Description |
---|
Builder(HostnameGenerator.Type type)
Constructor with parameters for the required properties of
HostnameGenerator . |
Modifier and Type | Method and Description |
---|---|
HostnameGenerator |
build() |
HostnameGenerator.Builder |
setFixedName(java.lang.String fixedName)
The virtual machine name specified by the client.
|
HostnameGenerator.Builder |
setPrefix(java.lang.String prefix)
Base prefix, to which a unique number is appended.
|
public Builder(HostnameGenerator.Type type)
HostnameGenerator
.public HostnameGenerator.Builder setFixedName(java.lang.String fixedName)
getType()
is HostnameGenerator.Type.FIXED
.fixedName
- New value for the property.public HostnameGenerator.Builder setPrefix(java.lang.String prefix)
getType()
is HostnameGenerator.Type.PREFIX
.prefix
- New value for the property.public HostnameGenerator build()