public WorkspaceProperties withProtocols(String... protocols) {
        if (this.protocols == null) {
            setProtocols(new com.amazonaws.internal.SdkInternalList<String>(protocols.length));
        }
        for (String ele : protocols) {
            this.protocols.add(ele);
        }
        return this;
    }
<p>
The protocol. For more information, see <a
href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-protocols.html"> Protocols for
Amazon WorkSpaces</a>.
</p>
<note>
<ul>
<li>
<p>
Only available for WorkSpaces created with PCoIP bundles.
</p>
</li>
<li>
<p>
The <code>Protocols</code> property is case sensitive. Ensure you use <code>PCOIP</code> or <code>WSP</code>.
</p>
</li>
<li>
<p>
Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro,
Graphics.g4dn, and GraphicsPro.g4dn).
</p>
</li>
</ul>
</note>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setProtocols(java.util.Collection)} or {@link #withProtocols(java.util.Collection)} if you want to
override the existing values.
</p>

@param protocols
       The protocol. For more information, see <a
       href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-protocols.html">
       Protocols for Amazon WorkSpaces</a>.</p> <note>
       <ul>
       <li>
       <p>
       Only available for WorkSpaces created with PCoIP bundles.
       </p>
       </li>
       <li>
       <p>
       The <code>Protocols</code> property is case sensitive. Ensure you use <code>PCOIP</code> or
       <code>WSP</code>.
       </p>
       </li>
       <li>
       <p>
       Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro,
       Graphics.g4dn, and GraphicsPro.g4dn).
       </p>
       </li>
       </ul>
@return Returns a reference to this object so that method calls can be chained together.
@see Protocol
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/WorkspaceProperties.java