public SipRule withTargetApplications(SipRuleTargetApplication... targetApplications) {
        if (this.targetApplications == null) {
            setTargetApplications(new java.util.ArrayList<SipRuleTargetApplication>(targetApplications.length));
        }
        for (SipRuleTargetApplication ele : targetApplications) {
            this.targetApplications.add(ele);
        }
        return this;
    }
<p>
The target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP
rule. Only one SIP rule per AWS Region can be provided.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTargetApplications(java.util.Collection)} or {@link #withTargetApplications(java.util.Collection)} if
you want to override the existing values.
</p>

@param targetApplications
       The target SIP media application and other details, such as priority and AWS Region, to be specified in
       the SIP rule. Only one SIP rule per AWS Region can be provided.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-chimesdkvoice/src/main/java/com/amazonaws/services/chimesdkvoice/model/SipRule.java