public RulesSourceList withTargetTypes(java.util.Collection<String> targetTypes) {
        setTargetTypes(targetTypes);
        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