public Application withApplicationPermissions(String... applicationPermissions) {
        if (this.applicationPermissions == null) {
            setApplicationPermissions(new java.util.ArrayList<String>(applicationPermissions.length));
        }
        for (String ele : applicationPermissions) {
            this.applicationPermissions.add(ele);
        }
        return this;
    }
<p>
The permissions that the agent is granted on the application. Only the <code>ACCESS</code> permission is
supported.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setApplicationPermissions(java.util.Collection)} or
{@link #withApplicationPermissions(java.util.Collection)} if you want to override the existing values.
</p>

@param applicationPermissions
       The permissions that the agent is granted on the application. Only the <code>ACCESS</code> permission is
       supported.
@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/Application.java