public final class Domain
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Domain class specifies the information needed to join a workgroup or
domain. This structure maps to the Identification key in the sysprep.xml answer
file. These values are transferred into the sysprep.xml file that VirtualCenter
stores on the target virtual disk. For more information about performing
unattended installation, check
https://technet.microsoft.com/en-us/library/cc771830(v=ws.10).aspx. This class
was added in vSphere API 7.0.0.0.| Modifier and Type | Class and Description |
|---|---|
static class |
Domain.Builder
Builder class for
Domain. |
static class |
Domain.Type
The
Type enumeration class defines the types of network the virtual
machine should join to after the customization is completed. |
| Modifier and Type | Field and Description |
|---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
| Modifier | Constructor and Description |
|---|---|
|
Domain()
Default constructor.
|
protected |
Domain(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static Domain |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static Domain |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDomain()
The domain to which the virtual machine should be joined.
|
java.lang.String |
getDomainOU()
The MachineObjectOU which specifies the full LDAP path name of the OU to which
the virtual machine belongs.
|
char[] |
getDomainPassword()
The domain user password that has permission to join the
getDomainUsername() after customization. |
java.lang.String |
getDomainUsername()
The domain user that has permission to join the domain after virtual machine is
joined.
|
Domain.Type |
getType()
The type of network to join after the customization.
|
java.lang.String |
getWorkgroup()
The workgroup that the virtual machine should join.
|
int |
hashCode() |
void |
setDomain(java.lang.String domain)
The domain to which the virtual machine should be joined.
|
void |
setDomainOU(java.lang.String domainOU)
The MachineObjectOU which specifies the full LDAP path name of the OU to which
the virtual machine belongs.
|
void |
setDomainPassword(char[] domainPassword)
The domain user password that has permission to join the
getDomainUsername() after customization. |
void |
setDomainUsername(java.lang.String domainUsername)
The domain user that has permission to join the domain after virtual machine is
joined.
|
void |
setType(Domain.Type type)
The type of network to join after the customization.
|
void |
setWorkgroup(java.lang.String workgroup)
The workgroup that the virtual machine should join.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public Domain()
protected Domain(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public Domain.Type getType()
public void setType(Domain.Type type)
type - New value for the property.public java.lang.String getWorkgroup()
getType() is Domain.Type.WORKGROUP.public void setWorkgroup(java.lang.String workgroup)
getType() is Domain.Type.WORKGROUP.workgroup - New value for the property.public java.lang.String getDomain()
getType() is Domain.Type.DOMAIN.public void setDomain(java.lang.String domain)
getType() is Domain.Type.DOMAIN.domain - New value for the property.public java.lang.String getDomainUsername()
getType() is Domain.Type.DOMAIN.public void setDomainUsername(java.lang.String domainUsername)
getType() is Domain.Type.DOMAIN.domainUsername - New value for the property.public char[] getDomainPassword()
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.public void setDomainPassword(char[] domainPassword)
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 java.lang.String getDomainOU()
getType() is Domain.Type.DOMAIN.public void setDomainOU(java.lang.String domainOU)
getType() is Domain.Type.DOMAIN.domainOU - New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue in interface com.vmware.vapi.bindings.Structureprotected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate in interface com.vmware.vapi.bindings.StaticStructurepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface com.vmware.vapi.bindings.StaticStructuretoString in class java.lang.Objectpublic boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf in interface com.vmware.vapi.bindings.Structurepublic <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo in interface com.vmware.vapi.bindings.Structurepublic void _setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames in interface com.vmware.vapi.bindings.StaticStructurepublic static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType instance representing the static bindings
type for this Structure.public java.lang.String _getCanonicalName()
_getCanonicalName in interface com.vmware.vapi.bindings.Structurepublic static java.lang.String _getCanonicalTypeName()
_getCanonicalName().public static Domain _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue - the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructTypepublic static Domain _newInstance2(com.vmware.vapi.data.StructValue structValue)