|
vSphere Client SDK API Documentation : version 5.5.0.1300321 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vmware.vise.data.Constraint
com.vmware.vise.data.query.RelationalConstraint
@data public class RelationalConstraint
Defines the matching criteria based on some relation to the object queried.
Eg. VirtualMachine
s whose host is esx1.vmware.com
Field Summary | |
---|---|
Constraint |
constraintOnRelatedObject
A constraint on the related objects by the given relationship. |
boolean |
hasInverseRelation
Indicates whether the constraint given by constraintOnRelatedObject applies to the source, as opposed to the target of the relationship given in this instance. |
String |
relation
The relation to match (the source type of the relation is defined by the isSourceConstrainted property). |
Fields inherited from class com.vmware.vise.data.Constraint |
---|
targetType |
Constructor Summary | |
---|---|
RelationalConstraint()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String relation
public boolean hasInverseRelation
If true
, the relation defined by
constraintOnRelatedObject.targetType.relationship
is used.
Thus the constraint can be referred to as an inverse-RelationalConstraint
(as the inverse relationship is used compared to the normal direction). Make
sure to explicitly set the constraintOnRelatedObject.targetType
value.
Example:
IfRelationalConstraint { targetType = "VirtualMachine", relationship = "vm", // HostSystem.vm relationship is used hasInverseRelation = true, constraintOnRelatedObject = ObjectIdentityConstraint { targetType = "HostSystem" target = "host-1" } }
false
(i.e. the target is constrained), the relation defined by
this.targetType.relationship
is used.
Example:
Default value isRelationalConstraint { targetType = "VirtualMachine", relationship = "host", // VirtualMachine.Host relationship is used hasInverseRelation = false, constraintOnRelatedObject = ObjectIdentityConstraint { targetType = null, // implicitly "HostSystem" target = "host-1" } }
false
.
public Constraint constraintOnRelatedObject
Constructor Detail |
---|
public RelationalConstraint()
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Constraint
public int hashCode()
hashCode
in class Constraint
|
vSphere Client SDK API Documentation : version 5.5.0.1300321 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |