public RulesSourceList withTargetTypes(String... targetTypes) {
        if (this.targetTypes == null) {
            setTargetTypes(new java.util.ArrayList<String>(targetTypes.length));
        }
        for (String ele : targetTypes) {
            this.targetTypes.add(ele);
        }
        return this;
    }
<p>
The protocols you want to inspect. Specify <code>TLS_SNI</code> for <code>HTTPS</code>. Specify
<code>HTTP_HOST</code> for <code>HTTP</code>. You can specify either or both.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTargetTypes(java.util.Collection)} or {@link #withTargetTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param targetTypes
       The protocols you want to inspect. Specify <code>TLS_SNI</code> for <code>HTTPS</code>. Specify
       <code>HTTP_HOST</code> for <code>HTTP</code>. You can specify either or both.
@return Returns a reference to this object so that method calls can be chained together.
@see TargetType
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/RulesSourceList.java