public GetAccountAuthorizationDetailsRequest withFilter(String... filter) {
        if (this.filter == null) {
            setFilter(new com.amazonaws.internal.SdkInternalList<String>(filter.length));
        }
        for (String ele : filter) {
            this.filter.add(ele);
        }
        return this;
    }
<p>
A list of entity types used to filter the results. Only the entities that match the types you specify are
included in the output. Use the value <code>LocalManagedPolicy</code> to include customer managed policies.
</p>
<p>
The format for this parameter is a comma-separated (if more than one) list of strings. Each string value in the
list must be one of the valid values listed below.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFilter(java.util.Collection)} or {@link #withFilter(java.util.Collection)} if you want to override the
existing values.
</p>

@param filter
       A list of entity types used to filter the results. Only the entities that match the types you specify are
       included in the output. Use the value <code>LocalManagedPolicy</code> to include customer managed
       policies.</p>
       <p>
       The format for this parameter is a comma-separated (if more than one) list of strings. Each string value
       in the list must be one of the valid values listed below.
@return Returns a reference to this object so that method calls can be chained together.
@see EntityType
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/GetAccountAuthorizationDetailsRequest.java