public final class HostCompliance
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
HostCompliance class contains information to describe the compliance
result of a host with respect to given target software specification.
DataProcessingUnitCompliance is mirror of this class. Any future changes in
either of them should reflect in both.| Modifier and Type | Class and Description |
|---|---|
static class |
HostCompliance.Builder
Builder class for
HostCompliance. |
| Modifier and Type | Field and Description |
|---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
| Modifier | Constructor and Description |
|---|---|
|
HostCompliance()
Default constructor.
|
protected |
HostCompliance(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 HostCompliance |
_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 HostCompliance |
_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) |
AddOnCompliance |
getAddOn()
Compliance result for the OEM add-on.
|
BaseImageCompliance |
getBaseImage()
Compliance result for the base image.
|
java.lang.String |
getCommit()
Identifier of the commit on which the scan is run to generate this result.
|
Notification |
getComplianceStatusDetails()
User-friendly notification to describe the compliance status in detail.
|
java.util.Map<java.lang.String,ComponentCompliance> |
getComponents()
Compliance result for all the effective components and all the components
present on the host.
|
DataProcessingUnitsCompliance |
getDataProcessingUnitsCompliance()
Compliance results of all data processing units on the host.
|
java.util.Map<java.lang.String,HardwareSupportPackageCompliance> |
getHardwareSupport()
Compliance result for hardware support (both Hardware Support Package or HSP and
individual hardware module firmware) for every HSP configured, keyed by Hardware
Support Manager (HSM).
|
ComplianceImpact |
getImpact()
Overall impact.
|
ImpactDetails |
getImpactDetails()
Details about compliance impact.
|
Notifications |
getNotifications()
Notifications returned by the scan operation.
|
RemediationDetails |
getRemediationDetails()
Details about remediation actions, including a list of pending remediation
actions.
|
java.util.Map<java.lang.String,ComponentCompliance> |
getRemovedComponents()
Compliance result for all removed components present on the host and in the
software specification.
|
java.util.Calendar |
getScanTime()
Scan completion time.
|
java.util.Map<java.lang.String,SolutionCompliance> |
getSolutions()
Compliance result for solutions.
|
StageStatus |
getStageStatus()
Overall stage status of the host.
|
ComplianceStatus |
getStatus()
Overall compliance status of the host.
|
int |
hashCode() |
void |
setAddOn(AddOnCompliance addOn)
Compliance result for the OEM add-on.
|
void |
setBaseImage(BaseImageCompliance baseImage)
Compliance result for the base image.
|
void |
setCommit(java.lang.String commit)
Identifier of the commit on which the scan is run to generate this result.
|
void |
setComplianceStatusDetails(Notification complianceStatusDetails)
User-friendly notification to describe the compliance status in detail.
|
void |
setComponents(java.util.Map<java.lang.String,ComponentCompliance> components)
Compliance result for all the effective components and all the components
present on the host.
|
void |
setDataProcessingUnitsCompliance(DataProcessingUnitsCompliance dataProcessingUnitsCompliance)
Compliance results of all data processing units on the host.
|
void |
setHardwareSupport(java.util.Map<java.lang.String,HardwareSupportPackageCompliance> hardwareSupport)
Compliance result for hardware support (both Hardware Support Package or HSP and
individual hardware module firmware) for every HSP configured, keyed by Hardware
Support Manager (HSM).
|
void |
setImpact(ComplianceImpact impact)
Overall impact.
|
void |
setImpactDetails(ImpactDetails impactDetails)
Details about compliance impact.
|
void |
setNotifications(Notifications notifications)
Notifications returned by the scan operation.
|
void |
setRemediationDetails(RemediationDetails remediationDetails)
Details about remediation actions, including a list of pending remediation
actions.
|
void |
setRemovedComponents(java.util.Map<java.lang.String,ComponentCompliance> removedComponents)
Compliance result for all removed components present on the host and in the
software specification.
|
void |
setScanTime(java.util.Calendar scanTime)
Scan completion time.
|
void |
setSolutions(java.util.Map<java.lang.String,SolutionCompliance> solutions)
Compliance result for solutions.
|
void |
setStageStatus(StageStatus stageStatus)
Overall stage status of the host.
|
void |
setStatus(ComplianceStatus status)
Overall compliance status of the host.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public HostCompliance()
protected HostCompliance(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public ComplianceImpact getImpact()
public void setImpact(ComplianceImpact impact)
impact - New value for the property.public ComplianceStatus getStatus()
public void setStatus(ComplianceStatus status)
status - New value for the property.public StageStatus getStageStatus()
getStatus() is ComplianceStatus.NON_COMPLIANT. This property was added
in vSphere API 8.0.0.1.
If null the staging status is unknown - the contents may or may not be
staged. This can happen, for instance, if the stage check failed, has not been
done yet, or the target uses an older interface that does not include support
for returning the staged status.public void setStageStatus(StageStatus stageStatus)
getStatus() is ComplianceStatus.NON_COMPLIANT. This property was added
in vSphere API 8.0.0.1.
If null the staging status is unknown - the contents may or may not be
staged. This can happen, for instance, if the stage check failed, has not been
done yet, or the target uses an older interface that does not include support
for returning the staged status.stageStatus - New value for the property.public Notifications getNotifications()
public void setNotifications(Notifications notifications)
notifications - New value for the property.public java.util.Calendar getScanTime()
public void setScanTime(java.util.Calendar scanTime)
scanTime - New value for the property.public java.lang.String getCommit()
null if operation is performed on a working copy document.com.vmware.esx.settings.commit. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.esx.settings.commit.public void setCommit(java.lang.String commit)
null if operation is performed on a working copy document.commit - 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: com.vmware.esx.settings.commit. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.esx.settings.commit.public BaseImageCompliance getBaseImage()
public void setBaseImage(BaseImageCompliance baseImage)
baseImage - New value for the property.public AddOnCompliance getAddOn()
public void setAddOn(AddOnCompliance addOn)
addOn - New value for the property.public java.util.Map<java.lang.String,HardwareSupportPackageCompliance> getHardwareSupport()
null or contain an empty map if operation is
performed on an image whose SoftwareSpec does not have a value for its
hardwareSupport property.Map must be an identifier for the resource type: com.vmware.esx.setting.hardware_support.manager. When methods return a value of
this class as a return value, the key in the property Map will
be an identifier for the resource type: com.vmware.esx.setting.hardware_support.manager.public void setHardwareSupport(java.util.Map<java.lang.String,HardwareSupportPackageCompliance> hardwareSupport)
null or contain an empty map if operation is
performed on an image whose SoftwareSpec does not have a value for its
hardwareSupport property.hardwareSupport - New value for the property.
When clients pass a value of this class as a parameter, the key in the property
Map must be an identifier for the resource type: com.vmware.esx.setting.hardware_support.manager. When methods return a value of
this class as a return value, the key in the property Map will
be an identifier for the resource type: com.vmware.esx.setting.hardware_support.manager.public java.util.Map<java.lang.String,ComponentCompliance> getComponents()
Map must be an identifier for the resource type: com.vmware.esx.settings.component. When methods return a value of this class as
a return value, the key in the property Map will be an
identifier for the resource type: com.vmware.esx.settings.component.public void setComponents(java.util.Map<java.lang.String,ComponentCompliance> components)
components - New value for the property.
When clients pass a value of this class as a parameter, the key in the property
Map must be an identifier for the resource type: com.vmware.esx.settings.component. When methods return a value of this class as
a return value, the key in the property Map will be an
identifier for the resource type: com.vmware.esx.settings.component.public java.util.Map<java.lang.String,SolutionCompliance> getSolutions()
Map must be an identifier for the resource type: com.vmware.esx.settings.solution. When methods return a value of this class as
a return value, the key in the property Map will be an
identifier for the resource type: com.vmware.esx.settings.solution.public void setSolutions(java.util.Map<java.lang.String,SolutionCompliance> solutions)
solutions - New value for the property.
When clients pass a value of this class as a parameter, the key in the property
Map must be an identifier for the resource type: com.vmware.esx.settings.solution. When methods return a value of this class as
a return value, the key in the property Map will be an
identifier for the resource type: com.vmware.esx.settings.solution.public java.util.Map<java.lang.String,ComponentCompliance> getRemovedComponents()
Map must be an identifier for the resource type: com.vmware.esx.settings.component. When methods return a value of this class as
a return value, the key in the property Map will be an
identifier for the resource type: com.vmware.esx.settings.component.public void setRemovedComponents(java.util.Map<java.lang.String,ComponentCompliance> removedComponents)
removedComponents - New value for the property.
When clients pass a value of this class as a parameter, the key in the property
Map must be an identifier for the resource type: com.vmware.esx.settings.component. When methods return a value of this class as
a return value, the key in the property Map will be an
identifier for the resource type: com.vmware.esx.settings.component.public ImpactDetails getImpactDetails()
public void setImpactDetails(ImpactDetails impactDetails)
impactDetails - New value for the property.public DataProcessingUnitsCompliance getDataProcessingUnitsCompliance()
null if host doesn't have any data processing
units.public void setDataProcessingUnitsCompliance(DataProcessingUnitsCompliance dataProcessingUnitsCompliance)
null if host doesn't have any data processing
units.dataProcessingUnitsCompliance - New value for the property.public Notification getComplianceStatusDetails()
null, the default compliance status message will be shown.public void setComplianceStatusDetails(Notification complianceStatusDetails)
null, the default compliance status message will be shown.complianceStatusDetails - New value for the property.public RemediationDetails getRemediationDetails()
Set only when Quick Patch is supported and the Quick
Patch remediation policy is enforced.public void setRemediationDetails(RemediationDetails remediationDetails)
Set only when Quick Patch is supported and the Quick
Patch remediation policy is enforced.remediationDetails - 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 HostCompliance _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 HostCompliance _newInstance2(com.vmware.vapi.data.StructValue structValue)