public PartialMatch withTargetViolationReasons(String... targetViolationReasons) {
        if (this.targetViolationReasons == null) {
            setTargetViolationReasons(new java.util.ArrayList<String>(targetViolationReasons.length));
        }
        for (String ele : targetViolationReasons) {
            this.targetViolationReasons.add(ele);
        }
        return this;
    }
<p>
The violation reason.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTargetViolationReasons(java.util.Collection)} or
{@link #withTargetViolationReasons(java.util.Collection)} if you want to override the existing values.
</p>

@param targetViolationReasons
       The violation reason.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fms/src/main/java/com/amazonaws/services/fms/model/PartialMatch.java