public final class ProxyConfiguration
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
ProxyConfiguration class defines proxy configuration.| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyConfiguration.Builder
Builder class for
ProxyConfiguration. |
static class |
ProxyConfiguration.Protocol
Protocol enumeration class defines the protocols for which proxying is
supported. |
| Modifier and Type | Field and Description |
|---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
| Modifier | Constructor and Description |
|---|---|
|
ProxyConfiguration()
Default constructor.
|
protected |
ProxyConfiguration(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 ProxyConfiguration |
_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 ProxyConfiguration |
_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.Boolean |
getEnabled()
In the result of the
#get and #list methods this property
indicates whether proxying is enabled for a particular protocol. |
char[] |
getPassword()
Password for proxy server.
|
long |
getPort()
Port to connect to the proxy server.
|
ProxyConfiguration.Protocol |
getProtocol()
The protocol for which proxy should be set.
|
java.lang.String |
getServer()
URL of the proxy server
Only
Set if server set in ProxyConfiguration. |
java.lang.String |
getUsername()
Username for proxy server.
|
int |
hashCode() |
void |
setEnabled(java.lang.Boolean enabled)
In the result of the
#get and #list methods this property
indicates whether proxying is enabled for a particular protocol. |
void |
setPassword(char[] password)
Password for proxy server.
|
void |
setPort(long port)
Port to connect to the proxy server.
|
void |
setProtocol(ProxyConfiguration.Protocol protocol)
The protocol for which proxy should be set.
|
void |
setServer(java.lang.String server)
URL of the proxy server
Only
Set if server set in ProxyConfiguration. |
void |
setUsername(java.lang.String username)
Username for proxy server.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public ProxyConfiguration()
protected ProxyConfiguration(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public ProxyConfiguration.Protocol getProtocol()
public void setProtocol(ProxyConfiguration.Protocol protocol)
protocol - New value for the property.public java.lang.String getServer()
Set if server set in ProxyConfiguration.public void setServer(java.lang.String server)
Set if server set in ProxyConfiguration.server - New value for the property.public long getPort()
Set if port set in ProxyConfiguration.public void setPort(long port)
Set if port set in ProxyConfiguration.port - New value for the property.public java.lang.String getUsername()
Set if proxy requires username.public void setUsername(java.lang.String username)
Set if proxy requires username.username - New value for the property.public char[] getPassword()
Set if proxy requires password.public void setPassword(char[] password)
Set if proxy requires password.password - New value for the property.public java.lang.Boolean getEnabled()
#get and #list methods this property
indicates whether proxying is enabled for a particular protocol. In the input to
the test and set methods this property specifies whether
proxying should be enabled for a particular protocol.public void setEnabled(java.lang.Boolean enabled)
#get and #list methods this property
indicates whether proxying is enabled for a particular protocol. In the input to
the test and set methods this property specifies whether
proxying should be enabled for a particular protocol.enabled - 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 ProxyConfiguration _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 ProxyConfiguration _newInstance2(com.vmware.vapi.data.StructValue structValue)