Class PolicyCondition

    • Method Detail

      • booleanExpression

        public final IngressBooleanExpression booleanExpression()

        This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Returns:
        This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • ipExpression

        public final IngressIpv4Expression ipExpression()

        This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Returns:
        This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • stringExpression

        public final IngressStringExpression stringExpression()

        This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Returns:
        This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • tlsExpression

        public final IngressTlsProtocolExpression tlsExpression()

        This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Returns:
        This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromBooleanExpression

        public static PolicyCondition fromBooleanExpression​(IngressBooleanExpression booleanExpression)
        Create an instance of this class with booleanExpression() initialized to the given value.

        This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Parameters:
        booleanExpression - This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • fromBooleanExpression

        public static PolicyCondition fromBooleanExpression​(Consumer<IngressBooleanExpression.Builder> booleanExpression)
        Create an instance of this class with booleanExpression() initialized to the given value.

        This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Parameters:
        booleanExpression - This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • fromIpExpression

        public static PolicyCondition fromIpExpression​(IngressIpv4Expression ipExpression)
        Create an instance of this class with ipExpression() initialized to the given value.

        This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Parameters:
        ipExpression - This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • fromIpExpression

        public static PolicyCondition fromIpExpression​(Consumer<IngressIpv4Expression.Builder> ipExpression)
        Create an instance of this class with ipExpression() initialized to the given value.

        This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Parameters:
        ipExpression - This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • fromStringExpression

        public static PolicyCondition fromStringExpression​(IngressStringExpression stringExpression)
        Create an instance of this class with stringExpression() initialized to the given value.

        This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Parameters:
        stringExpression - This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • fromStringExpression

        public static PolicyCondition fromStringExpression​(Consumer<IngressStringExpression.Builder> stringExpression)
        Create an instance of this class with stringExpression() initialized to the given value.

        This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Parameters:
        stringExpression - This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • fromTlsExpression

        public static PolicyCondition fromTlsExpression​(IngressTlsProtocolExpression tlsExpression)
        Create an instance of this class with tlsExpression() initialized to the given value.

        This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Parameters:
        tlsExpression - This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
      • fromTlsExpression

        public static PolicyCondition fromTlsExpression​(Consumer<IngressTlsProtocolExpression.Builder> tlsExpression)
        Create an instance of this class with tlsExpression() initialized to the given value.

        This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

        Parameters:
        tlsExpression - This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.