Constructor and Description |
---|
Builder(Domain.Type type)
Constructor with parameters for the required properties of
Domain . |
Modifier and Type | Method and Description |
---|---|
Domain |
build() |
Domain.Builder |
setDomain(java.lang.String domain)
The domain to which the virtual machine should be joined.
|
Domain.Builder |
setDomainPassword(char[] domainPassword)
The domain user password that has permission to join the
Domain.getDomainUsername() after customization. |
Domain.Builder |
setDomainUsername(java.lang.String domainUsername)
The domain user that has permission to join the domain after virtual machine is
joined.
|
Domain.Builder |
setWorkgroup(java.lang.String workgroup)
The workgroup that the virtual machine should join.
|
public Builder(Domain.Type type)
Domain
.public Domain.Builder setWorkgroup(java.lang.String workgroup)
getType()
is Domain.Type.WORKGROUP
.workgroup
- New value for the property.public Domain.Builder setDomain(java.lang.String domain)
getType()
is Domain.Type.DOMAIN
.domain
- New value for the property.public Domain.Builder setDomainUsername(java.lang.String domainUsername)
getType()
is Domain.Type.DOMAIN
.domainUsername
- New value for the property.public Domain.Builder setDomainPassword(char[] domainPassword)
Domain.getDomainUsername()
after customization. This
property was added in vSphere API 7.0.0.0.
This property is optional and it is only relevant when the value of getType()
is Domain.Type.DOMAIN
.domainPassword
- New value for the property.public Domain build()