public static final class HostTypes.CreateSpec
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
CreateSpec
class defines the information used to create a host.Modifier and Type | Class and Description |
---|---|
static class |
HostTypes.CreateSpec.Builder
Builder class for
HostTypes.CreateSpec . |
static class |
HostTypes.CreateSpec.ThumbprintVerification
The
ThumbprintVerification enumeration class defines the thumbprint
verification schemes for a host's SSL certificate. |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
CreateSpec()
Default constructor.
|
protected |
CreateSpec(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 HostTypes.CreateSpec |
_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 HostTypes.CreateSpec |
_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 |
getFolder()
Host and cluster folder in which the new standalone host should be created.
|
java.lang.Boolean |
getForceAdd()
Whether host should be added to the vCenter Server even if it is being managed
by another vCenter Server.
|
java.lang.String |
getHostname()
The IP address or DNS resolvable name of the host.
|
char[] |
getPassword()
The password for the administrator account on the host.
|
java.lang.Long |
getPort()
The port of the host.
|
java.lang.String |
getThumbprint()
The thumbprint of the SSL certificate, which the host is expected to have.
|
HostTypes.CreateSpec.ThumbprintVerification |
getThumbprintVerification()
Type of host's SSL certificate verification to be done.
|
java.lang.String |
getUserName()
The administrator account on the host.
|
int |
hashCode() |
void |
setFolder(java.lang.String folder)
Host and cluster folder in which the new standalone host should be created.
|
void |
setForceAdd(java.lang.Boolean forceAdd)
Whether host should be added to the vCenter Server even if it is being managed
by another vCenter Server.
|
void |
setHostname(java.lang.String hostname)
The IP address or DNS resolvable name of the host.
|
void |
setPassword(char[] password)
The password for the administrator account on the host.
|
void |
setPort(java.lang.Long port)
The port of the host.
|
void |
setThumbprint(java.lang.String thumbprint)
The thumbprint of the SSL certificate, which the host is expected to have.
|
void |
setThumbprintVerification(HostTypes.CreateSpec.ThumbprintVerification thumbprintVerification)
Type of host's SSL certificate verification to be done.
|
void |
setUserName(java.lang.String userName)
The administrator account on the host.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public CreateSpec()
protected CreateSpec(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.String getHostname()
public void setHostname(java.lang.String hostname)
hostname
- New value for the property.public java.lang.Long getPort()
null
, port 443 will be used.public void setPort(java.lang.Long port)
null
, port 443 will be used.port
- New value for the property.public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- New value for the property.public char[] getPassword()
public void setPassword(char[] password)
password
- New value for the property.public java.lang.String getFolder()
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
. When methods return a value of
this class as a return value, the property will be an identifier for the
resource type: Folder
.public void 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.ThumbprintVerification getThumbprintVerification()
public void setThumbprintVerification(HostTypes.CreateSpec.ThumbprintVerification thumbprintVerification)
thumbprintVerification
- New value for the property.public java.lang.String getThumbprint()
getThumbprintVerification()
is HostTypes.CreateSpec.ThumbprintVerification.THUMBPRINT
.public void setThumbprint(java.lang.String thumbprint)
getThumbprintVerification()
is HostTypes.CreateSpec.ThumbprintVerification.THUMBPRINT
.thumbprint
- New value for the property.public java.lang.Boolean getForceAdd()
null
, forceAdd is default to false.public void setForceAdd(java.lang.Boolean forceAdd)
null
, forceAdd is default to false.forceAdd
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public 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.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static HostTypes.CreateSpec _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.StructType
public static HostTypes.CreateSpec _newInstance2(com.vmware.vapi.data.StructValue structValue)