Class GetPools

All Implemented Interfaces:
Future<List<VmPool>>, Associator, Eligible

public class GetPools extends Event<List<VmPool>>
Gets the known pools’ definitions.
  • Constructor Details

  • Method Details

    • withName

      public GetPools withName(String name)
      Return only the pool with the given name.
      Parameters:
      name - the name
      Returns:
      the returns the vms
    • accessibleFor

      public GetPools accessibleFor(String user, List<String> roles)
      Return only VmPools that are accessible by the given user or roles.
      Parameters:
      user - the user
      roles - the roles
      Returns:
      the event
    • name

      public Optional<String> name()
      Returns the name filter criterion, if set.
      Returns:
      the optional
    • forUser

      public Optional<String> forUser()
      Returns the user filter criterion, if set.
      Returns:
      the optional
    • forRoles

      public List<String> forRoles()
      Returns the roles criterion.
      Returns:
      the list