public ListSecurityProfilePermissionsResult withPermissions(String... permissions) {
        if (this.permissions == null) {
            setPermissions(new java.util.ArrayList<String>(permissions.length));
        }
        for (String ele : permissions) {
            this.permissions.add(ele);
        }
        return this;
    }
<p>
The permissions granted to the security profile. For a complete list of valid permissions, see <a
href="https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-list.html">List of security profile
permissions</a>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPermissions(java.util.Collection)} or {@link #withPermissions(java.util.Collection)} if you want to
override the existing values.
</p>

@param permissions
       The permissions granted to the security profile. For a complete list of valid permissions, see <a
       href="https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-list.html">List of security
       profile permissions</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListSecurityProfilePermissionsResult.java