All Known Implementing Classes:
AwsPartition, BooleanEquals, BooleanLiteral, Coalesce, Condition, Expression, GetAttr, IntegerLiteral, IsSet, IsValidHostLabel, IsVirtualHostableS3Bucket, LibraryFunction, Literal, Not, Parameter, ParseArn, ParseUrl, RecordLiteral, Reference, Split, StringEquals, StringLiteral, Substring, SyntaxElement, TupleLiteral, UriEncode

public interface ToCondition
Supplies functionality to be coercible into Conditions for use in composing rule-sets in code.
  • Method Details

    • toConditionBuilder

      default Condition.Builder toConditionBuilder()
      Convert this into a condition builder for compositional use.
      Returns:
      the condition builder.
      Throws:
      UnsupportedOperationException - if this cannot be converted to a condition.
    • toCondition

      default Condition toCondition()
      Convert this into a condition.
      Returns:
      the condition.
    • toCondition

      default Condition toCondition(String result)
      Converts this function into a condition which stores the output in the named result.
      Parameters:
      result - the name of the result parameter.
      Returns:
      the function as a condition.