public final class License
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
License.Builder
Builder class for
License . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
CAPACITY_TYPE_CORE |
static java.lang.String |
CAPACITY_TYPE_CPU |
static java.lang.String |
CAPACITY_TYPE_HOST |
static java.lang.String |
CAPACITY_TYPE_USER |
static java.lang.String |
CAPACITY_TYPE_VM |
Modifier | Constructor and Description |
---|---|
|
License()
Default constructor.
|
protected |
License(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 License |
_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 License |
_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 |
getCapacityType()
Possible values are:
CAPACITY_TYPE_VM CAPACITY_TYPE_CPU CAPACITY_TYPE_USER CAPACITY_TYPE_CORE CAPACITY_TYPE_HOST License metrics
specifying the capacity type of license key. |
java.lang.String |
getDescription()
license edition
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.Long |
getExpiry()
date that license expires format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getFeatures()
semicolon delimited feature list
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.Boolean |
getIsEval()
true for evalution license
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.Boolean |
getIsExpired()
whether the license has expired
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.Boolean |
getIsMh()
multi-hypervisor support
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getLicenseKey()
license key
|
java.util.List<ResourceLink> |
getLinks()
The server will populate this field when returing the resource.
|
java.lang.String |
getProductName()
product name
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getProductVersion()
product version
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.Long |
getQuantity()
license capacity; 0 for unlimited format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.lang.String |
getSchema()
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
SelfResourceLink |
getSelf() |
int |
hashCode() |
void |
setCapacityType(java.lang.String capacityType)
Possible values are:
CAPACITY_TYPE_VM CAPACITY_TYPE_CPU CAPACITY_TYPE_USER CAPACITY_TYPE_CORE CAPACITY_TYPE_HOST License metrics
specifying the capacity type of license key. |
void |
setDescription(java.lang.String description)
license edition
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setExpiry(java.lang.Long expiry)
date that license expires format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setFeatures(java.lang.String features)
semicolon delimited feature list
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setIsEval(java.lang.Boolean isEval)
true for evalution license
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setIsExpired(java.lang.Boolean isExpired)
whether the license has expired
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setIsMh(java.lang.Boolean isMh)
multi-hypervisor support
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setLicenseKey(java.lang.String licenseKey)
license key
|
void |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
void |
setProductName(java.lang.String productName)
product name
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setProductVersion(java.lang.String productVersion)
product version
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setQuantity(java.lang.Long quantity)
license capacity; 0 for unlimited format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setSelf(SelfResourceLink self) |
java.lang.String |
toString() |
public static final java.lang.String CAPACITY_TYPE_VM
public static final java.lang.String CAPACITY_TYPE_CPU
public static final java.lang.String CAPACITY_TYPE_USER
public static final java.lang.String CAPACITY_TYPE_CORE
public static final java.lang.String CAPACITY_TYPE_HOST
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public License()
protected License(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<ResourceLink> getLinks()
public void setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public java.lang.String getSchema()
public void setSchema(java.lang.String schema)
schema
- New value for the property.public SelfResourceLink getSelf()
public void setSelf(SelfResourceLink self)
self
- New value for the property.public java.lang.String getCapacityType()
public void setCapacityType(java.lang.String capacityType)
capacityType
- New value for the property.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- New value for the property.public java.lang.Long getExpiry()
public void setExpiry(java.lang.Long expiry)
expiry
- New value for the property.public java.lang.String getFeatures()
public void setFeatures(java.lang.String features)
features
- New value for the property.public java.lang.Boolean getIsEval()
public void setIsEval(java.lang.Boolean isEval)
isEval
- New value for the property.public java.lang.Boolean getIsExpired()
public void setIsExpired(java.lang.Boolean isExpired)
isExpired
- New value for the property.public java.lang.Boolean getIsMh()
public void setIsMh(java.lang.Boolean isMh)
isMh
- New value for the property.public java.lang.String getLicenseKey()
public void setLicenseKey(java.lang.String licenseKey)
licenseKey
- New value for the property.public java.lang.String getProductName()
public void setProductName(java.lang.String productName)
productName
- New value for the property.public java.lang.String getProductVersion()
public void setProductVersion(java.lang.String productVersion)
productVersion
- New value for the property.public java.lang.Long getQuantity()
public void setQuantity(java.lang.Long quantity)
quantity
- 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 License _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 License _newInstance2(com.vmware.vapi.data.StructValue structValue)