public CreateResolverEndpointRequest withProtocols(java.util.Collection<String> protocols) {
        setProtocols(protocols);
        return this;
    }
<p>
The protocols you want to use for the endpoint. DoH-FIPS is applicable for inbound endpoints only.
</p>
<p>
For an inbound endpoint you can apply the protocols as follows:
</p>
<ul>
<li>
<p>
Do53 and DoH in combination.
</p>
</li>
<li>
<p>
Do53 and DoH-FIPS in combination.
</p>
</li>
<li>
<p>
Do53 alone.
</p>
</li>
<li>
<p>
DoH alone.
</p>
</li>
<li>
<p>
DoH-FIPS alone.
</p>
</li>
<li>
<p>
None, which is treated as Do53.
</p>
</li>
</ul>
<p>
For an outbound endpoint you can apply the protocols as follows:
</p>
<ul>
<li>
<p>
Do53 and DoH in combination.
</p>
</li>
<li>
<p>
Do53 alone.
</p>
</li>
<li>
<p>
DoH alone.
</p>
</li>
<li>
<p>
None, which is treated as Do53.
</p>
</li>
</ul>

@param protocols
       The protocols you want to use for the endpoint. DoH-FIPS is applicable for inbound endpoints only. </p>
       <p>
       For an inbound endpoint you can apply the protocols as follows:
       </p>
       <ul>
       <li>
       <p>
       Do53 and DoH in combination.
       </p>
       </li>
       <li>
       <p>
       Do53 and DoH-FIPS in combination.
       </p>
       </li>
       <li>
       <p>
       Do53 alone.
       </p>
       </li>
       <li>
       <p>
       DoH alone.
       </p>
       </li>
       <li>
       <p>
       DoH-FIPS alone.
       </p>
       </li>
       <li>
       <p>
       None, which is treated as Do53.
       </p>
       </li>
       </ul>
       <p>
       For an outbound endpoint you can apply the protocols as follows:
       </p>
       <ul>
       <li>
       <p>
       Do53 and DoH in combination.
       </p>
       </li>
       <li>
       <p>
       Do53 alone.
       </p>
       </li>
       <li>
       <p>
       DoH alone.
       </p>
       </li>
       <li>
       <p>
       None, which is treated as Do53.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see Protocol
aws-java-sdk-route53resolver/src/main/java/com/amazonaws/services/route53resolver/model/CreateResolverEndpointRequest.java