code: public GetAccountAuthorizationDetailsRequest withFilter(EntityType... filter) {
          com.amazonaws.internal.SdkInternalList<String> filterCopy = new com.amazonaws.internal.SdkInternalList<String>(filter.length);
          for (EntityType value : filter) {
              filterCopy.add(value.toString());
          }
          if (getFilter() == null) {
              setFilter(filterCopy);
          } else {
              getFilter().addAll(filterCopy);
          }
          return this;
      }
docs: <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>
  
  @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