code: @Override
      public ListOnPremisesInstancesResult listOnPremisesInstances(ListOnPremisesInstancesRequest request) {
          request = beforeClientExecution(request);
          return executeListOnPremisesInstances(request);
      }
docs: <p>
  Gets a list of names for one or more on-premises instances.
  </p>
  <p>
  Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only
  registered or deregistered on-premises instance names, use the registration status parameter.
  </p>
  
  @param listOnPremisesInstancesRequest
  Represents the input of a ListOnPremisesInstances operation.
  @return Result of the ListOnPremisesInstances operation returned by the service.
  @throws InvalidRegistrationStatusException
  The registration status was specified in an invalid format.
  @throws InvalidTagFilterException
  The tag filter was specified in an invalid format.
  @throws InvalidNextTokenException
  The next token was specified in an invalid format.
  @sample AmazonCodeDeploy.ListOnPremisesInstances
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances"
  target="_top">AWS API Documentation</a>