public RulesSourceList withTargetTypes(TargetType... targetTypes) {
        java.util.ArrayList<String> targetTypesCopy = new java.util.ArrayList<String>(targetTypes.length);
        for (TargetType value : targetTypes) {
            targetTypesCopy.add(value.toString());
        }
        if (getTargetTypes() == null) {
            setTargetTypes(targetTypesCopy);
        } else {
            getTargetTypes().addAll(targetTypesCopy);
        }
        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>

@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