All Known Implementing Classes:
AwsPartition, BooleanEquals, BooleanLiteral, Condition, Expression, GetAttr, IntegerLiteral, IsSet, IsValidHostLabel, IsVirtualHostableS3Bucket, LibraryFunction, Literal, Not, Parameter, ParseArn, ParseUrl, RecordLiteral, Reference, 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 Summary

    Modifier and Type
    Method
    Description
    default Condition
    Convert this into a condition.
    default Condition
    Converts this function into a condition which stores the output in the named result.
    Convert this into a condition builder for compositional use.
  • Method Details

    • toConditionBuilder

      Condition.Builder toConditionBuilder()
      Convert this into a condition builder for compositional use.
      Returns:
      the condition builder.
    • 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.