public RegisterTargetsResult withSuccessful(Target... successful) {
        if (this.successful == null) {
            setSuccessful(new java.util.ArrayList<Target>(successful.length));
        }
        for (Target ele : successful) {
            this.successful.add(ele);
        }
        return this;
    }
<p>
The targets that were successfully registered.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSuccessful(java.util.Collection)} or {@link #withSuccessful(java.util.Collection)} if you want to
override the existing values.
</p>

@param successful
       The targets that were successfully registered.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/RegisterTargetsResult.java