@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getByteMatchStatement() != null)
            sb.append("ByteMatchStatement: ").append(getByteMatchStatement()).append(",");
        if (getSqliMatchStatement() != null)
            sb.append("SqliMatchStatement: ").append(getSqliMatchStatement()).append(",");
        if (getXssMatchStatement() != null)
            sb.append("XssMatchStatement: ").append(getXssMatchStatement()).append(",");
        if (getSizeConstraintStatement() != null)
            sb.append("SizeConstraintStatement: ").append(getSizeConstraintStatement()).append(",");
        if (getGeoMatchStatement() != null)
            sb.append("GeoMatchStatement: ").append(getGeoMatchStatement()).append(",");
        if (getRuleGroupReferenceStatement() != null)
            sb.append("RuleGroupReferenceStatement: ").append(getRuleGroupReferenceStatement()).append(",");
        if (getIPSetReferenceStatement() != null)
            sb.append("IPSetReferenceStatement: ").append(getIPSetReferenceStatement()).append(",");
        if (getRegexPatternSetReferenceStatement() != null)
            sb.append("RegexPatternSetReferenceStatement: ").append(getRegexPatternSetReferenceStatement()).append(",");
        if (getRateBasedStatement() != null)
            sb.append("RateBasedStatement: ").append(getRateBasedStatement()).append(",");
        if (getAndStatement() != null)
            sb.append("AndStatement: ").append(getAndStatement()).append(",");
        if (getOrStatement() != null)
            sb.append("OrStatement: ").append(getOrStatement()).append(",");
        if (getNotStatement() != null)
            sb.append("NotStatement: ").append(getNotStatement()).append(",");
        if (getManagedRuleGroupStatement() != null)
            sb.append("ManagedRuleGroupStatement: ").append(getManagedRuleGroupStatement()).append(",");
        if (getLabelMatchStatement() != null)
            sb.append("LabelMatchStatement: ").append(getLabelMatchStatement()).append(",");
        if (getRegexMatchStatement() != null)
            sb.append("RegexMatchStatement: ").append(getRegexMatchStatement());
        sb.append("}");
        return sb.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.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-wafv2/src/main/java/com/amazonaws/services/wafv2/model/Statement.java