public static final class HostTypes.CreateSpec.Builder
extends java.lang.Object
HostTypes.CreateSpec
.Constructor and Description |
---|
Builder(java.lang.String hostname,
java.lang.String userName,
char[] password,
HostTypes.CreateSpec.ThumbprintVerification thumbprintVerification)
Constructor with parameters for the required properties of
HostTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
HostTypes.CreateSpec |
build() |
HostTypes.CreateSpec.Builder |
setFolder(java.lang.String folder)
Host and cluster folder in which the new standalone host should be created.
|
HostTypes.CreateSpec.Builder |
setForceAdd(java.lang.Boolean forceAdd)
Whether host should be added to the vCenter Server even if it is being managed
by another vCenter Server.
|
HostTypes.CreateSpec.Builder |
setPort(java.lang.Long port)
The port of the host.
|
HostTypes.CreateSpec.Builder |
setThumbprint(java.lang.String thumbprint)
The thumbprint of the SSL certificate, which the host is expected to have.
|
public Builder(java.lang.String hostname, java.lang.String userName, char[] password, HostTypes.CreateSpec.ThumbprintVerification thumbprintVerification)
HostTypes.CreateSpec
.public HostTypes.CreateSpec.Builder setPort(java.lang.Long port)
null
, port 443 will be used.port
- New value for the property.public HostTypes.CreateSpec.Builder setFolder(java.lang.String folder)
null
, the system will attempt to choose a suitable folder for the host; if a
folder cannot be chosen, the host creation operation will fail.folder
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: Folder
. When methods return a value of
this class as a return value, the property will be an identifier for the
resource type: Folder
.public HostTypes.CreateSpec.Builder setThumbprint(java.lang.String thumbprint)
getThumbprintVerification()
is HostTypes.CreateSpec.ThumbprintVerification.THUMBPRINT
.thumbprint
- New value for the property.public HostTypes.CreateSpec.Builder setForceAdd(java.lang.Boolean forceAdd)
null
, forceAdd is default to false.forceAdd
- New value for the property.public HostTypes.CreateSpec build()