public ServerCertificateScope withSourcePorts(PortRange... sourcePorts) {
        if (this.sourcePorts == null) {
            setSourcePorts(new java.util.ArrayList<PortRange>(sourcePorts.length));
        }
        for (PortRange ele : sourcePorts) {
            this.sourcePorts.add(ele);
        }
        return this;
    }
<p>
The source ports to decrypt for inspection, in Transmission Control Protocol (TCP) format. If not specified, this
matches with any source port.
</p>
<p>
You can specify individual ports, for example <code>1994</code>, and you can specify port ranges, such as
<code>1990:1994</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSourcePorts(java.util.Collection)} or {@link #withSourcePorts(java.util.Collection)} if you want to
override the existing values.
</p>

@param sourcePorts
       The source ports to decrypt for inspection, in Transmission Control Protocol (TCP) format. If not
       specified, this matches with any source port.</p>
       <p>
       You can specify individual ports, for example <code>1994</code>, and you can specify port ranges, such as
       <code>1990:1994</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/ServerCertificateScope.java