Class Constraint
java.lang.Object
com.vmware.vra.jenkinsplugin.model.iaas.Constraint
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen", date="2020-09-09T18:26:35.661905-04:00[America/New_York]") public class Constraint extends Object
A constraint that is conveyed to the policy engine.
-
Constructor Summary
Constructors Constructor Description Constraint()
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Constraint
expression(String expression)
String
getExpression()
An expression of the form \"[!]tag-key[:[tag-value]]\", used to indicate a constraint match on keys and values of tags.int
hashCode()
Boolean
isMandatory()
Indicates whether this constraint should be strictly enforced or not.Constraint
mandatory(Boolean mandatory)
void
setExpression(String expression)
void
setMandatory(Boolean mandatory)
String
toString()
-
Constructor Details
-
Constraint
public Constraint()
-
-
Method Details
-
expression
-
getExpression
An expression of the form \"[!]tag-key[:[tag-value]]\", used to indicate a constraint match on keys and values of tags.- Returns:
- expression
-
setExpression
-
mandatory
-
isMandatory
Indicates whether this constraint should be strictly enforced or not.- Returns:
- mandatory
-
setMandatory
-
equals
-
hashCode
public int hashCode() -
toString
-